Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

StringHandleMBS.BlockLen as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 3.1 Yes Yes Yes Yes No
Function: The size of the memory currently used for this class.
Notes:
This value increases by BlockSize if more memory is needed.
(Read only property)

Feedback, Comments & Corrections

StringHandleMBS.BlockSize as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 3.1 Yes Yes Yes Yes No
Function: The size of the blocks to allocate for storing the data.
Notes: (Read and Write property)

Feedback, Comments & Corrections

StringHandleMBS.Encoding as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 3.1 Yes Yes Yes Yes No
Function: The encoding to use for returned strings.
Notes:
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)

Feedback, Comments & Corrections

StringHandleMBS.Len as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 3.1 Yes Yes Yes Yes No
Function: Returns the len in bytes of the stored string.
Notes: (Read only property)

Feedback, Comments & Corrections

StringHandleMBS.LenUTF8 as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: 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"
Notes:
Returns incorrect values if string is not UTF-8!
(Read only property)

Feedback, Comments & Corrections

StringHandleMBS.ReplaceCount as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 3.1 Yes Yes Yes Yes No
Function: After a call to one of the Replace functions the number of items replaced.
Notes: (Read and Write property)

Feedback, Comments & Corrections

StringHandleMBS.ValidASCII as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 19.2 Yes Yes Yes Yes No
Function: Whether this string handle contains valid ASCII text.
Notes: (Read only property)

Feedback, Comments & Corrections

StringHandleMBS.ValidUTF8 as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property String MBS DataTypes Plugin 19.2 Yes Yes Yes Yes No
Function: 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
Notes: (Read only property)

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins