• 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: searching a Unicode string in a text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: searching a Unicode string in a text
      • From: Arthur Clemens <email@hidden>
References: 
 >searching a Unicode string in a text (From: Arthur Clemens <email@hidden>)

  • Prev by Date: Re: Re(2): Preferences (was: UI: "Direct manipulation" is in conflict with "Forgiveness")
  • Next by Date: runModalForWindow allows window switching
  • Previous by thread: searching a Unicode string in a text
  • Next by thread: Re: searching a Unicode string in a text
  • Index(es):
    • Date
    • Thread