Module utf_8e_128

Source

Functions§

decode_utf_8e_128
Decodes one generalized UTF-8 codepoint from bytes. Returns Some((value, length_consumed)), or the replacement character on error.
decode_utf_8e_128_buf
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.
encode_utf_8e_128
Generalized UTF-8 encoding for u128. Returns a Vec<u8> containing the encoded bytes.
encode_utf_8e_128_buf
Encodes a Unicode scalar value or an extended (> U+10FFFF) 128‑bit integer using the UTF‑8e‑128 scheme.