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 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
- Blog Entries
Release notes
- 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.
- Version 22.2
- Optimized SplitCommaSeparatedValuesMBS to better handle lonely quotes in quoted strings.
- Updated RemoveAccentsMBS function to recognize more characters like ½.
- Version 22.1
- Added Add method for StringHandleMBS class to add another StringHandleMBS object.
- Added ContainsWholeWordMBS function.
- Improved performance for ConvertUnicodeToCharacterDecompositionMBS and ConvertUnicodeToCharacterCompositionMBS functions.
- Version 21.3
- Added Clear method to StringHandleMBS class.
- Added option to pass array and start position to FindByte function in StringHandleMBS class.
- Added StringCodePointsMBS function.
- Added UInt32Value, UInt8Value and UInt16Value to StringHandleMBS class.
- Version 21.1
- Fixed bug in Reverse method in StringHandleMBS class.
- Fixed possible crash in CheckUTF8MBS function.
- Version 20.4
- Added LoadIconvLibrary method for ArchiverMBS, XMLValidatorMBS, zxingReaderMBS, GMImageMBS and TextConverterMBS classes for helping with text encodings if needed.
The items on this page are in the following plugins: MBS DataTypes Plugin, MBS Util Plugin.