src/Generic/common/LocatedString.cpp
/**
 * From the specified position, skip empty lines forwards
 * until we find the index of the first character of
 * a line with text content.
 *
 * @param A position in this string.
 * @return The start of the line, or the end of string
 * if none found.
 **/
From the specified position, skip empty lines forwards
until we find the index of the first character of
a line with text content.

@param A position in this string.
@return The start of the line, or the end of string
if none found.
From the specified position skip empty lines forwards until we find the index of the first character of a line with text content . @param A position in this string . @return The start of the line or the end of string if none found .
int LocatedString::startOfNextNonEmptyLine(int index) const {
	int end = endOfLine(index);
	do {
		end++;
	} while (end < length() && (charAt(end) == L'\n' || charAt(end) == L'\r'));
	if (end >= length())
		end = length() - 1;
	return end;
}
int LocatedString :: startOfNextNonEmptyLine ( int index ) const { int end = endOfLine ( index ) ; 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 empty lines forwards
 until we find the index of the first character of
 a line with text content.
From the specified position skip empty lines forwards until we find the index of the first character of a line with text content .