String
From Pointui
The String object is a basic data type class that contains a variable number of Unicode characters allows the characters to be manipulated. Some basic operators such as !=, ==, +, and += are implemented.
Methods
int GetLength()
Returns how many characters are in the string.
int IndexOf(String find)
int IndexOf(int startIndex, String find)
Returns the zero based index of the find String if it exists in this String, otherwise it returns -1. If startIndex (zero based index of which character to start looking from) is provided then the first occurance at or after the character at startIndex will be returned.
int IndexOfRev(String find)
Returns the zero based index of the find String if it exists in this String by looking from the end of the String back to the start, otherwise it returns -1.
void Delete(int startIndex, int numberOfCharsToDelete)
Removes characters from within the String starting at the zero based startIndex and deleting the specified numberOfCharsToDelete amount of characters.
void Replace(String find, String replace)
Returns a String that contains the find String replaced with the replace value. All instances are replaced.
String SubString(int startIndex, int numberOfChars)
Returns a sub string which contains the characters starting at the zero based index startIndex.
void FlattenWhitespace()
Removes consecutive whitespace characters.
bool StartsWith(String compare)
Returns true if the start of this string matches the compare string.
bool StartsWith(String compare)
Returns true if the start of this string matches the compare string.
bool EndsWith(String compare)
Returns true if the end of this string matches the compare string.
String UrlEncode(String value)
AVAILABLE SINCE: 2.0.18b Returns the value supplied as a url encoded String.
void FromCharCode(int charCode)
AVAILABLE SINCE: 2.1 Sets the value of the String to be the character representation of the specified charCode.
void ToUpper()
AVAILABLE SINCE: 2.1 Converts the characters in the string to upper case.
void ToLower()
AVAILABLE SINCE: 2.1 Converts the characters in the string to lower case.
