Function last_utf8_codepoint

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

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