Sthx::Cursor
Constructors
Instance methods
Returns a byteslice between byte_start and byte_end byte indices.
- The byte at byte_start is included in the returned slice.
- The byte at byte_end is excluded from the returned slice.
char_index
Returns the index of the character pointed at by this cursor, within the source string.
max_err_byte_index
Returns the byte index of the error with most progress into the source string.
thru?
Advances this cursor to the next character if the block returns true for
the current one.
Returns true if advanced, false if the position did not change.