Go to the documentation of this file.
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))
28/* The character set is not based on ISO-646. */
29#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
39#define TOTAL_KEYWORDS 123
40#define MIN_WORD_LENGTH 4
41#define MAX_WORD_LENGTH 24
42#define MIN_HASH_VALUE 18
43#define MAX_HASH_VALUE 186
44/* maximum key range = 169, duplicates = 0 */
49 static inline unsigned int hash (const char *str, size_t len);
51 static const struct fhtoken *in_word_set (const char *str, size_t len);
55Perfect_Hash::hash (const char *str, size_t len)
57 static const unsigned char asso_values[] =
59 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
60 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
61 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
62 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
63 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
64 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
65 187, 187, 187, 187, 187, 94, 12, 10, 57, 24,
66 6, 31, 5, 29, 187, 187, 9, 6, 13, 49,
67 37, 187, 94, 44, 5, 7, 88, 187, 40, 187,
68 187, 187, 187, 187, 187, 187, 187, 6, 23, 14,
69 78, 9, 5, 28, 50, 5, 31, 96, 24, 83,
70 54, 29, 12, 187, 6, 37, 5, 60, 99, 20,
71 187, 46, 187, 187, 187, 187, 187, 187, 187, 187,
72 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
73 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
74 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
75 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
76 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
77 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
78 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
79 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
80 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
81 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
82 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
83 187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
84 187, 187, 187, 187, 187, 187
86 unsigned int hval = len;
91 hval += asso_values[static_cast<unsigned char>(str[7])];
92#if (defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang__ && __clang_major__ + (__clang_minor__ >= 9) > 3))) || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 202000L && ((defined __GNUC__ && __GNUC__ >= 10) || (defined __clang__ && __clang_major__ >= 9)))
94#elif (defined __GNUC__ && __GNUC__ >= 7) || (defined __clang__ && __clang_major__ >= 10)
95 __attribute__ ((__fallthrough__));
101 hval += asso_values[static_cast<unsigned char>(str[4])];
102#if (defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang__ && __clang_major__ + (__clang_minor__ >= 9) > 3))) || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 202000L && ((defined __GNUC__ && __GNUC__ >= 10) || (defined __clang__ && __clang_major__ >= 9)))
104#elif (defined __GNUC__ && __GNUC__ >= 7) || (defined __clang__ && __clang_major__ >= 10)
105 __attribute__ ((__fallthrough__));
109 hval += asso_values[static_cast<unsigned char>(str[3])];
110#if (defined __cplusplus && (__cplusplus >= 201703L || (__cplusplus >= 201103L && defined __clang__ && __clang_major__ + (__clang_minor__ >= 9) > 3))) || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 202000L && ((defined __GNUC__ && __GNUC__ >= 10) || (defined __clang__ && __clang_major__ >= 9)))
112#elif (defined __GNUC__ && __GNUC__ >= 7) || (defined __clang__ && __clang_major__ >= 10)
113 __attribute__ ((__fallthrough__));
119 hval += asso_values[static_cast<unsigned char>(str[0])];
125#if (defined __GNUC__ && __GNUC__ + (__GNUC_MINOR__ >= 6) > 4) || (defined __clang__ && __clang_major__ >= 3)
126#pragma GCC diagnostic push
127#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
129static const struct fhtoken wordlist[] =
131 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
132 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
133 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
134 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
135 {(char*)0, 0}, {(char*)0, 0},
136#line 69 "tokens.gperf"
138 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
139#line 118 "tokens.gperf"
140 {"TString",FH_TSTRING},
141#line 74 "tokens.gperf"
142 {"MString",FH_MSTRING},
143#line 130 "tokens.gperf"
144 {"UString",FH_USTRING},
145#line 116 "tokens.gperf"
146 {"TEffect",FH_TEFFECT},
147 {(char*)0, 0}, {(char*)0, 0},
148#line 64 "tokens.gperf"
150#line 70 "tokens.gperf"
153#line 60 "tokens.gperf"
154 {"Halftone",FH_HALFTONE},
155#line 119 "tokens.gperf"
156 {"TabTable",FH_TABTABLE},
158#line 82 "tokens.gperf"
159 {"MultiBlend",FH_MULTIBLEND},
161#line 120 "tokens.gperf"
162 {"TaperedFill",FH_TAPEREDFILL},
163#line 121 "tokens.gperf"
164 {"TaperedFillX",FH_TAPEREDFILLX},
165#line 68 "tokens.gperf"
166 {"LinearFill",FH_LINEARFILL},
167#line 73 "tokens.gperf"
168 {"MQuickDict",FH_MQUICKDICT},
169#line 32 "tokens.gperf"
170 {"ContentFill",FH_CONTENTFILL},
171#line 75 "tokens.gperf"
172 {"MasterPageDocMan",FH_MASTERPAGEDOCMAN},
173#line 76 "tokens.gperf"
174 {"MasterPageElement",FH_MASTERPAGEELEMENT},
175#line 25 "tokens.gperf"
176 {"CharacterFill",FH_CHARACTERFILL},
177#line 49 "tokens.gperf"
178 {"FWFeatherFilter",FH_FWFEATHERFILTER},
179#line 55 "tokens.gperf"
180 {"FilterAttributeHolder",FH_FILTERATTRIBUTEHOLDER},
181#line 79 "tokens.gperf"
182 {"MasterPageSymbolClass",FH_MASTERPAGESYMBOLCLASS},
183#line 77 "tokens.gperf"
184 {"MasterPageLayerElement",FH_MASTERPAGELAYERELEMENT},
185#line 78 "tokens.gperf"
186 {"MasterPageLayerInstance",FH_MASTERPAGELAYERINSTANCE},
187#line 80 "tokens.gperf"
188 {"MasterPageSymbolInstance",FH_MASTERPAGESYMBOLINSTANCE},
189#line 28 "tokens.gperf"
190 {"Color6",FH_COLOR6},
191#line 126 "tokens.gperf"
192 {"TileFill",FH_TILEFILL},
193#line 71 "tokens.gperf"
195#line 83 "tokens.gperf"
196 {"MultiColorList",FH_MULTICOLORLIST},
197#line 125 "tokens.gperf"
198 {"TextInPath",FH_TEXTINPATH},
199#line 67 "tokens.gperf"
200 {"LineTable",FH_LINETABLE},
201#line 30 "tokens.gperf"
202 {"ConeFill",FH_CONEFILL},
203#line 127 "tokens.gperf"
204 {"TintColor",FH_TINTCOLOR},
205#line 128 "tokens.gperf"
206 {"TintColor6",FH_TINTCOLOR6},
207#line 34 "tokens.gperf"
208 {"CustomProc",FH_CUSTOMPROC},
209#line 33 "tokens.gperf"
210 {"ContourFill",FH_CONTOURFILL},
211#line 66 "tokens.gperf"
212 {"LinePat",FH_LINEPAT},
213#line 24 "tokens.gperf"
214 {"CalligraphicStroke",FH_CALLIGRAPHICSTROKE},
215#line 15 "tokens.gperf"
216 {"BasicFill",FH_BASICFILL},
217#line 103 "tokens.gperf"
218 {"PropLst",FH_PROPLST},
219#line 46 "tokens.gperf"
220 {"FHDocHeader",FH_FHDOCHEADER},
221#line 35 "tokens.gperf"
223#line 96 "tokens.gperf"
224 {"PatternFill",FH_PATTERNFILL},
225#line 29 "tokens.gperf"
226 {"CompositePath",FH_COMPOSITEPATH},
227#line 63 "tokens.gperf"
228 {"Import",FH_IMPORT},
229#line 97 "tokens.gperf"
230 {"PatternLine",FH_PATTERNLINE},
231#line 89 "tokens.gperf"
232 {"PSFill",FH_PSFILL},
233#line 81 "tokens.gperf"
234 {"MpObject",FH_MPOBJECT},
235#line 43 "tokens.gperf"
236 {"Envelope",FH_ENVELOPE},
237#line 101 "tokens.gperf"
238 {"Procedure",FH_PROCEDURE},
239#line 50 "tokens.gperf"
240 {"FWGlowFilter",FH_FWGLOWFILTER},
241#line 88 "tokens.gperf"
243#line 53 "tokens.gperf"
244 {"Figure",FH_FIGURE},
245#line 124 "tokens.gperf"
246 {"TextEffs",FH_TEXTEFFS},
247#line 108 "tokens.gperf"
248 {"SketchFilter",FH_SKETCHFILTER},
249#line 27 "tokens.gperf"
250 {"Collector",FH_COLLECTOR},
251#line 102 "tokens.gperf"
252 {"ProcessColor",FH_PROCESSCOLOR},
253#line 39 "tokens.gperf"
254 {"DuetFilter",FH_DUETFILTER},
255#line 65 "tokens.gperf"
256 {"LensFill",FH_LENSFILL},
257#line 36 "tokens.gperf"
258 {"DataList",FH_DATALIST},
259#line 52 "tokens.gperf"
260 {"FWSharpenFilter",FH_FWSHARPENFILTER},
261#line 87 "tokens.gperf"
262 {"OpacityFilter",FH_OPACITYFILTER},
263#line 37 "tokens.gperf"
264 {"DateTime",FH_DATETIME},
265#line 62 "tokens.gperf"
266 {"ImageImport",FH_IMAGEIMPORT},
267#line 123 "tokens.gperf"
268 {"TextColumn",FH_TEXTCOLUMN},
269#line 93 "tokens.gperf"
271#line 92 "tokens.gperf"
272 {"Paragraph",FH_PARAGRAPH},
273#line 91 "tokens.gperf"
274 {"PantoneColor",FH_PANTONECOLOR},
275#line 16 "tokens.gperf"
276 {"BasicLine",FH_BASICLINE},
277#line 85 "tokens.gperf"
278 {"NewContourFill",FH_NEWCONTOURFILL},
279#line 51 "tokens.gperf"
280 {"FWShadowFilter",FH_FWSHADOWFILTER},
281#line 109 "tokens.gperf"
282 {"SpotColor",FH_SPOTCOLOR},
283#line 110 "tokens.gperf"
284 {"SpotColor6",FH_SPOTCOLOR6},
285#line 61 "tokens.gperf"
286 {"ImageFill",FH_IMAGEFILL},
287#line 54 "tokens.gperf"
288 {"FileDescriptor",FH_FILEDESCRIPTOR},
289#line 44 "tokens.gperf"
290 {"ExpandFilter",FH_EXPANDFILTER},
291#line 90 "tokens.gperf"
292 {"PSLine",FH_PSLINE},
293#line 72 "tokens.gperf"
295#line 20 "tokens.gperf"
297#line 94 "tokens.gperf"
298 {"PathText",FH_PATHTEXT},
299#line 99 "tokens.gperf"
300 {"PerspectiveGrid",FH_PERSPECTIVEGRID},
301#line 48 "tokens.gperf"
302 {"FWBlurFilter",FH_FWBLURFILTER},
303#line 58 "tokens.gperf"
305#line 38 "tokens.gperf"
306 {"DisplayText",FH_DISPLAYTEXT},
307#line 98 "tokens.gperf"
308 {"PerspectiveEnvelope",FH_PERSPECTIVEENVELOPE},
309#line 17 "tokens.gperf"
310 {"BendFilter",FH_BENDFILTER},
311#line 131 "tokens.gperf"
313#line 95 "tokens.gperf"
314 {"PathTextLineInfo",FH_PATHTEXTLINEINFO},
315#line 115 "tokens.gperf"
316 {"SymbolLibrary",FH_SYMBOLLIBRARY},
317#line 31 "tokens.gperf"
318 {"ConnectorLine",FH_CONNECTORLINE},
319#line 22 "tokens.gperf"
320 {"BrushStroke",FH_BRUSHSTROKE},
321#line 129 "tokens.gperf"
322 {"TransformFilter",FH_TRANSFORMFILTER},
323#line 111 "tokens.gperf"
324 {"StylePropLst",FH_STYLEPROPLST},
325#line 23 "tokens.gperf"
326 {"BrushTip",FH_BRUSHTIP},
327#line 104 "tokens.gperf"
328 {"RadialFill",FH_RADIALFILL},
329#line 105 "tokens.gperf"
330 {"RadialFillX",FH_RADIALFILLX},
331#line 26 "tokens.gperf"
332 {"ClipGroup",FH_CLIPGROUP},
333#line 42 "tokens.gperf"
334 {"Element",FH_ELEMENT},
335#line 59 "tokens.gperf"
336 {"Guides",FH_GUIDES},
337#line 14 "tokens.gperf"
338 {"AttributeHolder",FH_ATTRIBUTEHOLDER},
339#line 122 "tokens.gperf"
340 {"TextBlok",FH_TEXTBLOK},
341#line 19 "tokens.gperf"
343#line 45 "tokens.gperf"
344 {"Extrusion",FH_EXTRUSION},
345#line 40 "tokens.gperf"
346 {"ElemList",FH_ELEMLIST},
347#line 100 "tokens.gperf"
348 {"PolygonFigure",FH_POLYGONFIGURE},
349#line 113 "tokens.gperf"
350 {"SymbolClass",FH_SYMBOLCLASS},
351#line 86 "tokens.gperf"
352 {"NewRadialFill",FH_NEWRADIALFILL},
353#line 47 "tokens.gperf"
354 {"FWBevelFilter",FH_FWBEVELFILTER},
355#line 133 "tokens.gperf"
357#line 84 "tokens.gperf"
358 {"NewBlend",FH_NEWBLEND},
359#line 11 "tokens.gperf"
360 {"AGDFont",FH_AGDFONT},
361#line 56 "tokens.gperf"
362 {"GradientMaskFilter",FH_GRADIENTMASKFILTER},
363#line 107 "tokens.gperf"
364 {"Rectangle",FH_RECTANGLE},
365 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
366 {(char*)0, 0}, {(char*)0, 0},
367#line 21 "tokens.gperf"
368 {"BrushList",FH_BRUSHLIST},
369 {(char*)0, 0}, {(char*)0, 0},
370#line 106 "tokens.gperf"
371 {"RaggedFilter",FH_RAGGEDFILTER},
372#line 57 "tokens.gperf"
373 {"GraphicStyle",FH_GRAPHICSTYLE},
374 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
375#line 117 "tokens.gperf"
376 {"TFOnPath",FH_TFONPATH},
377 {(char*)0, 0}, {(char*)0, 0},
378#line 13 "tokens.gperf"
379 {"ArrowPath",FH_ARROWPATH},
380 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
381 {(char*)0, 0}, {(char*)0, 0},
382#line 114 "tokens.gperf"
383 {"SymbolInstance",FH_SYMBOLINSTANCE},
385#line 132 "tokens.gperf"
386 {"VMpObj",FH_VMPOBJ},
387#line 41 "tokens.gperf"
388 {"ElemPropLst",FH_ELEMPROPLST},
389 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
390#line 112 "tokens.gperf"
391 {"SwfImport",FH_SWFIMPORT},
393#line 12 "tokens.gperf"
394 {"AGDSelection",FH_AGDSELECTION},
395 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
396 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
397 {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0}, {(char*)0, 0},
398#line 18 "tokens.gperf"
399 {"BlendObject",FH_BLENDOBJECT}
401#if (defined __GNUC__ && __GNUC__ + (__GNUC_MINOR__ >= 6) > 4) || (defined __clang__ && __clang_major__ >= 3)
402#pragma GCC diagnostic pop
405const struct fhtoken *
406Perfect_Hash::in_word_set (const char *str, size_t len)
408 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
410 unsigned int key = hash (str, len);
412 if (key <= MAX_HASH_VALUE)
414 const char *s = wordlist[key].name;
416 if (s && *str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
417 return &wordlist[key];
420 return static_cast<struct fhtoken *> (0);
422#line 134 "tokens.gperf"
Generated for libfreehand by
doxygen 1.14.0