druid::piet::util
pub fn count_utf16(s: &str) -> usize
Counts the number of utf-16 code units in the given string. from xi-editor