Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSMutableCharacterSetMBS class.

NSMutableCharacterSetMBS.addCharactersInRange(aRange as NSRangeMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Adds to the receiver the characters whose Unicode values are in a given range.
Example
dim m as new NSMutableCharacterSetMBS
dim r as new NSRangeMBS(65,3)
m.addCharactersInRange r
MsgBox m // shows "ABC"

aRange: The range of characters to add.

aRange.location is the value of the first character to add; aRange.location + aRange.length– 1 is the value of the last. If aRange.length is 0, this method has no effect.

NSMutableCharacterSetMBS.addCharactersInString(aString as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Adds to the receiver the characters in a given string.
Example
dim m as new NSMutableCharacterSetMBS
m.addCharactersInString "Hello"
MsgBox m // shows "Helo"

This method has no effect if aString is empty.

NSMutableCharacterSetMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an empty mutable character set.

NSMutableCharacterSetMBS.formIntersectionWithCharacterSet(otherset as NSMutableCharacterSetMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Modifies the receiver so it contains only characters that exist in both the receiver and otherSet.

NSMutableCharacterSetMBS.formUnionWithCharacterSet(otherset as NSMutableCharacterSetMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Modifies the receiver so it contains all characters that exist in either the receiver or otherSet.

NSMutableCharacterSetMBS.invert

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Replaces all the characters in the receiver with all the characters it didn't previously contain.

Inverting a mutable character set, whether by invert or by invertedSet, is much less efficient than inverting an immutable character set with invertedSet.

NSMutableCharacterSetMBS.removeCharactersInRange(aRange as NSRangeMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes from the receiver the characters whose Unicode values are in a given range.
Example
dim m as new NSMutableCharacterSetMBS
dim r as new NSRangeMBS(65,3)
m.addCharactersInRange new NSRangeMBS(65,6)
m.removeCharactersInRange r
MsgBox m // shows "DEF"

aRange: The range of characters to remove.

aRange.location is the value of the first character to remove; aRange.location + aRange.length– 1 is the value of the last. If aRange.length is 0, this method has no effect.

NSMutableCharacterSetMBS.removeCharactersInString(aString as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes from the receiver the characters in a given string.
Example
dim m as new NSMutableCharacterSetMBS
m.addCharactersInString "Hello"
m.removeCharactersInString "World"
MsgBox m // shows "He"

This method has no effect if aString is empty.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...