Skip to main content

byte_of_utf16

Function byte_of_utf16 

Source
pub fn byte_of_utf16(text: &str, units: usize) -> usize
Expand description

A UTF-16 offset back to a byte offset, clamped into the string.