StringHandleMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

StringHandleMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class String MBS DataTypes Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A class for attaching strings together very fast.
Example
dim s as StringHandleMBS

s=new StringHandleMBS

// Add some text
s.Add "Hello"
s.Add " "
s.Add "World"

// Insert a string
s.Insert " great",6

// check it
MsgBox s.Copy

// Delete the great from above
s.Delete 6,7

// check
MsgBox s.Copy

// Insert again
s.Insert " great ",6

// check
MsgBox s.Copy

// Now we extract the middle, so it's deleted
MsgBox s.Extract(6,7)

// check again
MsgBox s.copy

The class initalized itself on the first use.

Encodings

Constant Value Description
encodingASCII &h0600 ASCII encoding.
encodingBinary &hFFFF No encoding.
encodingLatin1 &h0201 ISO Latin 1 encoding.
encodingMacRoman 0 Mac Roman encoding.
encodingUnicode &h0100 Unicode UTF16 encoding.
encodingUTF8 &h08000100 UTF-8 encoding.
encodingWindows &h0500 Windows encoding.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


StdoutMBS   -   StringHashSetIteratorMBS


💬 Ask a question or report a problem