Function html5ever::tendril::encoding_rs::mem::is_basic_latin

source ·
pub fn is_basic_latin(buffer: &[u16]) -> bool
Expand description

Checks whether the buffer is all-Basic Latin (i.e. UTF-16 representing only ASCII characters).

May read the entire buffer even if it isn’t all-ASCII. (I.e. the function is not guaranteed to fail fast.)