Re: return string that is the difference between two other strings
Re: return string that is the difference between two other strings
- Subject: Re: return string that is the difference between two other strings
- From: Jens Alfke <email@hidden>
- Date: Sun, 21 Sep 2014 09:09:36 -0700
> On Sep 20, 2014, at 11:45 PM, Allan Odgaard <email@hidden> wrote:
>
> If you need a C API then have a look at https://code.google.com/p/google-diff-match-patch/ <https://code.google.com/p/google-diff-match-patch/>
This^^ looks like exactly what you want, 2551. The online demo is quite impressive:
https://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html
It compares on a character-by-character basis, not just by line, and the output shows the individual insertions/deletions/changes inline.
(I'm actually going to bookmark this myself; I have a side project that could make use of it!)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden