String
extern class StringAvailable in flash, flash9, neko, js, phpThe basic String class.
var length(default,null) : IntThe number of characters in the String.
function new( string : String ) : VoidCreates a copy from a given String.
function charAt( index : Int ) : StringReturns the character at the given position. Returns the empty String if outside of String bounds.
function charCodeAt( index : Int ) : Null<Int>Returns the character code at the given position. Returns
null if outside of String bounds.
function indexOf( value : String, ?startIndex : Int ) : IntReturns the index of first occurence of value Returns 1-1 if value is not found. The optional startIndex parameter allows you to specify at which character to start searching. The position returned is still relative to the beginning of the string.
function lastIndexOf( value : String, ?startIndex : Int ) : IntSimilar to indexOf but returns the latest index.
function split( delimiter : String ) : Array<String>Split the string using the specified delimiter.
function substr( pos : Int, ?len : Int ) : StringReturns a part of the String, taking len characters starting from pos. If len is not specified, it takes all the remaining characters.
function toLowerCase() : StringReturns an String where all characters have been lowercased.
function toString() : StringReturns the String itself.
function toUpperCase() : StringReturns an String where all characters have been uppercased.
static function fromCharCode( code : Int ) : String
version #2482, modified 2008-07-28 10:02:49 by api