endPosition

open override fun endPosition(): Int

Returns the end position for the current start position, or -1 when nextStartPosition was not yet called on the current doc. After the last start/end position at the current doc this returns NO_MORE_POSITIONS.