Platforms to show: All Mac Windows Linux Cross-Platform
String
String functions.
- Globals
- CheckUTF8MBS(data as ptr, size as Integer, Placeholder as string) as string
- CheckUTF8MBS(data as string, Placeholder as string) as string
- CheckUTF8MBS(mem as MemoryBlock, Placeholder as string) as string
- ClearStringContentMBS(s as String) as Boolean
- ConcatBinaryStringsMBS(a as string, b as string) as string
- ConcatBinaryStringsMBS(a as string, b as string, c as string) as string
- ConcatBinaryStringsMBS(a as string, b as string, c as string, d as string) as string
- ConcatBinaryStringsMBS(a as string, b as string, c as string, d as string, e as string) as string
- ConcatBinaryStringsMBS(a as string, b as string, c as string, d as string, e as string, f as string) as string
- ContainsWholeWordMBS(Text as String, Word as String) as boolean
- ConvertUnicodeToCharacterCompositionMBS(text as string) as string
- ConvertUnicodeToCharacterDecompositionMBS(text as string) as string
- CountOccurancesMBS(s as string, find as string) as Integer
- CreateStringMBS(Length as Integer, Content as String) as string
- DecodingFromCP1252MBS(s as string) as string
- DecodingFromHexMBS(s as string) as string
- DecodingFromHTMLMBS(s as string) as string
- DecodingFromISO8859MBS(s as string) as string
- DecodingFromMySQLMBS(s as string) as string
- DecodingFromQuotedPrintableMBS(s as string) as string
- DecodingFromURLMBS(s as string) as string
- DecodingFromURLMBS(s as string, options as Integer) as string
- DecodingFromXMLMBS(s as string) as string
- DetectUnicodeMarkersMBS(s as string) as Integer
- EncodeEmailSubjectMBS(s as string) as string
- EncodingNameMBS(extends Text as string) as string
- EncodingToCP1252MBS(s as string) as string
- EncodingToHexMBS(s as string) as string
- EncodingToHTMLMBS(s as string, options as Integer = 0) as string
- EncodingToISO8859MBS(s as string) as string
- EncodingToQuotedPrintableMBS(s as string, LineLen as Integer = 72) as string
- EncodingToURLMBS(s as string) as string
- EncodingToURLMBS(s as string, options as Integer) as string
- EncodingToXMLMBS(s as string, options as Integer = 0) as string
- GetStringsFromDataMBS(data as MemoryBlock, MinLength as Integer = 0) as string()
- GetStringsFromDataMBS(data as ptr, size as Integer, MinLength as Integer = 0) as string()
- GetStringsFromDataMBS(data as String, MinLength as Integer = 0) as string()
- GetUnicodeMarkersMBS(kind as Integer) as string
- HasPostfixMBS(Text as String, Prefix as String) as boolean
- HasPrefixMBS(Text as String, Prefix as String) as boolean
- HexstringMBS(input as string, hexlen as Integer, linelen as Integer, linestart as string, lineend as string, spacer as string,filler as string) as string
- InStrByteRangeMBS(target as string, find as string, StartValue as Integer, EndValue as Integer) as Integer
- InStrByteRangeMBS(target as string, find as string, StartValue as Integer, EndValue as Integer, StartValue2 as Integer, EndValue2 as Integer) as Integer
- InStrByteRangeMBS(target as string, find as string, StartValue as Integer, EndValue as Integer, StartValue2 as Integer, EndValue2 as Integer, StartValue3 as Integer, EndValue3 as Integer) as Integer
- InStrByteRangeMBS(target as string, StartValue as Integer, EndValue as Integer) as Integer
- InStrByteRangeMBS(target as string, StartValue as Integer, EndValue as Integer, StartValue2 as Integer, EndValue2 as Integer) as Integer
- InStrByteRangeMBS(target as string, StartValue as Integer, EndValue as Integer, StartValue2 as Integer, EndValue2 as Integer, StartValue3 as Integer, EndValue3 as Integer) as Integer
- InStrBytesMBS(target as string, find as string) as Integer
- IsASCIIStringMBS(s as string) as boolean
- IsASCIIStringMBS(s as string, mode as Integer) as boolean
- JaroWinklerDistanceMBS(a as string, b as string) as Double
- JoinDataMBS(blocks() as memoryblock) as string
- JoinDataMBS(strings() as string) as string
- JoinDataMBS(values() as Variant) as string
- JoinStringMBS(strings() as string) as string
- JoinStringMBS(values() as Variant) as string
- LevenshteinDistanceMBS(a as string, b as string) as Double
- NativeStringMBS(s as string) as string
- RandomBytesStringMBS(Length as Integer, ASCII as boolean=false) as string
- RemoveAccentsMBS(text as string, IgnoreCase as boolean = false) as string
- RemoveHTMLTagsMBS(AsciiTextWithTags as string) as string
- RemoveHTMLTagsWithMBS(AsciiTextWithTags as string, Replacement as string) as string
- ReplaceLineEndingsMBS(Text as String, NewLine as String, yield as boolean = false) as String
- ReplaceNonPrintableCharactersMBS(s as string, replacevalue as Integer=46) as string
- ScientificStrMBS(d as Double, digits as Integer) as string
- SplitCommaSeparatedValuesMBS(text as string, delimiter as string = "", quote as string = "") as string()
- SplitMBS(value as String, delimiter as String = " ") as String()
- SQLReplaceBooleanMBS(SQL as string) as string
- StrCompBytesMBS(a as string, b as string) as Integer
- StrCompCharactersMBS(a as string, b as string) as Integer
- StringANDMBS(a as string,b as string) as string
- StringCodePointsMBS(text as string) as UInt32()
- StringIsHTMLreadyMBS(s as string) as boolean
- StringIsXMLreadyMBS(s as string) as boolean
- StringORMBS(a as string,b as string) as string
- StringXOR2MBS(data as string, XorMask as string, MaskOffset as Integer = 0) as string
- StringXORMBS(data as string, XorMask as string, MaskOffset as Integer = 0) as string
- StrMBS(d as Double) as string
- UnicodeStringMBS(s as string) as string
- Classes
- class StringHandleMBS
- method Add(data as MemoryBlock)
- method Add(data as Ptr, size as Integer)
- method Add(data as string)
- method Add(data as StringHandleMBS)
- method AddByte(value as UInt8)
- method AddInteger(value as Int64)
- method Clear
- method clone as StringHandleMBS
- method Constructor
- method Constructor(InitValue as MemoryBlock)
- method Constructor(initvalue as string)
- method Copy as string
- method CopyMemory as MemoryBlock
- method Delete(start as Integer, lengthBytes as Integer)
- method Extract(start as Integer, lengthBytes as Integer) as string
- method FindByte(value as UInt8, StartByteOffset as Integer = 1) as Integer
- method FindByte(values() as UInt8, StartByteOffset as Integer = 1) as Integer
- method FirstNonWhiteSpace(StartByteOffset as Integer = 1) as Integer
- method FirstWhiteSpace(StartByteOffset as Integer = 1) as Integer
- method Insert(data as string, position as Integer)
- method InStr(OffsetBytes as Integer = 1, target as String, EndOffsetBytes as Integer = -1) as Integer
- method InStrUTF8(OffsetCharacters as Integer = 1, target as String, EndOffsetCharacters as Integer = -1) as Integer
- shared method IsValidASCII(data as ptr, TotalByteLength as integer) as Boolean
- shared method IsValidUTF8(data as ptr, TotalByteLength as integer) as Boolean
- method Left(lengthBytes as Integer) as string
- method LeftUTF8(lengthCharacter as integer) as string
- method Mid(startByte as Integer, lengthBytes as Integer) as string
- method MidInteger(startByte As Integer, lengthBytes As Integer = -1) as Int64
- method MidUTF8(startCharacter as integer, lengthCharacter as integer) as string
- method Replace(a as String, b as string)
- method Replace(startpos as Integer, a as String, b as string)
- method ReplaceAll(a as String, b as string)
- method ReplaceAll(startpos as Integer, a as String, b as string)
- method Reverse as StringHandleMBS
- method Right(lengthBytes as Integer) as string
- method RightUTF8(lengthCharacter as integer) as string
- method Truncate(lengthBytes as Integer)
- method TruncateUTF8(lengthCharacters as integer)
- shared method UTF8Length(data as ptr, TotalByteLength as integer) as Integer
- shared method UTF8LengthToBytes(data as ptr, TotalByteLength as integer, Characters as Integer) as Integer
- property BlockLen as Int64
- property BlockSize as Int64
- property Encoding as Int64
- property Len as Int64
- property LenUTF8 as Int64
- property ReplaceCount as Int64
- property ValidASCII as Boolean
- property ValidUTF8 as Boolean
- property UInt16Value(offset as Integer) as UInt16
- property UInt32Value(offset as Integer) as UInt32
- property UInt8Value(offset as Integer) as UInt8
- class StringMBS
- method Append(other as StringViewMBS)
- method Append(other as StringViewMBS) as StringMBS
- method Append(other as StringViewMBS, pos as Integer, length as Integer = -1)
- method Append(value as String)
- method Append(value as String) as StringMBS
- method Assign(value as String)
- method Assign(value as StringViewMBS)
- method Clear
- method Clone as StringMBS
- method Constructor
- method Constructor(value as String)
- method Constructor(value as StringViewMBS)
- method Erase(pos as Integer = 0, length as Integer = -1)
- method Insert(pos as Integer, other as StringViewMBS)
- method Insert(pos as Integer, other as StringViewMBS, spos as Integer, length as Integer = -1)
- method Insert(pos as Integer, value as String)
- method Operator_Add(other as StringViewMBS) as StringMBS
- method Operator_Add(value as String) as StringMBS
- method PopBack
- method PushBack(c as UInt32)
- method RemovePrefix(Characters as integer)
- method RemoveSuffix(Characters as integer)
- method Replace(find as StringMBS, text as StringMBS) as StringMBS
- method Replace(pos as Integer, length as Integer, text as String)
- method Replace(pos as Integer, length as Integer, text as StringViewMBS)
- method ReplaceAll(find as StringMBS, text as StringMBS) as StringMBS
- method Reserve(amount as Integer)
- method Resize(amount as Integer, Character as UInt32 = 0)
- method ShrinkToFit
- shared method StringFromCharacters(Characters() as UInt32) as StringMBS
- shared method StringFromData(Data as MemoryBlock) as StringMBS
- shared method StringFromString(s as String) as StringMBS
- method SubString(Pos as Integer, Length as Integer = -1) as StringMBS
- method Swap(other as StringMBS)
- property Capacity as UInt64
- property Small as Boolean
- property StringValue as String
- property Character(Index as Integer) as UInt32
- class StringViewMBS
- 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
- shared method Join(strings() as StringViewMBS) as StringMBS
- shared method Join(strings() as Variant) as StringMBS
- 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
- shared method ViewFromCharacters(Characters() as UInt32) as StringViewMBS
- shared method ViewFromData(Data as MemoryBlock) as StringViewMBS
- shared method ViewFromString(s as String) as StringViewMBS
- property Back as Integer
- property Data as Ptr
- property Empty as Boolean
- property Front as Integer
- property Length as UInt64
- property Parent as Variant
- property StringValue as String
- class TextConverterMBS
- shared method Canonicalize(name as String) as String
- method Constructor
- method Convert
- shared method EncodingNames(Mode as Integer = 0) as String()
- shared method LoadIconvLibrary(path as String, byref Error as String) as boolean
- property ErrorCode as Integer
- property ErrorMessage as String
- property Ignore as Boolean
- property Input as String
- property InputData as MemoryBlock
- property InputEncoding as String
- property InputPosition as Integer
- shared property LibVersion as Integer
- property Output as String
- property OutputEncoding as String
- property OutputLength as Integer
- property Translit as Boolean
- class StringHandleMBS
- Class Extensions
- class TextEncoding
- method InternetNameMBS as string
- class TextEncoding
- Examples
- /ChartDirector/percentarea
- /DynaPDF/DynaPDF Merge 2 to 1
- /DynaPDF/Fonts Mapping with NSFont
- /DynaPDF/Show SysFont Fonts
- /Images/GIF/Gif Test String
- /MacCloud/Addressbook People Picker
- /MacCocoa/NSImage EPS Test/NSImage EPS Test
- /MacCocoa/NSTask/NSTask with Arguments
- /PDFKit/PDFViewControlMBS Test
- /Util/loadtester
- Blog Entries
- News from the MBS Xojo Plugins Version 22.1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 22.1
- MBS Xojo Plugins, version 22.1pr2
- MBS Xojo Plugins, version 22.1pr1
- MBS Xojo Plugins, version 20.1pr4
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.5
- MBS Xojo plug-ins in version 16.0
- CheckUTF8MBS function
- MBS REALbasic Plugins Version 10.4 release notes
- MonkeyBread Software Releases the MBS Plugins 8.2
Release notes
- Version 26.3
- Added StringMBS and StringViewMBS classes.
- Version 26.1
- Fixed CalculateCRC16StringMBS and CalculateCRC16MemoryMBS to work better with reflected input, broken in 26.0.
- Version 26.0
- Fixed CalculateCRC16StringMBS and CalculateCRC16MemoryMBS to work better with reflected input.
- Version 25.5
- Fixed JaroWinklerDistanceMBS function to work better with empty strings.
- Version 24.5
- Updated unicode tables for removing accents for RemoveAccentsMBS function.
- Version 24.0
- Fixed bug in RemoveHTMLTagsMBS function removing quoted texts.
- Moved TextConverterMBS class to MBS Xojo XML Plugin.
- Optimized text handling to be faster, which affects various string functions like ContainsWholeWordMBS.
- Version 23.5
- Added Constructor to StringHandleMBS class taking MemoryBlock.
- Fixed edge case for EncodingToHTMLMBS function on Linux.
- Version 22.5
- Improved SplitCommaSeparatedValuesMBS to better handle quotes in the middle of the text.
- Version 22.4
- Fixed a problem with SplitCommaSeparatedValuesMBS not parsing properly quoted multi line value.
The items on this page are in the following plugins: MBS ChartDirector Plugin, MBS DataTypes Plugin, MBS DynaPDF Plugin, MBS Images Plugin, MBS MacCloud Plugin, MBS MacCocoa Plugin, MBS PDFKit Plugin, MBS Util Plugin.