comp • gb.util • string

String (gb.util)

This class provides string utility functions.

This class reimplements String in gb.
This class is static.

Static methods

This is a synonymous of the Pos method.
Byte  
Returns a character from its Unicode value. It is UTF-8 encoded.
Chr  
Returns the Unicode value of a character inside an UTF-8 string.
Code  
Compares two UTF-8 strings, and returns:
Comp  
Return the Damerau-Levenshtein distance between two strings.
Distance  
Return the text contents of an HTML string, by removing all markups and entities.
FromHTML  
Returns the position of the first occurrence of Pattern in String.
InStr  
Returns the index of the character at position Pos in the string.
Index  
Return TRUE if String is a valid UTF-8 string.
IsValid  
Returns an UTF-8 string converted to lower case.
LCase  
Returns the Length first characters of an UTF-8 string.
Left  
Returns the length of an UTF-8 string in characters.
Len  
This is a synonymous for the String.LCase method.
Lower  
Returns a substring containing the Length characters from the position Start.
Mid  
Returns the position of the character of index Index in the string.
Pos  
Returns the position of the last occurrence of Pattern in String.
RInStr  
Return a copy of a string with all diacritics removed.
RemoveDiacritics  
Returns the Length last characters of an UTF-8 string.
Right  
ToPhonetic  
Returns an UTF-8 string converted to upper case.
UCase  
Return the string with its first letter converted to upper case.
UCaseFirst  
This is a synonymous for the String.UCase method.
Upper