Packageorg.osmf.smpte.tt.utilities
Classpublic class StringUtils
InheritanceStringUtils Inheritance Object



Public Methods
 MethodDefined By
  
between(p_string:String, p_start:String, p_end:String):String
[static] Returns everything after the first occurance of p_start and before the first occurrence of p_end in p_string.
StringUtils
  
capitalize(p_string:String, ... args):String
[static] Capitalizes the first word in a string or all words..
StringUtils
  
formatString(original:String, ... args):String
[static]
StringUtils
  
trim(p_string:String):String
[static] Removes whitespace from the front and the end of the specified string.
StringUtils
  
trimLeft(p_string:String):String
[static] Removes whitespace from the front (left-side) of the specified string.
StringUtils
Method Detail
between()method
public static function between(p_string:String, p_start:String, p_end:String):String

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Returns everything after the first occurance of p_start and before the first occurrence of p_end in p_string.

Parameters

p_string:String — The string.
 
p_start:String — The character or sub-string to use as the start index.
 
p_end:String — The character or sub-string to use as the end index.

Returns
String
capitalize()method 
public static function capitalize(p_string:String, ... args):String

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Capitalizes the first word in a string or all words..

Parameters

p_string:String — The string.
 
... args — (optional) Boolean value indicating if we should capitalize all words or only the first.

Returns
String
formatString()method 
public static function formatString(original:String, ... args):String

Parameters

original:String
 
... args

Returns
String
trim()method 
public static function trim(p_string: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

p_string:String — The String whose beginning and ending whitespace will will be removed.

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

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Removes whitespace from the front (left-side) of the specified string.

Parameters

p_string:String — The String whose beginning whitespace will be removed.

Returns
String