From 3f19321d81d785bb3e43389a29939b85c8debfb1 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 7 Apr 2021 14:05:34 +0300 Subject: Text: Promoted codepoint type detection to the_Foundation --- src/ui/text.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/ui') diff --git a/src/ui/text.h b/src/ui/text.h index 58941974..1ae92890 100644 --- a/src/ui/text.h +++ b/src/ui/text.h @@ -107,29 +107,6 @@ enum iFontId { iLocalDef iBool isJapanese_FontId(enum iFontId id) { return id >= japanese_FontId && id < japanese_FontId + max_FontSize; } -iLocalDef iBool isVariationSelector_Char(iChar c) { - return (c >= 0xfe00 && c <= 0xfe0f) || (c >= 0xe0100 && c <= 0xe0121); -} -iLocalDef iBool isFitzpatrickType_Char(iChar c) { - return c >= 0x1f3fb && c <= 0x1f3ff; -} -iLocalDef iBool isDefaultIgnorable_Char(iChar c) { - return c == 0x115f || (c >= 0x200b && c <= 0x200e) || c == 0x2060 || c == 0x2061 || - c == 0xfeff; -} -iLocalDef iBool isEmoji_Char(iChar c) { - return (c >= 0x1f300 && c < 0x1f700) || (c >= 0x1f7e0 && c <= 0x1f7eb) || - (c >= 0x1f900 && c <= 0x1f9ff) || (c >= 0x1fa70 && c <= 0x1faff); -} -iLocalDef iBool isDingbats_Char(iChar c) { - return c >= 0x2702 && c <= 0x27b0; -} -iLocalDef iBool isPictograph_Char(iChar c) { - return (c == 0x21a9) || - (c == 0x2218 || c == 0x2219) || - (c >= 0x2300 && c <= 0x27bf) || - (c >= 0x1f680 && c <= 0x1f6c0); -} #define emojiVariationSelector_Char ((iChar) 0xfe0f) -- cgit v1.2.3