5 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
6 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
7 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
8 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
9 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
10 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
11 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
12 && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
13 && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
14 && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
15 && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
16 && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
17 && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
18 && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
19 && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
20 && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
21 && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
22 && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
23 && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
24 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
25 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
26 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
27 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
29 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
32 #line 5 "../../src/lib/tokens.gperf"
39 #define TOTAL_KEYWORDS 33
40 #define MIN_WORD_LENGTH 1
41 #define MAX_WORD_LENGTH 12
42 #define MIN_HASH_VALUE 1
43 #define MAX_HASH_VALUE 33
49 static inline unsigned int hash(
const char *str,
unsigned int len);
51 static const struct xmltoken *
in_word_set(
const char *str,
unsigned int len);
57 static const unsigned char asso_values[] =
59 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
60 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
61 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
62 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
63 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
64 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
65 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
66 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
67 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
68 34, 34, 34, 34, 34, 34, 34, 1, 0, 14,
69 27, 3, 5, 21, 23, 0, 34, 34, 26, 8,
70 19, 17, 2, 34, 2, 6, 12, 34, 12, 18,
71 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
72 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
73 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
74 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
75 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
76 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
77 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
78 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
79 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
80 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
81 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
82 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
83 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
84 34, 34, 34, 34, 34, 34
86 register int hval = len;
91 hval += asso_values[(
unsigned char)str[1]];
94 hval += asso_values[(
unsigned char)str[0]];
103 #line 27
"../../src/lib/tokens.gperf"
105 #line 11 "../../src/lib/tokens.gperf"
107 #line 35 "../../src/lib/tokens.gperf"
109 #line 15 "../../src/lib/tokens.gperf"
111 #line 37 "../../src/lib/tokens.gperf"
113 #line 22 "../../src/lib/tokens.gperf"
115 #line 39 "../../src/lib/tokens.gperf"
117 #line 12 "../../src/lib/tokens.gperf"
119 #line 33 "../../src/lib/tokens.gperf"
121 #line 23 "../../src/lib/tokens.gperf"
123 #line 36 "../../src/lib/tokens.gperf"
125 #line 25 "../../src/lib/tokens.gperf"
127 #line 29 "../../src/lib/tokens.gperf"
129 #line 38 "../../src/lib/tokens.gperf"
131 #line 16 "../../src/lib/tokens.gperf"
133 #line 40 "../../src/lib/tokens.gperf"
135 #line 17 "../../src/lib/tokens.gperf"
137 #line 42 "../../src/lib/tokens.gperf"
139 #line 34 "../../src/lib/tokens.gperf"
141 #line 30 "../../src/lib/tokens.gperf"
143 #line 18 "../../src/lib/tokens.gperf"
145 #line 43 "../../src/lib/tokens.gperf"
147 #line 13 "../../src/lib/tokens.gperf"
149 #line 41 "../../src/lib/tokens.gperf"
151 #line 14 "../../src/lib/tokens.gperf"
153 #line 24 "../../src/lib/tokens.gperf"
155 #line 31 "../../src/lib/tokens.gperf"
157 #line 19 "../../src/lib/tokens.gperf"
159 #line 21 "../../src/lib/tokens.gperf"
161 #line 26 "../../src/lib/tokens.gperf"
163 #line 32 "../../src/lib/tokens.gperf"
165 #line 20 "../../src/lib/tokens.gperf"
167 #line 28 "../../src/lib/tokens.gperf"
171 const struct xmltoken *
176 register int key = hash(str, len);
178 if (key <= MAX_HASH_VALUE && key >= 0)
180 register const char *s = wordlist[key].name;
182 if (s && *str == *s && !strncmp(str + 1, s + 1, len - 1) && s[len] ==
'\0')
183 return &wordlist[key];
188 #line 44 "../../src/lib/tokens.gperf"
const int XML_FOOT
Definition: tokens.h:17
const int XML_C
Definition: tokens.h:9
const int XML_FRAME
Definition: tokens.h:18
const int XML_BOOKMARK
Definition: tokens.h:7
const int XML_STYLES
Definition: tokens.h:34
const int XML_S
Definition: tokens.h:32
int tokenId
Definition: tokenhash.h:36
const int XML_PBR
Definition: tokens.h:30
static const struct xmltoken * in_word_set(const char *str, unsigned int len)
Definition: tokenhash.h:172
const int XML_L
Definition: tokens.h:24
const int XML_CELL
Definition: tokens.h:11
const int XML_FIELD
Definition: tokens.h:16
const int XML_ENDNOTE
Definition: tokens.h:14
const int XML_LISTS
Definition: tokens.h:25
const int XML_SECTION
Definition: tokens.h:33
const int XML_ABIWORD
Definition: tokens.h:5
const int XML_REVISIONS
Definition: tokens.h:31
const int XML_TABLE
Definition: tokens.h:35
const int XML_HISTORY
Definition: tokens.h:19
const int XML_IMAGE
Definition: tokens.h:22
const int XML_A
Definition: tokens.h:4
const int XML_VERSION
Definition: tokens.h:36
const int XML_PAGESIZE
Definition: tokens.h:29
const int XML_METADATA
Definition: tokens.h:27
const int XML_P
Definition: tokens.h:28
static unsigned int hash(const char *str, unsigned int len)
Definition: tokenhash.h:55
const int XML_IW
Definition: tokens.h:23
const int XML_AWML
Definition: tokens.h:6
const int XML_I
Definition: tokens.h:20
const int XML_BR
Definition: tokens.h:8
const int XML_F
Definition: tokens.h:15
const char * name
Definition: tokenhash.h:35
const int XML_D
Definition: tokens.h:12
const int XML_M
Definition: tokens.h:26
const int XML_IGNOREDWORDS
Definition: tokens.h:21
static const struct xmltoken wordlist[]
Definition: tokenhash.h:100
const int XML_CBR
Definition: tokens.h:10
const int XML_DATA
Definition: tokens.h:13
#define MIN_WORD_LENGTH
Definition: tokenhash.h:40