Skip to main content

logical_lines

Function logical_lines 

Source
fn logical_lines(text: &str) -> impl Iterator<Item = (usize, &str)>
Expand description

Logical lines and their byte offsets in the original text. CRLF is one separator; lone CR and LF are separators too. The separator bytes are excluded from the returned slices and preserved in the source string.