Crate text_scanner
source ·Modules
Structs
- An iterator over
char
s and their start and end byte positions. - An iterator over
char
s and their start and end byte positions, with an offset applied to all positions. - A
Scanner
is a UTF-8char
text scanner, implementing various methods for scanning a string slice, as well as backtracking capabilities, which can be used to implement lexers for tokenizing text or code. It is essentially just a fancy wrapper aroundCharRanges
.