Platforms to show: All Mac Windows Linux Cross-Platform
NSMutableCharacterSetMBS class
Super class: NSCharacterSetMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacBase Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You can add or remove characters from a mutable character set as numeric values in NSRange structures or as character values in strings, combine character sets by union or intersection, and invert a character set.
Mutable character sets are less efficient to use than immutable character sets. If you don't need to change a character set after creating it, create an immutable copy with copy and use that.
NSMutableCharacterSet defines no primitive methods. Subclasses must implement all methods declared by this class in addition to the primitives of NSCharacterSet. They must also implement mutableCopy.
Subclass of the NSCharacterSetMBS class.
- 8 methods
- method addCharactersInRange(aRange as NSRangeMBS)
- method addCharactersInString(aString as string)
- method Constructor
- method formIntersectionWithCharacterSet(otherset as NSMutableCharacterSetMBS)
- method formUnionWithCharacterSet(otherset as NSMutableCharacterSetMBS)
- method invert
- method removeCharactersInRange(aRange as NSRangeMBS)
- method removeCharactersInString(aString as string)
Super class NSCharacterSetMBS
- 3 properties
- property CharacterCount as Integer New in 24.1
- property Handle as Integer
- property StringValue as string
- 13 methods
- method bitmapRepresentation as MemoryBlock
- method characterIsMember(Character as Integer) as boolean
- method componentsSeparatedByCharactersInSet(s as string) as String()
- method Constructor
- method copy as NSCharacterSetMBS
- method hasMemberInPlane(thePlane as Integer) as boolean
- method invertedSet as NSCharacterSetMBS
- method isSupersetOfSet(theOtherSet as NSCharacterSetMBS) as boolean
- method longCharacterIsMember(theLongChar as Integer) as boolean
- method mutableCopy as NSMutableCharacterSetMBS
- method Operator_Convert as string
- method rangeOfCharacterFromSet(s as string, options as Integer = 0, searchRange as NSRangeMBS = nil) as NSRangeMBS
- method stringByTrimmingCharactersInSet(s as string) as String
- 20 shared methods
- shared method alphanumericCharacterSet as NSCharacterSetMBS
- shared method capitalizedLetterCharacterSet as NSCharacterSetMBS
- shared method characterSetWithBitmapRepresentation(data as MemoryBlock) as NSCharacterSetMBS
- shared method characterSetWithCharactersInString(aString as string) as NSCharacterSetMBS
- shared method characterSetWithContentsOfFile(aString as string) as NSCharacterSetMBS
- shared method characterSetWithContentsOfFile(file as folderitem) as NSCharacterSetMBS
- shared method characterSetWithRange(r as NSRangeMBS) as NSCharacterSetMBS
- shared method controlCharacterSet as NSCharacterSetMBS
- shared method decimalDigitCharacterSet as NSCharacterSetMBS
- shared method decomposableCharacterSet as NSCharacterSetMBS
- shared method illegalCharacterSet as NSCharacterSetMBS
- shared method letterCharacterSet as NSCharacterSetMBS
- shared method lowercaseLetterCharacterSet as NSCharacterSetMBS
- shared method newlineCharacterSet as NSCharacterSetMBS
- shared method nonBaseCharacterSet as NSCharacterSetMBS
- shared method punctuationCharacterSet as NSCharacterSetMBS
- shared method symbolCharacterSet as NSCharacterSetMBS
- shared method uppercaseLetterCharacterSet as NSCharacterSetMBS
- shared method whitespaceAndNewlineCharacterSet as NSCharacterSetMBS
- shared method whitespaceCharacterSet as NSCharacterSetMBS
Constants
Constant | Value | Description |
---|---|---|
NSOpenStepUnicodeReservedBase | &hF400 |
A constant to specify lower bound for a Unicode character range reserved for Apple's corporate use.
Specifies lower bound for a Unicode character range reserved for Apple's corporate use (the range is 0xF400–0xF8FF). |
This class has no sub classes.
Some methods using this class:
- NSCharacterSetMBS.mutableCopy as NSMutableCharacterSetMBS
Blog Entries
Xojo Developer Magazine
The items on this page are in the following plugins: MBS MacBase Plugin.
NSMutableAttributedStringMBS - NSMutableIndexSetMBS