lineEndAfter

fun Document.lineEndAfter(position: Int): Int

Locate the end of the line enclosing position.

Return

The end of the line. This is either the end of the text or a position immediately preceding a linefeed (U+000A).

Parameters

position

The position from which to scan rightward in search of the end of the enclosing line.