Methods

decode(string:String):Array<Int>

Creates an array containing the decimal code points of each Unicode character in the string. While JavaScript uses UCS-2 internally, this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16.

encode(codePoints:Array<Int>):String

Creates a string based on an array of decimal code points.