Skip to main content

compute_line_offsets

Function compute_line_offsets 

Source
pub fn compute_line_offsets(source: &str) -> Vec<u32>
Expand description

Compute a table of line-start byte offsets from source text.