Skip to main content

offset_from_utf16

Function offset_from_utf16 

Source
pub fn offset_from_utf16(text: &str, offset: usize) -> usize
Expand description

UTF-16 offset (what the platform IME speaks) → byte offset.