Skip to main content

next_utf8_char

Function next_utf8_char 

Source
pub fn next_utf8_char(s: &[u8]) -> Result<(u32, usize), usize>
Expand description

php_next_utf8_char: the code point at the start of s and its length, or the number of bytes PHP skips as one invalid sequence (UTR #36 strategy 2: an invalid sequence never swallows a byte that could start a valid one).