Packageorg.aswing.util
Classpublic class StringUtils



Public Methods
 MethodDefined by
  
castString(str:*):String
[static]
StringUtils
  
endsWith(targetString:String, subString:String):Boolean
[static]
StringUtils
  
getCharsArray(targetString:String, hasBlankSpace:Boolean):Array
[static]
StringUtils
  
isLetter(chars:String):Boolean
[static]
StringUtils
  
isString(value:*):Boolean
[static] Returns value is a string type value.
StringUtils
  
replace(targetString:String, oldString:String, newString:String):String
[static] replace oldString with newString in targetString
StringUtils
  
startsWith(targetString:String, subString:String):Boolean
[static]
StringUtils
  
trim(targetString:String):String
[static] remove the blankspaces of left and right in targetString
StringUtils
  
trimLeft(targetString:String):String
[static] remove only the blankspace on targetString's left
StringUtils
  
trimRight(targetString:String):String
[static] remove only the blankspace on targetString's right
StringUtils
Method detail
castString()method
public static function castString(str:*):StringParameters
str:*

Returns
String
endsWith()method 
public static function endsWith(targetString:String, subString:String):BooleanParameters
targetString:String
 
subString:String

Returns
Boolean
getCharsArray()method 
public static function getCharsArray(targetString:String, hasBlankSpace:Boolean):ArrayParameters
targetString:String
 
hasBlankSpace:Boolean

Returns
Array
isLetter()method 
public static function isLetter(chars:String):BooleanParameters
chars:String

Returns
Boolean
isString()method 
public static function isString(value:*):Boolean

Returns value is a string type value. with undefined or null value, false returned.

Parameters
value:*

Returns
Boolean
replace()method 
public static function replace(targetString:String, oldString:String, newString:String):String

replace oldString with newString in targetString

Parameters
targetString:String
 
oldString:String
 
newString:String

Returns
String
startsWith()method 
public static function startsWith(targetString:String, subString:String):BooleanParameters
targetString:String
 
subString:String

Returns
Boolean
trim()method 
public static function trim(targetString:String):String

remove the blankspaces of left and right in targetString

Parameters
targetString:String

Returns
String
trimLeft()method 
public static function trimLeft(targetString:String):String

remove only the blankspace on targetString's left

Parameters
targetString:String

Returns
String
trimRight()method 
public static function trimRight(targetString:String):String

remove only the blankspace on targetString's right

Parameters
targetString:String

Returns
String