Skip to main content

byte_to_char_pos

Function byte_to_char_pos 

Source
pub fn byte_to_char_pos(text: &str, byte_pos: usize) -> usize
Expand description

Convert byte position to character position in a UTF-8 string