Skip to main content

utf16_len

Function utf16_len 

Source
fn utf16_len(s: &str) -> usize
Expand description

Number of UTF-16 code units in s. ASCII-only fast path returns the byte length; non-ASCII walks chars and sums len_utf16.