appml / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
0 stars 0 forks source link

Add the CHANGED operation #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,
as I could see the library is very good.

I need one more functionality in diff, the CHANGED lines.

Original issue reported on code.google.com by alexmari...@gmail.com on 21 Oct 2008 at 10:27

GoogleCodeExporter commented 8 years ago
This diff, match, patch library is character based, not line based.  However, 
all the
information you need is available.  Just loop through the output, ignoring any 
EQUAL
tuples and noting where the INSERT and DELETE tuples are.  It's just a for 
loop.  You
may wish to count the new lines in the tuples so that you can keep track of 
which
line you are on.

Original comment by neil.fra...@gmail.com on 21 Oct 2008 at 5:03