pub fn char_offset(value: &str, byte_offset: usize) -> usize
Converts a byte offset in value to a char (Unicode scalar) offset.
value
char