Function regex_automata::util::utf8::is_word_byte

source ·
pub(crate) fn is_word_byte(b: u8) -> bool
Expand description

Returns true if and only if the given byte is considered a word character. This only applies to ASCII.

This was copied from regex-syntax so that we can use it to determine the starting DFA state while searching without depending on regex-syntax. The definition is never going to change, so there’s no maintenance/bit-rot hazard here.