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: Diederik Meijer | Ten Horses <email@hidden>
- Date: Sun, 21 Sep 2014 08:57:15 +0200
Note that there are two differences, I would want to know: where string A says "this", string B says "that." So you have both "this" and 'that" for a difference. A lot of times, pre-optimizing your strings helps, meaning you first take out punctuation (mostly comma's) and remember where to put them back in. Also splitting may sometimes need NSRegularExpression instead of ComponentsSeparatedByString to be better. In general pre-optimizing is a necessity. In my experience, customizing a workplan between pre-optimizing and comparison/search based on the actual content gives the best results. It's more time-consuming though...
Verstuurd vanaf mijn iPhone
> Op 21 sep. 2014 om 08:42 heeft 2551 <email@hidden> het volgende geschreven:
>
>
>> On 21 Sep 2014, at 13:38, Diederik Meijer | Ten Horses <email@hidden> wrote:
>>
>> Meaning I would compare words and their index in an array of words created from the two strings.
>
> Thanks, Diederik. That's exactly the approach I took by using NSMutableArray's -removeObject.
> _______________________________________________
>
> 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
_______________________________________________
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