haXe API Documentation
Back | Index
class StringTools
Available in flash8, neko, js, flash, php, cpp

This class provides advanced methods on Strings. It is ideally used with 'using StringTools' and then acts as an extension to the String class.

If the first argument to any of the methods is null, the result is unspecified.

static function endsWith(s : String, end : String) : Bool
static inline function fastCodeAt(s : String, index : Int) : Int
static function hex(n : Int, ?digits : Int) : String
static function htmlEscape(s : String, ?quotes : Bool) : String
static function htmlUnescape(s : String) : String
static inline function isEof(c : Int) : Bool
static function isSpace(s : String, pos : Int) : Bool
static function lpad(s : String, c : String, l : Int) : String
static function ltrim(s : String) : String
static function replace(s : String, sub : String, by : String) : String
static function rpad(s : String, c : String, l : Int) : String
static function rtrim(s : String) : String
static function startsWith(s : String, start : String) : Bool
static function trim(s : String) : String
static function urlDecode(s : String) : String
static function urlEncode(s : String) : String
Encode an URL by using the standard format.
Back | Index