Function regex_automata::util::utf8::len
source ยท fn len(byte: u8) -> Option<usize>
Expand description
Given a UTF-8 leading byte, this returns the total number of code units in the following encoded codepoint.
If the given byte is not a valid UTF-8 leading byte, then this returns
None
.