The String object
Functions
| Add | Concatenates two strings. |
|---|---|
| AddAndGet | Concatenates two strings then retrieves the result. |
| AddQuotes | Inserts quotes if the string does not contain quotes. |
| AlignCenter | Centers the text. |
| AlignJustify | Justifies the text. |
| AlignLeft | Aligns the text to left. |
| AlignRight | Aligns the text to right. |
| CalculateCRC32 | Calculates the CRC32 value of the string. |
| CalculateMD5 | Calculates the MD5 value of the string. |
| CalculateSHA1 | Calculates the SHA-1 value of the string. |
| Compare | Compares two strings. |
| Delete | Removes characters from the string. |
| Find | |
| FindAllExcept | |
| FindOneOf | |
| FindOut | |
| FindVariable | |
| FromBR | |
| FromBase128 | |
| FromBase64 | |
| FromHexString | |
| FromHtml | |
| FromUrl | |
| Get | Retrieves the whole text. |
| GetAt | Retrieves the ASCII character of the specified index position. |
| GetBinValue | |
| GetData | Retrieves the data value of the string. |
| GetFloatValue | |
| GetHexValue | |
| GetIntValue | |
| GetLength | Retrieves the number of characters. |
| GetLineCount | Retrieves the number of lines. |
| GetLower | Retrieves the text in lower case without editing the original one. |
| GetMaxLineLength | Retrieves the number of characters of the lengthiest line. |
| GetNoSpaces | Retrieves the text without spaces. |
| GetObjectRef | Retrieves the inner Seccia reference of the object. |
| GetRomanValue | |
| GetSub | Retrieves a portion of the text. |
| GetUpper | Retrieves the text in upper case without editing the original one. |
| GetValueAt | Retrieves the ASCII value of the specified character. |
| GetValueType | Parses the string and retrieves the string value type. |
| HasQuotes | Checks if the string contains quotes. |
| Insert | Inserts a new portion of text at the specified index position. |
| IsAlphaAt | Tests if the character of the specified index position is a letter. |
| IsConsonantAt | Tests if the letter of the specified index position is a consonant. |
| IsDigitAt | Tests if the character of the specified index position is a digit. |
| IsFileName | Checks if the text may be used as a file name for Windows. |
| IsFloatNumber | |
| IsHexNumber | |
| IsIP | |
| IsIntNumber | |
| IsLowerAt | Tests if the character of the specified index position is a letter in lower case. |
| IsLowerVariableName | Checks if the text may be a variable name in lower case for any langage. |
| IsNumber | |
| IsSimilar | |
| IsUpperAt | Tests if the character of the specified index position is a letter in upper case. |
| IsUpperVariableName | Checks if the text may be a variable name in upper case for any langage. |
| IsVariableName | Checks if the text may be a variable name for any langage. |
| IsVowelAt | Checks if the letter of the specified index position is a vowel. |
| Left | Retrieves a portion of the text. |
| LeftPart | Retrieves the left part of the text. |
| LeftTo | Retrieves a portion of the text. |
| Mid | Retrieves a portion of the text. |
| ReadLine | Reads line per line the content. |
| ReadTag | Reads the content tag per tag. |
| ReadWord | Reads word per word the content. |
| RemoveAccents | Removes all the letters that contain any accents. |
| RemoveQuotes | Removes quotes. |
| RemoveSpaces | Removes all spaces from the string. |
| RemoveTitleNumber | Removes numbers as a digit prefix. |
| RemoveUselessSpaces | Removes all useless spaces for source code. |
| Replace | |
| Reverse | Reverses the text letter by letter. |
| ReverseFind | |
| ReverseFindOneOf | |
| Right | Retrieves a portion of the text. |
| RightPart | Retrieves the left part of the text. |
| Set | Changes the current text. |
| SetAndGet | Changes the current text and retrieves the new text. |
| SetAt | Changes the ASCII character of the specified index position. |
| SetBinValue | |
| SetData | Changes the data value of the string. |
| SetFloatValue | |
| SetHexValue | |
| SetIntValue | |
| SetLength | Changes the length of the string. |
| SetLower | Changes all letters in lower case. |
| SetRomanValue | Converts an integer to a Roman number. |
| SetSub | Changes a portion of the text. |
| SetUpper | Changes all letters in upper case. |
| SetValueAt | Changes the character of the specified index position with its ASCII value. |
| Split | Splits the string in different parts by using one or several separators. |
| SplitTags | Is similar to the String.ReadTag function except it stores all the data in a StringArray object and it's easier to use it. |
| ToBR | |
| ToBase128 | |
| ToBase64 | |
| ToHexString | |
| ToHtml | |
| ToHtmlEntities | |
| ToUrl | |
| Trim | Removes spaces and tabs, or any characters. |
| TrimLeft | Removes spaces and tabs, or any characters. |
| TrimRight | Removes spaces and tabs, or any characters. |
Events
The String object has no events.
Constants
| SPL_NOQUOTE | Remove quotes after parsing (only with separator quotes). You do not need to specify String.SPL_QUOTE and String.SPL_QUOTESEP because its value is 0x07. (String.Split) |
|---|---|
| SPL_NOSPACE | Trim string results. Cannot be used with a space separator. (String.Split) |
| SPL_QUOTE | Do not search separators in strings, its value is 0x01. (String.Split) |
| SPL_QUOTESEP | Like String.SPL_QUOTE but end-string becomes a separator. You do not need to specify String.SPL_QUOTE because its value is 0x03. (String.Split) |
| VAL_FLOAT | The string value is a float. (String.GetValueType) |
| VAL_HEX | The string value is a hexadecimal value (0x). (String.GetValueType) |
| VAL_INT | The string value is an integer. (String.GetValueType) |
| VAL_NONE | The string value is an unknown format. (String.GetValueType) |
| VAL_STR | The string value is a string (quotes). (String.GetValueType) |