static S extractLine(S s, int i) { ret substring(s, i, min(smartIndexOf(s, "\n", i), smartIndexOf(s, "\r", i))); }