Skip to main content

line_col_to_byte_offset

Function line_col_to_byte_offset 

Source
fn line_col_to_byte_offset(source: &str, line: usize, col: usize) -> usize
Expand description

Compute byte offset into source given 1-based line and 1-based column.