Function encoding_rs::mem::utf16_valid_up_to_alu

source ยท
fn utf16_valid_up_to_alu(buffer: &[u16]) -> (usize, bool)
Expand description

The second return value is true iff the last code unit of the slice was reached and turned out to be a low surrogate that is part of a valid pair.