Skip to main content

ComputeLineOffsets

Function ComputeLineOffsets 

Source
pub(crate) 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]).