27 #ifndef __UnicodeClass__ 28 #define __UnicodeClass__ 46 kCharacterType_Unknown = 0,
47 kCharacterType_DoubleByte = 0x0001,
48 kCharacterType_Roman = 0x0002,
49 kCharacterType_Upper = 0x0004,
50 kCharacterType_Numeric = 0x0008,
51 kCharacterType_Hiragana = 0x0010,
52 kCharacterType_Katakana = 0x0020,
53 kCharacterType_SmallKana = 0x0040,
54 kCharacterType_Nobashi = 0x0080,
55 kCharacterType_Kanji = 0x0100,
56 kCharacterType_Symbol = 0x0200,
57 kCharacterType_OpenParenthesis = 0x0400,
58 kCharacterType_CloseParenthesis = 0x0800,
59 kCharacterType_Period = 0x1000,
60 kCharacterType_Comma= 0x2000,
61 kCharacterType_MiddlePunc = 0x4000,
62 kCharacterType_Other = 0x8000 };
218 {
return IsVariant(c, kUnidataBit_Narrow); }
240 {
return (c >= kTextChar_HighSurrogateStart && c <= kTextChar_HighSurrogateEnd); }
244 {
return (c >= kTextChar_LowSurrogateStart && c <= kTextChar_LowSurrogateEnd); }
255 {
return ( c.
GetValue() <= 0x007F); }
280 kIgnoreZeroWidthOnly = 0,
290 kIgnoreSpellingIgnorable = 0x07F
306 {
return IsVariant(c, kUnidataBit_Vertical); }
327 static bool IsOfClass(
const UTF32TextChar& c, uint16 key, uint16 bits);
330 {
return (FindEntry(c) & bits) == bits; }