Function regex_automata::util::utf8::is_leading_or_invalid_byte

source ยท
fn is_leading_or_invalid_byte(b: u8) -> bool
Expand description

Returns true if and only if the given byte is either a valid leading UTF-8 byte, or is otherwise an invalid byte that can never appear anywhere in a valid UTF-8 sequence.