Skip to main content

utf16_offset

Function utf16_offset 

Source
pub fn utf16_offset(value: &str, byte_offset: usize) -> usize
Expand description

Converts a byte offset in value to a UTF-16 code-unit offset.