Skip to main content

offset_to_utf16

Function offset_to_utf16 

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

Byte offset → UTF-16 offset.