Packagestimulsoft.flex.base
Classpublic class StiString
InheritanceStiString Inheritance Object



Public Methods
 MethodDefined By
  
contains(text:String, char:String):Boolean
[static]
StiString
  
containsSwap(text1:String, text2:String):Boolean
[static]
StiString
  
endsWith(text:String, char:String):Boolean
[static]
StiString
  
escapeRegexChars(st:String):String
[static]
StiString
  
fill(str:String, count:int):String
[static] Returns a string, which consists of the specified string, linked with itself the indicated number of times
StiString
  
format(str:String, ... values):String
[static]
StiString
  
insert(text:String, startIndex:int, value:String):String
[static]
StiString
  
isNullOrEmpty(text:String):Boolean
[static]
StiString
  
isNullOrWhiteSpace(text:String):Boolean
[static]
StiString
  
padLeft(value:String, length:int, paddingChar:String):String
[static]
StiString
  
remove(text:String, startIndex:int, count:int):String
[static]
StiString
  
replace(text:String, oldValue:String, newValue:String):String
[static]
StiString
  
split(value:String, delimiter:String):Array
[static]
StiString
  
startsWith(text:String, char:String):Boolean
[static]
StiString
  
substring(text:String, startIndex:int, length:int):String
[static]
StiString
  
toTitleCase(str:String):String
[static]
StiString
  
trim(text:String):String
[static] Deletes all space characters from the beginning and to the end of the specified string.
StiString
  
trimEnd(text:String):String
[static] Removes all space characters from the end of the specified string.
StiString
Public Constants
 ConstantDefined By
  empty : String
[static]
StiString
  nbsp : String
[static]
StiString
Method Detail
contains()method
public static function contains(text:String, char:String):Boolean

Parameters

text:String
 
char:String

Returns
Boolean
containsSwap()method 
public static function containsSwap(text1:String, text2:String):Boolean

Parameters

text1:String
 
text2:String

Returns
Boolean
endsWith()method 
public static function endsWith(text:String, char:String):Boolean

Parameters

text:String
 
char:String

Returns
Boolean
escapeRegexChars()method 
public static function escapeRegexChars(st:String):String

Parameters

st:String

Returns
String
fill()method 
public static function fill(str:String, count:int):String

Returns a string, which consists of the specified string, linked with itself the indicated number of times

Parameters

str:String
 
count:int

Returns
String
format()method 
public static function format(str:String, ... values):String

Parameters

str:String
 
... values

Returns
String
insert()method 
public static function insert(text:String, startIndex:int, value:String):String

Parameters

text:String
 
startIndex:int
 
value:String

Returns
String
isNullOrEmpty()method 
public static function isNullOrEmpty(text:String):Boolean

Parameters

text:String

Returns
Boolean
isNullOrWhiteSpace()method 
public static function isNullOrWhiteSpace(text:String):Boolean

Parameters

text:String

Returns
Boolean
padLeft()method 
public static function padLeft(value:String, length:int, paddingChar:String):String

Parameters

value:String
 
length:int
 
paddingChar:String

Returns
String
remove()method 
public static function remove(text:String, startIndex:int, count:int):String

Parameters

text:String
 
startIndex:int
 
count:int

Returns
String
replace()method 
public static function replace(text:String, oldValue:String, newValue:String):String

Parameters

text:String
 
oldValue:String
 
newValue:String

Returns
String
split()method 
public static function split(value:String, delimiter:String):Array

Parameters

value:String
 
delimiter:String

Returns
Array
startsWith()method 
public static function startsWith(text:String, char:String):Boolean

Parameters

text:String
 
char:String

Returns
Boolean
substring()method 
public static function substring(text:String, startIndex:int, length:int):String

Parameters

text:String
 
startIndex:int
 
length:int (default = NaN)

Returns
String
toTitleCase()method 
public static function toTitleCase(str:String):String

Parameters

str:String

Returns
String
trim()method 
public static function trim(text:String):String

Deletes all space characters from the beginning and to the end of the specified string.

Parameters

text:String

Returns
String
trimEnd()method 
public static function trimEnd(text:String):String

Removes all space characters from the end of the specified string.

Parameters

text:String

Returns
String
Constant Detail
emptyConstant
public static const empty:String

nbspConstant 
public static const nbsp:String