Skip to main content

offset_to_line_col

Function offset_to_line_col 

Source
pub fn offset_to_line_col(sql: &str, offset: usize) -> (usize, usize)
Expand description

Convert a byte offset into a 1-based (line, col) pair.