Platforms to show: All Mac Windows Linux Cross-Platform

Back to StringHandleMBS class.

StringHandleMBS.BlockLen as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The size of the memory currently used for this class.

This value increases by BlockSize if more memory is needed.
(Read only property)

StringHandleMBS.BlockSize as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The size of the blocks to allocate for storing the data.

(Read and Write property)

StringHandleMBS.Encoding as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The encoding to use for returned strings.

Only useful on Xojo 4.5 and newer.

Some example values for encoding:
MacRoman 0Also for ASCII or binary data used.
WindowsLatin1&h0500ANSI codepage 1252
ISOLatin1&h0201ISO 8859-1
NextStepLatin&h0B01NextStep encoding
Unicode &h010016 bit Unicode
UTF8&h080001008 bit Unicode
Invalid&hFFFFFFFF(Binary)
Invalid&hFFFF(Binary)
(Read and Write property)

StringHandleMBS.Len as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the len in bytes of the stored string.

(Read only property)

StringHandleMBS.LenUTF8 as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 19.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries length of text in UTF-8 encoded characters.
Example
Dim s As String = "Hello öäü!"
Dim d As New StringHandleMBS(s)

MsgBox Str(d.Len)+" bytes, "+Str(d.LenUTF8)+" characters"

Returns incorrect values if string is not UTF-8!
(Read only property)

StringHandleMBS.ReplaceCount as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
After a call to one of the Replace functions the number of items replaced.

(Read and Write property)

StringHandleMBS.ValidASCII as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this string handle contains valid ASCII text.

(Read only property)

StringHandleMBS.ValidUTF8 as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS DataTypes Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this string handle contains valid UTF-8 text.
Example
Dim s As New StringHandleMBS

s.Add "Hello World"

Dim validUTF8a As Boolean = s.ValidUTF8

// now make invalid
s.AddByte 222

Dim validUTF8b As Boolean = s.ValidUTF8

Break

(Read only property)

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


The biggest plugin in space...