Class org.aswing.utils.StringUtils

Method Index

castString(), getCharsArray(), isString(), replace(), trim(), trimLeft(), trimRight()

Method Detail

isString

static public function isString(value):Boolean

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

castString

static public function castString(str):String

replace

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

replace oldString with newString in targetString

trim

static public function trim(targetString:String):String

remove all the blankspace in targetString

trimLeft

static public function trimLeft(targetString:String):String

remove only the blankspace on targetString's left

trimRight

static public function trimRight(targetString:String):String

remove only the blankspace on targetString's right

getCharsArray

static public function getCharsArray(targetString:String, hasBlankSpace:Boolean):Array