haXe API Documentation
Back | Index
class haxe.Utf8
Available in flash8, neko, js, flash, php, cpp
Since all platforms does not guarantee that String always uses UTF-8 encoding, you can use this crossplatform API to perform operations on such strings.
function new(?size : Int) : Void
Allocate a new Utf8 buffer using an optional bytes size.
function addChar(c : Int) : Void
function toString() : String
static function charCodeAt(s : String, index : Int) : Int
static function compare(a : String, b : String) : Int
static function decode(s : String) : String
static function encode(s : String) : String
static function iter(s : String, chars : Int -> Void) : Void
static function length(s : String) : Int
static function sub(s : String, pos : Int, len : Int) : String
static function validate(s : String) : Bool
Back | Index