Re: searching a Unicode string in a text
Re: searching a Unicode string in a text
- Subject: Re: searching a Unicode string in a text
- From: Ondra Cada <email@hidden>
- Date: Fri, 20 Sep 2002 00:31:04 +0200
On Thursday, September 19, 2002, at 11:38 , Arthur Clemens wrote:
NSRange range = [string rangeOfString:@"\\u278a"];
I really don't think you actually want to search for this six-character
string, which contains '\', 'u', '2', '7', '8', and 'a'.
The compiler can't read Unicode char escapes, and that's that. Search
archives, this was extensively discussed already. If the string is
one-char and fixed, the best solution would probably be
stringWithCharacters: and a unichar variable; otherwise, the best way to
go are localizable strings.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.