following

abstract fun following(offset: Int): Int

Returns the first boundary following the specified character offset. If the specified offset is equal to the last text boundary, it returns BreakIterator.DONE and the iterator's current position is unchanged. Otherwise, the iterator's current position is set to the returned boundary. The value returned is always greater than the offset or the value BreakIterator.DONE.

Return

The first boundary after the specified offset or BreakIterator.DONE if the last text boundary is passed in as the offset.

Parameters

offset

the character offset to begin scanning.

Throws

if the specified offset is less than the first text boundary or greater than the last text boundary.