diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-07 14:05:34 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-07 14:05:34 +0300 |
commit | 3f19321d81d785bb3e43389a29939b85c8debfb1 (patch) | |
tree | e7c45268c9b3e6c25fc25f0c521918f41a9108fa /src/ui/text.h | |
parent | 932fca795998ac60e079b96650664331729e6ba9 (diff) |
Text: Promoted codepoint type detection to the_Foundation
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 23 |
1 files changed, 0 insertions, 23 deletions
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 { | |||
107 | iLocalDef iBool isJapanese_FontId(enum iFontId id) { | 107 | iLocalDef iBool isJapanese_FontId(enum iFontId id) { |
108 | return id >= japanese_FontId && id < japanese_FontId + max_FontSize; | 108 | return id >= japanese_FontId && id < japanese_FontId + max_FontSize; |
109 | } | 109 | } |
110 | iLocalDef iBool isVariationSelector_Char(iChar c) { | ||
111 | return (c >= 0xfe00 && c <= 0xfe0f) || (c >= 0xe0100 && c <= 0xe0121); | ||
112 | } | ||
113 | iLocalDef iBool isFitzpatrickType_Char(iChar c) { | ||
114 | return c >= 0x1f3fb && c <= 0x1f3ff; | ||
115 | } | ||
116 | iLocalDef iBool isDefaultIgnorable_Char(iChar c) { | ||
117 | return c == 0x115f || (c >= 0x200b && c <= 0x200e) || c == 0x2060 || c == 0x2061 || | ||
118 | c == 0xfeff; | ||
119 | } | ||
120 | iLocalDef iBool isEmoji_Char(iChar c) { | ||
121 | return (c >= 0x1f300 && c < 0x1f700) || (c >= 0x1f7e0 && c <= 0x1f7eb) || | ||
122 | (c >= 0x1f900 && c <= 0x1f9ff) || (c >= 0x1fa70 && c <= 0x1faff); | ||
123 | } | ||
124 | iLocalDef iBool isDingbats_Char(iChar c) { | ||
125 | return c >= 0x2702 && c <= 0x27b0; | ||
126 | } | ||
127 | iLocalDef iBool isPictograph_Char(iChar c) { | ||
128 | return (c == 0x21a9) || | ||
129 | (c == 0x2218 || c == 0x2219) || | ||
130 | (c >= 0x2300 && c <= 0x27bf) || | ||
131 | (c >= 0x1f680 && c <= 0x1f6c0); | ||
132 | } | ||
133 | 110 | ||
134 | #define emojiVariationSelector_Char ((iChar) 0xfe0f) | 111 | #define emojiVariationSelector_Char ((iChar) 0xfe0f) |
135 | 112 | ||