byte_of_utf16

Function byte_of_utf16 

Source
pub fn byte_of_utf16(text: &str, utf16: u32) -> u32
Expand description

The inverse: a UTF-16 offset back to a byte offset.