Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
trieFA.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TrieState
 
struct  TrieTrans
 

Macros

#define IN_MASK_RANGE(C)   islower(C)
 
#define MASK_INDEX(C)   ((C) - 'a')
 
#define TFA_Init()   TFA_State = 0
 
#define TFA_Advance(C)
 
#define TFA_Definition()    ((TFA_State < 0) ? -1 : TrieStateTbl[TFA_State].def)
 

Variables

static long CharMask [26]
 
static short TFA_State
 

Macro Definition Documentation

◆ IN_MASK_RANGE

#define IN_MASK_RANGE (   C)    islower(C)

Definition at line 44 of file trieFA.h.

◆ MASK_INDEX

#define MASK_INDEX (   C)    ((C) - 'a')

Definition at line 45 of file trieFA.h.

◆ TFA_Advance

#define TFA_Advance (   C)
Value:
{ \
char c = C; \
if (TFA_State >= 0) { \
if (isupper((int)c)) \
c = (char)tolower((int)c); \
else if (! IN_MASK_RANGE(c)) { \
TFA_State = -1; \
goto TFA_done; \
} \
while (TrieTransTbl[i].c != c) \
i++; \
} \
else \
TFA_State = -1; \
} \
TFA_done:; \
} /* end of TFA_Advance. */
#define C
Definition pack.c:29
short trans_base
Definition trieFA.h:10
short next_state
Definition trieFA.h:16
#define MASK_INDEX(C)
Definition trieFA.h:45
static short TFA_State
Definition trieFA.h:49
#define IN_MASK_RANGE(C)
Definition trieFA.h:44
static long CharMask[26]
Definition trieFA.h:34
TrieTrans TrieTransTbl[69]
Definition trie.c:77
TrieState TrieStateTbl[70]
Definition trie.c:5

Definition at line 61 of file trieFA.h.

◆ TFA_Definition

#define TFA_Definition ( )     ((TFA_State < 0) ? -1 : TrieStateTbl[TFA_State].def)

Definition at line 86 of file trieFA.h.

◆ TFA_Init

#define TFA_Init ( )    TFA_State = 0

Definition at line 55 of file trieFA.h.

Variable Documentation

◆ CharMask

long CharMask[26]
static
Initial value:
= {
0x0000001, 0x0000002, 0x0000004, 0x0000008,
0x0000010, 0x0000020, 0x0000040, 0x0000080,
0x0000100, 0x0000200, 0x0000400, 0x0000800,
0x0001000, 0x0002000, 0x0004000, 0x0008000,
0x0010000, 0x0020000, 0x0040000, 0x0080000,
0x0100000, 0x0200000, 0x0400000, 0x0800000,
0x1000000, 0x2000000
}

Definition at line 34 of file trieFA.h.

◆ TFA_State

short TFA_State
static

Definition at line 49 of file trieFA.h.

Referenced by assignable().