• 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: CharacterSet: CharSet("A") - CharSetUnicode = remainder ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CharacterSet: CharSet("A") - CharSetUnicode = remainder ?


  • Subject: Re: CharacterSet: CharSet("A") - CharSetUnicode = remainder ?
  • From: Greg Guerin <email@hidden>
  • Date: Sat, 24 Apr 2010 14:18:23 -0700

Filip van der Meeren wrote:
> What I was trying to do is the following:
>
> C/C++ operator | NSCharacterSet operation
> ------------------------------------------------------------------------ -----
> | (or) | [aCharSet formUnionWithCharacterSet:bCharSet];
> & (and) | [aCharSet formIntersectionWithCharacterSet:bCharSet];
> ^ (xor) | ?


There are several equivalents for XOR built from AND, OR, NOT.

http://en.wikipedia.org/wiki/Exclusive_or

If you want one that takes least memory or least time, create tests and measure, rather than assume.

  -- GG

_______________________________________________

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


  • Prev by Date: Re: 'Build and Analyze' with XCODE 3.2.2
  • Next by Date: Re: No icon in Dock's Application folder HUD?
  • Previous by thread: Re: CharacterSet: CharSet("A") - CharSetUnicode = remainder ?
  • Next by thread: NSTableview background image for column?
  • Index(es):
    • Date
    • Thread