decode_dcutf

Function decode_dcutf 

Source
pub fn decode_dcutf(bytes: Vec<u8>) -> Option<(u128, usize)>
Expand description

Lossily decode the first character from bytes using the legacy DcUtf (utf_8e_128) format.

Returns (value, used_len) (yielding U+FFFD and the maximal subpart length on malformed sequences), or None if bytes is empty.