O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSCharacterSet — Mac OS X 10.0

Synopsis

A character set represents a collection of Unicode characters. An instance of NSCharacterSet is a static entity; NSCharacterSet’s subclass NSMutableCharacterSet defines an interface to a dynamic set of Unicode characters.

NSCharacterSet is toll-free bridged with the Core Foundation type CFCharacterSet. As such, NSCharacterSet objects can be used interchangeably with the CFCharacterSet pointer type, CFCharacterSetRef.

image with no caption

@interface NSCharacterSet : NSObject <NSCoding, NSCopying, NSMutableCopying>
                                  // Class Methods
   + (NSCharacterSet *)alphanumericCharacterSet;
   + (NSCharacterSet *)capitalizedLetterCharacterSet;
   + (NSCharacterSet *)characterSetWithBitmapRepresentation:(NSData *)data;
   + (NSCharacterSet *)characterSetWithCharactersInString:(NSString *)aString;
   + (NSCharacterSet *)characterSetWithContentsOfFile:(NSString *)fName;
   + (NSCharacterSet *)characterSetWithRange:(NSRange)aRange;
   + (NSCharacterSet *)controlCharacterSet;
   + (NSCharacterSet *)decimalDigitCharacterSet;
   + (NSCharacterSet *)decomposableCharacterSet;
   + (NSCharacterSet *)illegalCharacterSet;
   + (NSCharacterSet *)letterCharacterSet;
   + (NSCharacterSet *)lowercaseLetterCharacterSet;
   + (NSCharacterSet *)nonBaseCharacterSet;
   + (NSCharacterSet *)punctuationCharacterSet;
   + (NSCharacterSet *)uppercaseLetterCharacterSet;
   + (NSCharacterSet *)whitespaceAndNewlineCharacterSet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required