Function xml5ever::tendril::encoding_rs::mem::utf8_latin1_up_to

source ยท
pub fn utf8_latin1_up_to(buffer: &[u8]) -> usize
Expand description

Returns the index of first byte that starts an invalid byte sequence or a non-Latin1 byte sequence, or the length of the string if there are neither.