lineLengthAt method
Implementation
int lineLengthAt(int lineIndex) {
final start = getLineStartOffset(lineIndex);
final end = findLineEnd(start);
final length = end - start;
return length > 0 && charAt(end - 1) == '\r' ? length - 1 : length;
}