Platforms to show: All Mac Windows Linux Cross-Platform
StringMBS class New in 26.3
Super class: StringViewMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Internally using UTF-32, so each character is one unit.
Subclass of the StringViewMBS class.
- 4 properties
- property Capacity as UInt64
- property Small as Boolean
- property StringValue as String
- property Character(Index as Integer) as UInt32
- 31 methods
- method Append(other as StringViewMBS)
- method Append(other as StringViewMBS) as StringMBS
- method Append(other as StringViewMBS, pos as Integer, length as Integer = -1)
- method Append(value as String)
- method Append(value as String) as StringMBS
- method Assign(value as String)
- method Assign(value as StringViewMBS)
- method Clear
- method Clone as StringMBS
- method Constructor
- method Constructor(value as String)
- method Constructor(value as StringViewMBS)
- method Erase(pos as Integer = 0, length as Integer = -1)
- method Insert(pos as Integer, other as StringViewMBS)
- method Insert(pos as Integer, other as StringViewMBS, spos as Integer, length as Integer = -1)
- method Insert(pos as Integer, value as String)
- method Operator_Add(other as StringViewMBS) as StringMBS
- method Operator_Add(value as String) as StringMBS
- method PopBack
- method PushBack(c as UInt32)
- method RemovePrefix(Characters as integer)
- method RemoveSuffix(Characters as integer)
- method Replace(find as StringMBS, text as StringMBS) as StringMBS
- method Replace(pos as Integer, length as Integer, text as String)
- method Replace(pos as Integer, length as Integer, text as StringViewMBS)
- method ReplaceAll(find as StringMBS, text as StringMBS) as StringMBS
- method Reserve(amount as Integer)
- method Resize(amount as Integer, Character as UInt32 = 0)
- method ShrinkToFit
- method SubString(Pos as Integer, Length as Integer = -1) as StringMBS
- method Swap(other as StringMBS)
- 3 shared methods
- shared method StringFromCharacters(Characters() as UInt32) as StringMBS
- shared method StringFromData(Data as MemoryBlock) as StringMBS
- shared method StringFromString(s as String) as StringMBS
Super class StringViewMBS
- 7 properties
- 26 methods
- method Assign(value as String)
- method Assign(value as StringViewMBS)
- method Character(Index as Integer) as UInt32
- method Characters as UInt32()
- method Compare(value as String) as Integer
- method Compare(value as StringViewMBS) as Integer
- method Constructor
- method Constructor(value as String)
- method Constructor(value as StringViewMBS)
- method Contains(value as String) as Boolean
- method Contains(value as StringViewMBS) as Boolean
- method EndsWith(value as String) as Boolean
- method EndsWith(value as StringViewMBS) as Boolean
- method Find(value as String, pos as Integer = 0) as Integer
- method Find(value as StringViewMBS, pos as Integer = 0) as Integer
- method LowerCase as StringMBS
- method Operator_Compare(value as String) as Integer
- method Operator_Compare(value as StringViewMBS) as Integer
- method RemovePrefix(Characters as integer)
- method RemoveSuffix(Characters as integer)
- method StartsWith(value as String) as Boolean
- method StartsWith(value as StringViewMBS) as Boolean
- method SubView(Pos as Integer, Length as Integer = -1) as StringViewMBS
- method Swap(other as StringViewMBS)
- method ToData as MemoryBlock
- method UpperCase as StringMBS
- 5 shared methods
- shared method Join(strings() as StringViewMBS) as StringMBS
- shared method Join(strings() as Variant) as StringMBS
- shared method ViewFromCharacters(Characters() as UInt32) as StringViewMBS
- shared method ViewFromData(Data as MemoryBlock) as StringViewMBS
- shared method ViewFromString(s as String) as StringViewMBS
Constants
| Constant | Value | Description |
|---|---|---|
| npos | -1 | The constant for the not found position. |
This class has no sub classes.
Blog Entries
Xojo Developer Magazine
Release notes
- Version 26.3
- Added StringMBS and StringViewMBS classes.
- Version 26.1
- Fixed CalculateCRC16StringMBS and CalculateCRC16MemoryMBS to work better with reflected input, broken in 26.0.
- Version 26.0
- Fixed CalculateCRC16StringMBS and CalculateCRC16MemoryMBS to work better with reflected input.
Some methods using this class:
- StringViewMBS.Join(strings() as StringViewMBS) as StringMBS
- StringViewMBS.Join(strings() as Variant) as StringMBS
- StringViewMBS.LowerCase as StringMBS
- StringViewMBS.UpperCase as StringMBS
Some examples using this class:
- /Compression/Old ZipMBS class/zip folder with encryption
- /Compression/Old ZipMBS class/zip with encryption
- /MacExtras/Sparkle/UpdaterKit/AppCast Creator/AppCast Creator
- /MacExtras/Sparkle/UpdaterKit/Updater Example
- /MacExtras/Sparkle/UpdaterKit/Utilities/Drop file to see MD5 Checksum
- /Util/Dynamic Declare
Some related classes:
The items on this page are in the following plugins: MBS Util Plugin.
StringHashSetMBS - StringOrderedSetIteratorMBS