Specifications

String Functions
Returns the character in the string at position pos. If the
position is out of bounds, undefined is returned.
charAt( pos : Number ) : String
Returns the character code of the character at position
pos in the string. If the position is out of bounds,
undefined is returned.
charCodeAt( pos : Number ) :
Number
Returns the index of pattern in the string, starting at
position pos. If no position is specified, the function starts
indexOf( pattern : String or RegExp,
pos : Number ) : Number
at the beginning of the string. If the pattern is not found
in the string, -1 is returned.
Returns the last index of pattern in the string, starting at
position pos and searching backwards from there. If no
lastIndexOf( pattern : String or
RegExp, pos : Number ) : Number
position is specified, the function starts at the end of the
string. If the pattern is not found in the string, -1 is
returned.
Returns the matched pattern if this string matches the
pattern defined by regexp. If the string doesn't match or
match( pattern : RegExp ) : String
or String[ ]
regexp is not a valid regular expression, undefined is
returned. If the regexp has global set and the string
matches multiple patterns, an array of strings is returned.
Same as find.
search( pattern : String or RegExp,
pos : Number ) : Number
Same as findRev
searchRev( pattern : String or
RegExp, pos : Number ) : Number
Replaces the first occurrence of pattern in the string with
newvalue if the pattern is found in the string. A modified
replace( pattern : RegExp, newValue
: String ) : String
copy of string is returned. The original string is not
modified.
If pattern is a regular expression with global set, all
occurances of pattern in the string will be replaced.
Returns an array of strings containing this string split on
each occurrence of pattern.
split( pattern : String or RegExp ) :
String[ ]
Returns a copy of this string which is the substring starting
at startIndex and ending at endIndex.
substring( startIndex : Number,
endIndex : Number ) : String
Returns a lowercase copy of this string.
toLowerCase() : String
Same as toLowerCase().
lower() : String
Returns an uppercase copy of this string.
toUpperCase() : String
Same as toUpperCase().
upper() : String
384
Enfocus Switch 10