The string class used in Openplanet as well as the game.
The string class used in Openplanet as well as the game.
Returns true if the string starts with the given substring.
bool Returns true if the string ends with the given substring.
bool Returns true if the string contains the given substring.
bool Searches the string for the given substring and returns the index at which the last instance of it starts. When it is not found, returns -1.
int Searches the string for the given substring and returns the index at which it starts. When it is not found, returns -1.
int Returns a string from this string with whitespace at the start and end of the string removed. Whitespace includes spaces, tabs, newlines, vertical tabs, feeds, and carriage returns.
string Returns a string from this string with all characters in lowercase.
string Returns a string from this string with all characters in uppercase.
string Returns the remainder of the string after the given index. For example; for the string "Hello", SubStr(1) returns "ello".
string Returns a portion of the string from the index and length. For example; for the string "Hello", SubStr(1, 3) returns "ell".
string Returns the string with all the given search substrings replaced with the given replacement string.
string Splits the string on the given substring and returns an array with all the individual parts.
string[]@