• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: return string that is the difference between two other strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: return string that is the difference between two other strings (From: Scott Ribe <email@hidden>)
 >Re: return string that is the difference between two other strings (From: Jens Alfke <email@hidden>)
 >Re: return string that is the difference between two other strings (From: Jens Alfke <email@hidden>)
 >Re: return string that is the difference between two other strings (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Custom layout and constraints
  • Next by Date: Re: Question on OS X app submission
  • Previous by thread: Re: return string that is the difference between two other strings
  • Next by thread: Re: return string that is the difference between two other strings
  • Index(es):
    • Date
    • Thread