ctoolbox
0.1.0
Module utf_
8e_
128
Module Items
Functions
In ctoolbox::
formats
ctoolbox
::
formats
Module
utf_8e_128
Copy item path
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.