Function piet::util::count_until_utf16

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

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