String

class StringAvailable in flash, flash9, neko, js, php, cppThe basic String class. var length(default,null) : IntThe number of characters in the String. function new( string : String ) : VoidAvailable in flash, flash9, js, php, cppCreates a copy from a given String. function new( s : String ) : VoidAvailable in nekoCreates 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( str : String, ?startIndex : Int ) : IntReturns the index of first occurence of value Returns -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( str : String, ?startIndex : Int ) : IntSimilar to indexOf but returns the latest index. If startIndex is specified, then the search starts at that position and works backwards. A long string will still be found if starts before startIndex, even if it extends past the startIndex. 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. If "pos" is less than 0, then it is an offset from the end of the string. 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 #9034, modified 2010-08-14 17:13:15 by api