Function decode_utf_8e_128_buf

Source
pub fn decode_utf_8e_128_buf(bytes: &[u8]) -> Option<(u128, usize)>
Expand description

Decodes one UTF‑8 / UTF‑8e‑128 codepoint from the provided byte slice. On success returns Some((value, length_consumed)), else None. Enforces canonical (no overlong) encodings for both standard and extended forms.