Skip to main content

char_offset

Function char_offset 

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

Converts a byte offset in value to a char (Unicode scalar) offset.