Java Reference
In-Depth Information
Methods
Method
introduced
description
JavaScript 1.0
Returns the character at the specified position
in the string.
charAt(index)
JavaScript 1.2
Returns the Unicode value of the character at
the specified position in the string.
charCodeAt(index)
concat(value1,
value2, ...)
JavaScript 1.2
Concatenates the strings supplied as arguments
and returns the string thus formed.
fromCharCode(value1,
value2, ...)
JavaScript 1.2
Returns the string formed from the
concatenation of the characters represented by
the supplied Unicode values.
indexOf(substr [,
startIndex])
JavaScript 1.0
Returns the position within the String object
of the first match for the supplied substring.
Returns ‐1 if the substring is not found. Starts
the search at startIndex if specified.
lastIndexOf(substr [,
startIndex])
JavaScript 1.0
Returns the position within the String object
of the last match for the supplied substring.
Returns ‐1 if the substring is not found. Starts
the search at startIndex if specified.
JavaScript 1.2
Searches the string for a match to the supplied
pattern. Returns an array or null if not found.
match(regexp)
replace(regexp,
newValue)
JavaScript 1.2
Used to replace a substring that matches a
regular expression with a new value.
JavaScript 1.2
Searches for a match between a regular
expression and the string. Returns the index of
the match, or ‐1 if not found.
search(regexp)
slice(startIndex [,
endIndex])
JavaScript 1.0
Returns a substring of the String object.
JavaScript 1.1
Splits a String object into an array of strings
by separating the string into substrings.
split(delimiter)
substr(startIndex [,
length])
JavaScript 1.0
Returns a substring of the characters from
the given starting position and containing the
specified number of characters.
substring(startIndex
[, endIndex])
JavaScript 1.0
Returns a substring of the characters between
two positions in the string. The character at
endIndex is not included in the substring.
JavaScript 1.0
Returns the string converted to lowercase.
toLowerCase()
JavaScript 1.0
Returns the string converted to uppercase.
toUpperCase()
Search WWH ::




Custom Search