pub fn utf16_index(text: &str, byte: usize) -> usize
The UTF-16 index of byte offset byte in text, as JavaScript indexes strings; an offset inside a character counts from its start.
byte
text