Crate text_scanner

Source
Expand description

See Scanner docs for more information and its methods for many examples.

Modules§

ext
Scanner extensions for scanning e.g. Rust, C, Python.
prelude

Structs§

CharRanges
An iterator over chars and their start and end byte positions.
CharRangesOffset
An iterator over chars and their start and end byte positions, with an offset applied to all positions.
Scanner
A Scanner is a UTF-8 char 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 around CharRanges.

Traits§

CharRangesExt

Type Aliases§

ScanResult
ScannerItem
ScannerResult