diff --git a/include/kiwi/ScriptType.h b/include/kiwi/ScriptType.h index e6fdbcc7..cf47a932 100644 --- a/include/kiwi/ScriptType.h +++ b/include/kiwi/ScriptType.h @@ -246,5 +246,5 @@ namespace kiwi * * @return 0 if the character is not an emoji, 1 if c0 is an emoji, 2 if c0 and c1 are combined to form an emoji. */ - size_t isEmoji(char32_t c0, char32_t c1 = 0); + int isEmoji(char32_t c0, char32_t c1 = 0); } diff --git a/src/ScriptType.cpp b/src/ScriptType.cpp index b1e6db5d..7c23ca8a 100644 --- a/src/ScriptType.cpp +++ b/src/ScriptType.cpp @@ -1,4 +1,3 @@ -#pragma once #include namespace kiwi @@ -567,7 +566,7 @@ namespace kiwi return "unknown"; } - size_t isEmoji(char32_t c0, char32_t c1) + int isEmoji(char32_t c0, char32_t c1) { if (0x1f004 == c0) return 1; if (0x1f0cf == c0) return 1;