Contains utility methods for working with strings.
public static function addAt(string:String, value:int, position:*):String
Adds/inserts a new string at a certain position in the source string.
Parameters
| string:String |
| |
| value:int |
| |
| position:* |
Returns
public static function fixNewlines(string:String):String
Fixes double newlines in a text.
Parameters
Returns
public static function hasText(string:String):Boolean
Checks if the given string has actual text.
Parameters
Returns
public static function removeAt(string:String, beginIndex:int, endIndex:int):String
Removes a part of the text between 2 positions.
Parameters
| string:String |
| |
| beginIndex:int |
| |
| endIndex:int |
Returns
public static function replaceAt(string:String, value:int, beginIndex:int, endIndex:*):String
Replaces a part of the text between 2 positions.
Parameters
| string:String |
| |
| value:int |
| |
| beginIndex:int |
| |
| endIndex:* |
Returns
Prana Framework 0.5 - 2008