[][src]Function piet::util::count_until_utf16

pub fn count_until_utf16(s: &str, utf16_text_position: usize) -> Option<usize>

returns utf8 text position (code unit offset) at the given utf-16 text position