Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Class that contains static utility methods for manipulating Strings.
public static function beginsWith(input:String, prefix:String):Boolean
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Determines whether the specified string begins with the spcified prefix.
Parameters
| input:String — The string that the prefix will be checked against.
|
|
| prefix:String — The prefix that will be tested against the string.
|
Returns public static function endsWith(input:String, suffix:String):Boolean
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Determines whether the specified string ends with the spcified suffix.
Parameters
| input:String — The string that the suffic will be checked against.
|
|
| suffix:String — The suffic that will be tested against the string.
|
Returns public static function ltrim(input:String):String
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Removes whitespace from the front of the specified string.
Parameters
| input:String — The String whose beginning whitespace will will be removed.
|
Returns public static function remove(input:String, remove:String):String
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Removes all instances of the remove string in the input string.
Parameters
| input:String — The string that will be checked for instances of remove
string
|
|
| remove:String — The string that will be removed from the input string.
|
Returns public static function replace(input:String, replace:String, replaceWith:String):String
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Replaces all instances of the replace string in the input string
with the replaceWith string.
Parameters
| input:String — The string that instances of replace string will be
replaces with removeWith string.
|
|
| replace:String — The string that will be replaced by instances of
the replaceWith string.
|
|
| replaceWith:String — The string that will replace instances of replace
string.
|
Returns public static function rtrim(input:String):String
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Removes whitespace from the end of the specified string.
Parameters
| input:String — The String whose ending whitespace will will be removed.
|
Returns public static function stringHasValue(s:String):Boolean
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Specifies whether the specified string is either non-null, or contains
characters (i.e. length is greater that 0)
Parameters
| s:String — The string which is being checked for a value
|
Returns public static function stringsAreEqual(s1:String, s2:String, caseSensitive:Boolean):Boolean
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Does a case insensitive compare or two strings and returns true if
they are equal.
Parameters
| s1:String — The first string to compare.
|
|
| s2:String — The second string to compare.
|
|
| caseSensitive:Boolean |
Returns public static function trim(input:String):String
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9.0 |
Removes whitespace from the front and the end of the specified
string.
Parameters
| input:String — The String whose beginning and ending whitespace will
will be removed.
|
Returns
Sun Apr 17 2011, 12:17 AM -07:00