pub fn calculate_match_range(
line: usize,
line_content: &str,
match_start: usize,
match_len: usize,
) -> (usize, usize, usize, usize)Expand description
Calculate range from regex match on a line
ยงSafety
This function safely handles multi-byte UTF-8 characters by ensuring all string slicing operations occur at valid character boundaries.