Platforms to show: All Mac Windows Linux Cross-Platform
StringViewMBS class New in 26.3
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Allows you to have a view on a string, so you can access it without copying the data.
Search operations are case sensitive.
- 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. |
Sub classes:
Blog Entries
Release notes
- Version 26.3
- Added StringMBS and StringViewMBS classes.
Some methods using this class:
- StringMBS.Append(other as StringViewMBS)
- StringMBS.Append(other as StringViewMBS) as StringMBS
- StringMBS.Append(other as StringViewMBS, pos as Integer, length as Integer = -1)
- StringMBS.Assign(value as StringViewMBS)
- StringMBS.Constructor(value as StringViewMBS)
- StringMBS.Insert(pos as Integer, other as StringViewMBS)
- StringMBS.Insert(pos as Integer, other as StringViewMBS, spos as Integer, length as Integer = -1)
- StringMBS.Operator_Add(other as StringViewMBS) as StringMBS
- StringMBS.Replace(pos as Integer, length as Integer, text as StringViewMBS)
Some related classes:
The items on this page are in the following plugins: MBS Util Plugin.
StringToVariantOrderedMapMBS - StyledText