Skip to main content

line_column

Function line_column 

Source
pub fn line_column(text: &str, byte_offset: usize) -> (usize, usize)
Expand description

1-based line and UTF-8 character column at byte_offset in text.