(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSCharacterSet 

Inherits From:	NSObject 

Conforms To:	NSCoding
NSCopying
NSMutableCopying
NSObject 

Declared In:	foundation/NSCharacterSet.h 

Creating a Standard Character Set 

+ (NSCharacterSet *)alphanumericCharacterSet	Returns a character set containing the uppercase and lowercase alphabetic characters (a-z, A-Z, other alphabetic characters such as Ý, ‰, Û, ‡, and so on) and the decimal digit characters (0-9).

Creating a Custom Character Set 

+ (NSCharacterSet *)characterSetWithBitmapRepresentation:(NSData *)data
	Returns a character set containing characters determined by the bitmap representation data.
+ (NSCharacterSet *)characterSetWithCharactersInString:(NSString *)aString
	Returns a character set containing the characters in aString.  If aString is empty, an empty character set is returned.  aString must not be nil.
+ (NSCharacterSet *)characterSetWithRange:(NSRange)aRange
	Returns a character set containing characters whose Unicode values are given by aRange.
+ (NSCharacterSet *)controlCharacterSet	Returns a character set containing the control characters (characters with decimal Unicode values 0 to 31 and 127 to 159).
+ (NSCharacterSet *)decimalDigitCharacterSet	Returns a character set containing only decimal digit characters (0-9).
+ (NSCharacterSet *)decomposableCharacterSet	Returns a character set containing all individual Unicode characters that can also be represented as composed character sequences.
+ (NSCharacterSet *)illegalCharacterSet	Returns a character set containing the illegal Unicode values.
+ (NSCharacterSet *)letterCharacterSet	Returns a character set containing the uppercase and lowercase alphabetic characters (a-z, A-Z, other alphabetic characters such as Ý, ‰, Û, ‡, and so on).
+ (NSCharacterSet *)lowercaseLetterCharacterSet
	Returns a character set containing only lowercase alphabetic characters (a-z, other alphabetic characters such as Ý, Û, and so on).
+ (NSCharacterSet *)nonBaseCharacterSet	Returns a set containing all characters which are not defined to be base characters for purposes of dynamic character composition.
+ (NSCharacterSet *)uppercaseLetterCharacterSet
	Returns a character set containing only uppercase alphabetic characters (A-Z, other alphabetic characters such as ‰, ‡, and so on).
+ (NSCharacterSet *)whitespaceAndNewlineCharacterSet
	Returns a character set containing only whitespace characters (space and tab) and the newline character.
+ (NSCharacterSet *)whitespaceCharacterSet	Returns a character set containing only in-line whitespace characters (space and tab).  This set doesn't contain the newline or carriage return characters.

Getting a Binary Representation 

- (NSData *)bitmapRepresentation	Returns an NSData object encoding the receiving character set in binary format.  This format is suitable for saving to a file or otherwise transmitting or archiving.

Testing Set Membership 

- (BOOL)characterIsMember:(unichar)ch	Returns YES if aChar is in the receiving character set, NO if it isn't.

Inverting a Character Set 

- (NSCharacterSet *)invertedSet	Returns a character set containing only characters that don't exist in the receiver.