Re: CharacterSet: CharSet("A") - CharSetUnicode = remainder ?
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