pub fn offset_from_utf16(text: &str, offset: usize) -> usize
UTF-16 offset (what the platform IME speaks) → byte offset.