Crate text_scanner
source ·Modules
Structs
- An iterator over
chars and their start and end byte positions. - An iterator over
chars and their start and end byte positions, with an offset applied to all positions. - A
Scanneris a UTF-8chartext 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.