Skip to main content

calculate_line_range

Function calculate_line_range 

Source
pub fn calculate_line_range(
    line: usize,
    line_content: &str,
) -> (usize, usize, usize, usize)
Expand description

Calculate range for entire line.

The end column is a character count (rumdl’s diagnostic convention), not a byte length, so the range is correct on lines containing multi-byte UTF-8.