Function first_utf8_codepoint

Source
pub fn first_utf8_codepoint(bytes: &[u8]) -> Result<(u32, usize)>
Expand description

Helper: decode first UTF-8 codepoint (or raw byte) returning (codepoint, byte_len).