Skip to main content

classify_utf8

Function classify_utf8 

Source
pub fn classify_utf8(line: &[u8]) -> Utf8Decode
Expand description

Classify a line’s bytes as UTF-8, distinguishing a truncated codepoint (benign) from a genuinely invalid byte (corruption). Pure; no I/O.