All static utility class which builds on mx.utils.StringUtil
to add additional methods for replacing items in a specified
String
public static function containsAlpha(source:String):Boolean
Determines if the specified String contains alpha charachters
Parameters
| source:String — string to evaluate
|
Returns
| Boolean — true if the string contains alpha charachters, false if not
|
public static function containsAlphaNumeric(source:String):Boolean
Determines if the specified String contains alpha and / or numeric charachters
Parameters
| source:String — string to evaluate
|
Returns
| Boolean — true if the string contains alpha/numeric charachters, false if not
|
public static function containsNumeric(source:String):Boolean
Determines if the specified String contains numeric charachters
Parameters
| source:String — string to evaluate
|
Returns
| Boolean — true if the string contains numeric charachters, false if not
|
public static function removeHTML(source:String):String
Removes all xml / html tags and returns the a non-marked up String
Parameters
| source:String — string to remove html tags from
|
Returns
| String — the resulting non-marked up String
|
public static function replace(source:String, search:String, substitution:String):String
Replaces a specific section of a String with a new String Object
Parameters
| source:String — source String Object to perform the operation on
|
|
| search:String — section of the source String to be replaced
|
|
| substitution:String — String Object whjich will replace the section
|
Returns
public static function replaceCharachterInstances(source:String, charachter:String, substitution:String):String
Replaces all instances of particular charachter(s) in a specific
String with substitution charachter(s)
Parameters
| source:String — source String Object to perform the operation on
|
|
| charachter:String — charachter in which all instances are to be replaced
|
|
| substitution:String — charachter which will replace all instances
|
Returns
public static function trimWhiteSpace(source:String):String
Replaces all white space charachters form the specified String
Object and returns a new String without white space charachters
Parameters
| source:String — string to trim whitespace
|
Returns
| String — The resulting trimmed String
|
Mon Jan 1 2007, 10:32 PM GMT-05:00