src/Generic/common/LocatedString.cpp
/**
 * From the specified position, skip characters forwards until
 * we find a line break. If index is a line break, index is returned.
 *
 * @param A position in this string.
 * @return The end of this line, or the end of string if none found.
 **/
From the specified position, skip characters forwards until
we find a line break. If index is a line break, index is returned.

@param A position in this string.
@return The end of this line, or the end of string if none found.
From the specified position skip characters forwards until we find a line break . If index is a line break index is returned . @param A position in this string . @return The end of this line or the end of string if none found .
int LocatedString::endOfLine(int index) const {
	int end = index - 1;
	do {
		end++;
	} while (end < length() && charAt(end) != L'\n' && charAt(end) != L'\r');
	if (end >= length())
		end = length() - 1;
	return end;
}
int LocatedString :: endOfLine ( int index ) const { int end = index - 1 ; do { end ++ ; } while ( end < length ( ) && charAt ( end ) != L' \n ' && charAt ( end ) != L' \r ' ) ; if ( end >= length ( ) ) end = length ( ) - 1 ; return end ; }
From the specified position, skip characters forwards until
 we find a line break.
From the specified position skip characters forwards until we find a line break .