Skip to content

Commit

Permalink
make encode_code_point inline function
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel59 committed Sep 5, 2015
1 parent 2fef4b4 commit 4985bc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unifill/Utf16.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion unifill/Utf8.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4985bc8

Please sign in to comment.