Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights
Inherits From: NSCharacterSet : NSObject
Conforms To: NSCopying, NSMutableCopying
NSCoding, NSCopying, NSMutableCopying (NSCharacterSet)
Declared In: Foundation/NSCharacterSet.h
The NSMutableCharacterSet class declares the programmatic interface to objects
that construct mutable descriptions of character sets in the UniCode
character encoding. Having constructed such character set descriptions using
methods described in the NSCharacterSet class, you can use the methods
described here to modify the character sets dynamically.
Adding and Removing Characters
Combining Character Sets
- - (void)addCharactersInRange:(NSRange)aRange Adds to the receiver
the Unicode characters whose values are given by aRange.
- - (void)addCharactersInString:(NSString *)aString Adds the
characters in aString to those in the receiver.
- - (void)removeCharactersInRange:(NSRange)aRange
Removes from the receiver the Unicode characters whose values are given by
- - (void)removeCharactersInString:(NSString *)aString
Removes from the receiver the characters in aString.
Inverting a Character Set
- - (void)formIntersectionWithCharacterSet:(NSCharacterSet
Modifies the receiver so that it contains only those characters that exist in
both the receiver and in otherSet.
- - (void)formUnionWithCharacterSet:(NSCharacterSet *)otherSet
Modifies the receiver so that it contains all characters that exist in
either the receiver or otherSet, barring duplicates.
- - (void)invert Replaces all of the characters in the receiver with all
the characters it didn't previously contain.