difft::line_parser

Function change_positions

Source
pub(crate) fn change_positions(
    lhs_src: &str,
    rhs_src: &str,
) -> (Vec<MatchedPos>, Vec<MatchedPos>)
Expand description

Build vecs of MatchedPos for both sides, performing a line-oriented diff. Match up unchanged lines, and match up unchanged words within novel lines.