Skip to main content

line_column

Function line_column 

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

The 1-based line and column (counted in characters) of offset in text.