StringTools

class StringToolsAvailable in flash, flash9, neko, js, php, cppThe StringTools class contains some extra functionalities for String manipulation. It's stored in a different class in order to prevent the standard String of being bloated and thus increasing the size of each application using it. static function endsWith( s : String, end : String ) : BoolTells if the string s ends with the string end. static function hex( n : Int, ?digits : Int ) : StringEncode a number into a hexadecimal representation, with an optional number of zeros for left padding. static function htmlEscape( s : String ) : StringEscape HTML special characters of the string. static function htmlUnescape( s : String ) : StringAvailable in flash, flash9, neko, js, cppUnescape HTML special characters of the string. static inline function htmlUnescape( s : String ) : StringAvailable in phpUnescape HTML special characters of the string. static function isSpace( s : String, pos : Int ) : BoolTells if the character in the string s at position pos is a space. static function lpad( s : String, c : String, l : Int ) : StringAvailable in flash, flash9, neko, js, cppPad the string s by appending c at its left until it reach l characters. static inline function lpad( s : String, c : String, l : Int ) : StringAvailable in phpPad the string s by appending c at its left until it reach l characters. static function ltrim( s : String ) : StringAvailable in flash, flash9, neko, js, cppRemoves spaces at the left of the String s. static inline function ltrim( s : String ) : StringAvailable in phpRemoves spaces at the left of the String s. static function replace( s : String, sub : String, by : String ) : StringAvailable in flash, flash9, neko, js, cppReplace all occurences of the string sub in the string s by the string by. static inline function replace( s : String, sub : String, by : String ) : StringAvailable in phpReplace all occurences of the string sub in the string s by the string by. static function rpad( s : String, c : String, l : Int ) : StringAvailable in flash, flash9, neko, js, cppPad the string s by appending c at its right until it reach l characters. static inline function rpad( s : String, c : String, l : Int ) : StringAvailable in phpPad the string s by appending c at its right until it reach l characters. static function rtrim( s : String ) : StringAvailable in flash, flash9, neko, js, cppRemoves spaces at the right of the String s. static inline function rtrim( s : String ) : StringAvailable in phpRemoves spaces at the right of the String s. static function startsWith( s : String, start : String ) : BoolTells if the string s starts with the string start. static function trim( s : String ) : StringAvailable in flash, flash9, neko, js, cppRemoves spaces at the beginning and the end of the String s. static inline function trim( s : String ) : StringAvailable in phpRemoves spaces at the beginning and the end of the String s. static function urlDecode( s : String ) : StringAvailable in flash, flash9, neko, js, cppDecode an URL using the standard format. static inline function urlDecode( s : String ) : StringAvailable in phpDecode an URL using the standard format. static function urlEncode( s : String ) : StringAvailable in flash, flash9, neko, js, cppEncode an URL by using the standard format. static inline function urlEncode( s : String ) : StringAvailable in phpEncode an URL by using the standard format.
version #7848, modified 2010-01-09 20:29:13 by api