[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCharacterSets

From: Dirk Theisen
Subject: Re: NSCharacterSets
Date: Thu, 18 Sep 2003 06:20:54 +0000
User-agent: Ginko/0.2.0-alpha-P (See <http://www.objectpark.org>)

Hello, Matthew!

Trying to figure out how to tell if set A is a subset of Set B... Is
there anyway in gnuStep? I can't figure out how to querry if a set is
null, or the size of a set...

There is always...

+ (NSCharacterSet *)characterSetWithCharactersInString:(NSString *)aString;

...which you can call with @"" as parameter to get an empty set and compare (isEqual) to another NSCharacterSet. That's not the same a comarison to nil, though.

On OS X there is also:

- (BOOL)isSupersetOfSet:(NSCharacterSet *)theOtherSet;

If that is not on GNUstep, maybe someone could add it?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]