Skip to main content

extract_line_range

Function extract_line_range 

Source
pub fn extract_line_range(source: &[u8], start: u32, end: u32) -> Vec<u8> 
Expand description

Extract bytes for a line range from source content.

Lines are 1-indexed. Returns the bytes spanning start..=end lines (inclusive on both ends), joined with newlines.