Skip to main content

index_of_byte

Function index_of_byte 

Source
pub fn index_of_byte(s: &str, byte: usize) -> U16Index
Expand description

The UTF-16 index corresponding to a UTF-8 byte offset into s.