diff --git a/unifill/Utf16.hx b/unifill/Utf16.hx index 2acabdc..e1041c5 100644 --- a/unifill/Utf16.hx +++ b/unifill/Utf16.hx @@ -173,7 +173,7 @@ private class Utf16Impl { return (!Unicode.isLowSurrogate(c)) ? 1 : 2; } - public static function encode_code_point(addUnit : Int -> Void, codePoint : Int) : Void { + public static inline function encode_code_point(addUnit : Int -> Void, codePoint : Int) : Void { if (codePoint <= 0xFFFF) { addUnit(codePoint); } else { diff --git a/unifill/Utf8.hx b/unifill/Utf8.hx index ba67640..ceed0bd 100644 --- a/unifill/Utf8.hx +++ b/unifill/Utf8.hx @@ -176,7 +176,7 @@ private class Utf8Impl { : 1; } - public static function encode_code_point(addUnit : Int -> Void, codePoint : Int) : Void { + public static inline function encode_code_point(addUnit : Int -> Void, codePoint : Int) : Void { if (codePoint <= 0x7F) { addUnit(codePoint); } else if (codePoint <= 0x7FF) {