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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com