Function html5ever::tendril::encoding_rs::mem::is_utf8_latin1

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

Checks whether the buffer is valid UTF-8 representing only code points less than or equal to U+00FF.

Fails fast. (I.e. returns before having read the whole buffer if UTF-8 invalidity or code points above U+00FF are discovered.