View source
class Utf8
package haxe
Deprecated: "haxe.Utf8 is deprecated. Use UnicodeString instead."
Available on all platforms
Since not all platforms guarantee that String
always uses UTF-8 encoding, you
can use this cross-platform API to perform operations on such strings.
Static methods
staticcharCodeAt(s:String, index:Int):Int
Similar to String.charCodeAt
but uses the UTF8 character position.
staticdecode(s:String):String
Decode an UTF8 string back to an ISO string. Throw an exception if a given UTF8 character is not supported by the decoder.
staticiter(s:String, chars:Int ‑> Void):Void
Call the chars
function for each UTF8 char of the string.