Platforms to show: All Mac Windows Linux Cross-Platform
Back to StringViewMBS class.
StringViewMBS.Assign(value as String)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The plugin keeps a reference to the string to avoid it being freed too early.
See also:
StringViewMBS.Assign(value as StringViewMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The plugin keeps a reference to the StringViewMBS to avoid it being freed too early.
See also:
StringViewMBS.Character(Index as Integer) as UInt32
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringViewMBS.Characters as UInt32()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Copies data into the new array.
StringViewMBS.Compare(value as String) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns zero if strings are equal.
See also:
StringViewMBS.Compare(value as StringViewMBS) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns zero if strings are equal.
See also:
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Creates an empty string view.
See also:
StringViewMBS.Constructor(value as String)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Creates a string view looking into the given string.
See also:
StringViewMBS.Constructor(value as StringViewMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Creates a string view copying the existing one.
See also:
StringViewMBS.Contains(value as String) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if the given value is found within the string.
See also:
StringViewMBS.Contains(value as StringViewMBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if the given value is found within the string.
Search is case sensitive.
See also:
StringViewMBS.EndsWith(value as String) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if the string ends with the provided suffix, false otherwise.
See also:
StringViewMBS.EndsWith(value as StringViewMBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if the string ends with the provided suffix, false otherwise.
See also:
StringViewMBS.Find(value as String, pos as Integer = 0) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Search begins at pos.
Returns -1 if not found.
See also:
StringViewMBS.Find(value as StringViewMBS, pos as Integer = 0) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Search begins at pos.
Returns -1 if not found.
See also:
StringViewMBS.LowerCase as StringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Needs the locale set.
StringViewMBS.Operator_Compare(value as String) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns 0 for equal and 1 if the value is bigger or -1 if it is smaller.
See also:
StringViewMBS.Operator_Compare(value as StringViewMBS) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns 0 for equal and 1 if the value is bigger or -1 if it is smaller.
See also:
StringViewMBS.RemovePrefix(Characters as integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Effectively moves start pointer and reduces length.
StringViewMBS.RemoveSuffix(Characters as integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Effectively reduces length.
StringViewMBS.StartsWith(value as String) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if the string begins with the provided prefix, false otherwise.
See also:
StringViewMBS.StartsWith(value as StringViewMBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if the string begins with the provided prefix, false otherwise.
See also:
StringViewMBS.SubView(Pos as Integer, Length as Integer = -1) as StringViewMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The text is not copied, but references.
If length is omitted or -1, we return until the end of the string.
StringViewMBS.Swap(other as StringViewMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
StringViewMBS.ToData as MemoryBlock
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Copies the data into a new MemoryBlock.
The MemoryBlock must contain UTF-32 characters (4 bytes per character).
StringViewMBS.UpperCase as StringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | String | MBS Util Plugin | 26.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Needs the locale set.
The items on this page are in the following plugins: MBS Util Plugin.