Functions

Convert a given byte range of a string, that is known to be at valid char bounds, to a character range.

Convert many byte ranges to character ranges.

Extract line delimiter of a string.

Iterate over annotated chars starting from line 1 and column 0 assuming s starts there.

Iterate over a str and annotate with line and column.

Extract span from a Read-able source as String.

Extract a subset of chars by iterating. Range must be in characters.

Extract a subset of chars by iterating. Range must be in characters.