A class that represents string-typed data.
Returns the character at the specified position.
Returns the character at the specified, zero-based index in the string.
Returns the unicode encoding of the character at the specified index.
Returns the unicode encoding of the character at the specified index.
Returns an integer indicating whether the current string is less than, equal to, or greater than a specified.
Returns an integer indicating whether the current string is less than, equal to, or greater than a specified string. If the current string is less than the specified string, the return result is negative; if the current string is equal to the specified string, the return result is zero; if the current string is greater than the specified string, the return result is positive. If the static function is used, string1 is compared with string2. Note: this function is equivalent to localeCompare().
A string resulting from concatenating the current string with the input elements.
Concatenates the elements str_1, ..., str_n with the current string and returns the results as a new string.
Returns a string created by converting all arguments to characters and concatenating them.
Returns a string created by converting all arguments to characters and concatenating them.
Returns the position of the first occurrence of text in the string after the starting index. If the text cannot be found, the function returns -1.
Returns the position of the first occurrence of text in the string after the starting index. If text cannot be found, the function returns -1.
Returns the position of the last occurrence of text in the string after the starting index. If the text cannot be found, the function returns -1.
Returns the position of the last occurrence of text in the string after the starting index. If text cannot be found, the function returns -1.
Returns an integer indicating whether the current string is less than, equal to, or greater than a specified.
Returns an integer indicating whether the current string is less than, equal to, or greater than a specified string. If the current string is less than the specified string, the return result is negative; if the current string is equal to the specified string, the return result is zero; if the current string is greater than the specified string, the return result is positive. If the static function is used, string1 is compared with string2. Note: this function is equivalent to compare().
Returns an array containing the results of searching the current string with the regular expression regexp. Returns null if no matches are found.
Searches the string for the regular expression specified by regexp and returns the results of the match in an array. If no matches are found, the function returns null.
A new string consisting of the text of the original String, with one or more occurrences of param replaced with text.
This function returns a new string, where the text in the new string is the text of the original string with the portions of replaced text. The portions of replaced text are determined by finding matches in the original string with the param, where the param is either a regular expression or literal text.
Returns the position of the first match of regexp or -1 if no match was found.
Returns the position of the first match of regexp or -1 if no match was found.
A string containing the characters between start and end including the former but excluding the latter. If start or end is negative, the result of adding the negative number to the length of string is used.
A string containing the characters between start and end including the former but excluding the latter. If start or end is negative, the result of adding the negative number to the length of string is used.
Returns an array containing string split up at the occurrences of the delimiter.
Returns an array containing string split up at the occurrences of the delimiter, where the maximum number of elements that can be returned in the array is given by limit.
Returns a formatted string
String.sprintf() formats a string specified in the format parameter by inserting values in the manner indicated by the formatting specifiers. Please note that method is not a standard ECMAScript String method.
Returns a string containing the length characters of the current string starting at position start. If length is not supplied, all characters after start are included in the returned string.
Returns a string containing the length characters of the current string starting at position start. If length is not supplied, all characters after start are included in the returned string.
Returns a string containing the characters of the current string from the start position to the position right before end.
Returns a string containing the characters of the current string from the start position to the position right before end. If end isn't specified, the function returns the string from start to the end of the string.
Returns a copy of the string with all lowercase characters.
Returns a copy of the string with all lowercase characters.
Returns the primitive string value associated with the String.
Returns the primitive string value associated with the String.
Returns a copy of the string with all uppercase characters.
Returns a copy of the string with all uppercase characters.
A copy of the string with leading and trailing spaces removed.
Returns a copy of the string with all leading and trailing spaces removed. Any white space or line separating character constitues a "space".
Returns the primitive string value associated with the String.
Returns the primitive string value associated with the String.