Skip to main content

text_end

Function text_end 

Source
pub fn text_end(bytes: &[u8]) -> Option<usize>
Expand description

Where the text of bytes ends: before its trailing run of NULs, or None when it has none, or when the NULs are part of the text (UTF-16 or UTF-32, by its byte-order mark, or by a NUL beside the last character).