Function xml5ever::tendril::encoding_rs::mem::utf16_valid_up_to

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

Returns the index of the first unpaired surrogate or, if the input is valid UTF-16 in its entirety, the length of the input.