Re: comparing Strings.
Re: comparing Strings.
- Subject: Re: comparing Strings.
- From: "Dan Ribe" <email@hidden>
- Date: Tue, 7 Oct 2008 11:10:06 +0530
Not aware of any such custom implementation of the strcmp() functions ....
But here is something which you can try : Take the words from the first
strings & search them in the second. If all words exists in the same order
(compare the index to determine the order), then you can say that these are
the strings which are same. Also you need to match the total numbers of
words in both the strings.
For example in below strings sandro & computer are the words. Hope this
helps.
Cheers !
On Tue, Oct 7, 2008 at 10:52 AM, Sandro Noel <email@hidden> wrote:
> Gretings.
>
> i'm having a problem comparing some type of strings, for example the one
> giving me a problem right now.
> is let's say in my database i have 4 version of the same string .
>
> "sandro's computer"
> "sandro's_computer"
> "sandros computer"
> "sandros_computer"
>
> I would like them to compare as being equal,
> is there a way I can mingle with the comparing routine
> to ask it to ignore some characters in the comparison?
>
> thank you!
> Sandro.
>
> _______________________________________________
>
> 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