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.
True if the string ends with the search string.
Returns true if the string ends with search. If end_position is supplied, the string is treated as if it were only that long.
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.
True if the search string is found.
Returns true if search occurs anywhere in the string at or after offset position (default 0).
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.
The padded string.
Appends copies of pad (default " ") until the string reaches target_length. The pad is truncated if it doesn't fit evenly.
The padded string.
Prepends copies of pad (default " ") until the string reaches target_length. The pad is truncated if it doesn't fit evenly.
The repeated string.
Returns a new string consisting of count copies of the string concatenated together. A negative count is a runtime error.
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.
True if the string begins with the search string.
Returns true if the string begins with search, checked at offset position (default 0).
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".
A copy of the string with trailing spaces removed.
Returns a copy of the string with trailing white space removed.
A copy of the string with leading spaces removed.
Returns a copy of the string with leading white space removed.
Returns the primitive string value associated with the String.
Returns the primitive string value associated with the String.