diff --git a/unifill/CodePoint.hx b/unifill/CodePoint.hx index a654b14..1896bca 100644 --- a/unifill/CodePoint.hx +++ b/unifill/CodePoint.hx @@ -41,9 +41,11 @@ abstract CodePoint(Int) { this = code; } + @:to public inline function toString() : String return InternalEncoding.fromCodePoint(this); + @:to public inline function toInt() : Int return this; }