pub(crate) fn normalize_newlines(
src: &mut String,
normalized_pos: &mut Vec<NormalizedPos>,
)
Expand description
Replaces \r\n
with \n
in-place in src
.
Leaves any occurrences of lone \r
unchanged.
pub(crate) fn normalize_newlines(
src: &mut String,
normalized_pos: &mut Vec<NormalizedPos>,
)
Replaces \r\n
with \n
in-place in src
.
Leaves any occurrences of lone \r
unchanged.