Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights
Reserved.
NSMutableCharacterSet
Inherits From: NSCharacterSet : NSObject
Conforms To: NSCopying, NSMutableCopying
NSCoding, NSCopying, NSMutableCopying (NSCharacterSet)
NSObject (NSObject)
Declared In: Foundation/NSCharacterSet.h
Class Description
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
- - (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
aRange.
- - (void)removeCharactersInString:(NSString *)aString
Removes from the receiver the characters in aString.
Combining Character Sets
- - (void)formIntersectionWithCharacterSet:(NSCharacterSet
*)otherSet
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.
Inverting a Character Set
- - (void)invert Replaces all of the characters in the receiver with all
the characters it didn't previously contain.