Skip to main content

ComputeLineOffsets

pub fn ComputeLineOffsets(Source: &str) -> Vec<usize>
Expand description

Pre-compute the byte offset of the start of every line in Source. The returned vec always has at least one entry ([0]).