21 0x0000001, 0x0000000, 0x0000004, 0x0000008,
22 0x0000010, 0x0000020, 0x0000040, 0x0000080,
23 0x0000100, 0x0000200, 0x0000400, 0x0000800,
24 0x0001000, 0x0002000, 0x0004000, 0x0008000,
25 0x0010000, 0x0020000, 0x0040000, 0x0080000,
26 0x0100000, 0x0200000, 0x0400000, 0x0800000,
27 0x1000000, 0x2000000, 0x4000000, 0x8000000,
30#define IN_MASK_RANGE(C) (islower(C) || ((C) == '_'))
31#define MASK_INDEX(C) ((C) - '_')
35 0x0000001, 0x0000002, 0x0000004, 0x0000008,
36 0x0000010, 0x0000020, 0x0000040, 0x0000080,
37 0x0000100, 0x0000200, 0x0000400, 0x0000800,
38 0x0001000, 0x0002000, 0x0004000, 0x0008000,
39 0x0010000, 0x0020000, 0x0040000, 0x0080000,
40 0x0100000, 0x0200000, 0x0400000, 0x0800000,
44#define IN_MASK_RANGE(C) islower(C)
45#define MASK_INDEX(C) ((C) - 'a')
55#define TFA_Init() TFA_State = 0
61#define TFA_Advance(C) { \
63 if (TFA_State >= 0) { \
64 if (isupper((int)c)) \
65 c = (char)tolower((int)c); \
66 else if (! IN_MASK_RANGE(c)) { \
70 if (TrieStateTbl[TFA_State].mask & CharMask[MASK_INDEX(c)]) { \
71 short i = TrieStateTbl[TFA_State].trans_base; \
72 while (TrieTransTbl[i].c != c) \
74 TFA_State = TrieTransTbl[i].next_state; \
86#define TFA_Definition() \
87 ((TFA_State < 0) ? -1 : TrieStateTbl[TFA_State].def)