Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diacritical string compare on 10.4?



Turns out that doesn't seem to work. see i need to know if findStr ("substring") appears anywhere inside withinStr ("string to search"), and i need the compare to use:

kUCCollateComposeInsensitiveMask
kUCCollateWidthInsensitiveMask
kUCCollateCaseInsensitiveMask
kUCCollateDiacritInsensitiveMask

so even if the lengths are different they still might compare to the same.

i thought of taking the length of findStr, and truncating withinStr to the same length and comparing, but due to above that won't work. (if it would work, then if the compare was false, then cut off the first character and repeat until either the string matches or there are no more characters left) and if i did that it would be dog slow.

really, how am i supposed to do that?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >diacritical string compare on 10.4? (From: "David M. Cotter" <email@hidden>)
 >Re: diacritical string compare on 10.4? (From: Philip Aker <email@hidden>)
 >Re: diacritical string compare on 10.4? (From: "David M. Cotter" <email@hidden>)
 >Re: diacritical string compare on 10.4? (From: Jonathan Kew <email@hidden>)
 >Re: diacritical string compare on 10.4? (From: "David M. Cotter" <email@hidden>)
 >Re: diacritical string compare on 10.4? (From: "stephen joseph butler" <email@hidden>)
 >Re: diacritical string compare on 10.4? (From: "David M. Cotter" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.