User Guide

String 1127
Property summary
Properties inherited from class Object
Constructor summary
Method summary
Modifiers Property Description
length:Number An integer specifying the number of characters in the
specified String object.
constructor (Object.constructor property), __proto__ (Object.__proto__
property), prototype (Object.prototype property), __resolve
(Object.__resolve property)
Signature Description
String(value:String) Creates a new String object.
Modifiers Signature Description
charAt(index:Number)
: String
Returns the character in the position specified by the
parameter index.
charCodeAt(index:Num
ber) : Number
Returns a 16-bit integer from 0 to 65535 that
represents the character specified by index.
concat(value:Object)
: String
Combines the value of the String object with the
parameters and returns the newly formed string; the
original value, my_str, is unchanged.
static fromCharCode() :
String
Returns a string comprising the characters
represented by the Unicode values in the parameters.
indexOf(value:String
,
[startIndex:Number])
: Number
Searches the string and returns the position of the first
occurrence of value found at or after startIndex
within the calling string.
lastIndexOf(value:St
ring,
[startIndex:Number])
: Number
Searches the string from right to left and returns the
index of the last occurrence of value found before
startIndex within the calling string.
slice(start:Number,
end:Number) : String
Returns a string that includes the start character and
all characters up to, but not including, the end
character.