Module regex_leaf

Module regex_leaf 

Source

Functions§

build_leaf_fsm
Build a leaf FSM from a regex fragment that is either a plain literal ("abx", possibly with escapes / .) or a character class [...]. regex is raw bytes — the builder is byte-wise (matches the C++).
handle_escapes
Escape-class expansion for \n, \d, \w, … Returns the (min, max) byte ranges the escape at regex[start] denotes.