Coverage Report

Created: 2025-11-16 09:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/workdir/CustomTarget/sw/generated/tokens.cxx
Line
Count
Source
1
/* C++ code produced by gperf version 3.1 */
2
/* Command-line: /usr/bin/gperf --compare-strncmp --readonly-tables --class-name=TextBlockTokens --pic --string-pool-name=textBlockPool --word-array-name=textBlockList --enum /work/workdir/CustomTarget/sw/generated/TextBlockTokens.gperf  */
3
/* Computed positions: -k'1' */
4
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>."
30
#endif
31
32
struct xmltoken
33
{
34
  int name; XMLTokenEnum nToken;
35
};
36
enum
37
  {
38
    TOTAL_KEYWORDS = 5,
39
    MIN_WORD_LENGTH = 1,
40
    MAX_WORD_LENGTH = 16,
41
    MIN_HASH_VALUE = 1,
42
    MAX_HASH_VALUE = 16
43
  };
44
45
/* maximum key range = 16, duplicates = 0 */
46
47
class TextBlockTokens
48
{
49
private:
50
  static inline unsigned int hash (const char *str, size_t len);
51
public:
52
  static const struct xmltoken *in_word_set (const char *str, size_t len);
53
};
54
55
inline unsigned int
56
TextBlockTokens::hash (const char *str, size_t len)
57
0
{
58
0
  static const unsigned char asso_values[] =
59
0
    {
60
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
61
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
62
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
63
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
64
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
65
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
66
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
67
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
68
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
69
0
      17, 17, 17, 17, 17, 17, 17, 17,  5, 17,
70
0
       0, 17, 17, 17, 17, 17, 17, 17, 17, 17,
71
0
      17, 17,  0, 17, 17, 17,  0, 17, 17, 17,
72
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
73
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
74
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
75
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
76
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
77
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
78
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
79
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
80
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
81
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
82
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
83
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
84
0
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
85
0
      17, 17, 17, 17, 17, 17
86
0
    };
87
0
  return len + asso_values[static_cast<unsigned char>(str[0])];
88
0
}
89
90
struct textBlockPool_t
91
  {
92
    char textBlockPool_str1[sizeof("p")];
93
    char textBlockPool_str4[sizeof("text")];
94
    char textBlockPool_str8[sizeof("document")];
95
    char textBlockPool_str9[sizeof("body")];
96
    char textBlockPool_str16[sizeof("document-content")];
97
  };
98
static const struct textBlockPool_t textBlockPool_contents =
99
  {
100
    "p",
101
    "text",
102
    "document",
103
    "body",
104
    "document-content"
105
  };
106
0
#define textBlockPool ((const char *) &textBlockPool_contents)
107
108
static const struct xmltoken textBlockList[] =
109
  {
110
    {-1},
111
    {(int)(size_t)&((struct textBlockPool_t *)0)->textBlockPool_str1,XML_P},
112
    {-1}, {-1},
113
    {(int)(size_t)&((struct textBlockPool_t *)0)->textBlockPool_str4,XML_TEXT},
114
    {-1}, {-1}, {-1},
115
    {(int)(size_t)&((struct textBlockPool_t *)0)->textBlockPool_str8,XML_DOCUMENT},
116
    {(int)(size_t)&((struct textBlockPool_t *)0)->textBlockPool_str9,XML_BODY},
117
    {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
118
    {(int)(size_t)&((struct textBlockPool_t *)0)->textBlockPool_str16,XML_DOCUMENT_CONTENT}
119
  };
120
121
const struct xmltoken *
122
TextBlockTokens::in_word_set (const char *str, size_t len)
123
0
{
124
0
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
125
0
    {
126
0
      unsigned int key = hash (str, len);
127
128
0
      if (key <= MAX_HASH_VALUE)
129
0
        {
130
0
          int o = textBlockList[key].name;
131
0
          if (o >= 0)
132
0
            {
133
0
              const char *s = o + textBlockPool;
134
135
0
              if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
136
0
                return &textBlockList[key];
137
0
            }
138
0
        }
139
0
    }
140
0
  return 0;
141
0
}
142
143
/* C++ code produced by gperf version 3.1 */
144
/* Command-line: /usr/bin/gperf --compare-strncmp --readonly-tables -T --pic --string-pool-name=blockListPool --class-name=BlockListTokens --word-array-name=blockListList /work/workdir/CustomTarget/sw/generated/BlockListTokens.gperf  */
145
/* Computed positions: -k'1' */
146
147
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
148
      && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
149
      && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
150
      && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
151
      && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
152
      && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
153
      && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
154
      && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
155
      && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
156
      && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
157
      && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
158
      && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
159
      && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
160
      && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
161
      && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
162
      && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
163
      && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
164
      && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
165
      && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
166
      && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
167
      && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
168
      && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
169
      && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
170
/* The character set is not based on ISO-646.  */
171
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
172
#endif
173
174
175
#define TOTAL_KEYWORDS 7
176
0
#define MIN_WORD_LENGTH 4
177
0
#define MAX_WORD_LENGTH 16
178
#define MIN_HASH_VALUE 4
179
0
#define MAX_HASH_VALUE 21
180
/* maximum key range = 18, duplicates = 0 */
181
182
class BlockListTokens
183
{
184
private:
185
  static inline unsigned int hash (const char *str, size_t len);
186
public:
187
  static const struct xmltoken *in_word_set (const char *str, size_t len);
188
};
189
190
inline unsigned int
191
BlockListTokens::hash (const char *str, size_t len)
192
0
{
193
0
  static const unsigned char asso_values[] =
194
0
    {
195
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
196
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
197
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
198
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
199
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
200
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
201
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
202
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
203
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
204
0
      22, 22, 22, 22, 22, 22, 22,  5,  0, 22,
205
0
      22, 22, 22, 22, 22, 22, 22, 22,  0, 22,
206
0
       0, 22,  0, 22, 22, 22, 22,  0, 22, 22,
207
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
208
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
209
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
210
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
211
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
212
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
213
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
214
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
215
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
216
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
217
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
218
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
219
0
      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
220
0
      22, 22, 22, 22, 22, 22
221
0
    };
222
0
  return len + asso_values[static_cast<unsigned char>(str[0])];
223
0
}
224
225
struct blockListPool_t
226
  {
227
    char blockListPool_str4[sizeof("name")];
228
    char blockListPool_str5[sizeof("block")];
229
    char blockListPool_str9[sizeof("list-name")];
230
    char blockListPool_str10[sizeof("block-list")];
231
    char blockListPool_str12[sizeof("package-name")];
232
    char blockListPool_str16[sizeof("unformatted-text")];
233
    char blockListPool_str21[sizeof("abbreviated-name")];
234
  };
235
static const struct blockListPool_t blockListPool_contents =
236
  {
237
    "name",
238
    "block",
239
    "list-name",
240
    "block-list",
241
    "package-name",
242
    "unformatted-text",
243
    "abbreviated-name"
244
  };
245
0
#define blockListPool ((const char *) &blockListPool_contents)
246
247
static const struct xmltoken blockListList[] =
248
  {
249
    {-1}, {-1}, {-1}, {-1},
250
    {(int)(size_t)&((struct blockListPool_t *)0)->blockListPool_str4,XML_NAME},
251
    {(int)(size_t)&((struct blockListPool_t *)0)->blockListPool_str5,XML_BLOCK},
252
    {-1}, {-1}, {-1},
253
    {(int)(size_t)&((struct blockListPool_t *)0)->blockListPool_str9,XML_LIST_NAME},
254
    {(int)(size_t)&((struct blockListPool_t *)0)->blockListPool_str10,XML_BLOCK_LIST},
255
    {-1},
256
    {(int)(size_t)&((struct blockListPool_t *)0)->blockListPool_str12,XML_PACKAGE_NAME},
257
    {-1}, {-1}, {-1},
258
    {(int)(size_t)&((struct blockListPool_t *)0)->blockListPool_str16,XML_UNFORMATTED_TEXT},
259
    {-1}, {-1}, {-1}, {-1},
260
    {(int)(size_t)&((struct blockListPool_t *)0)->blockListPool_str21,XML_ABBREVIATED_NAME}
261
  };
262
263
const struct xmltoken *
264
BlockListTokens::in_word_set (const char *str, size_t len)
265
0
{
266
0
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
267
0
    {
268
0
      unsigned int key = hash (str, len);
269
270
0
      if (key <= MAX_HASH_VALUE)
271
0
        {
272
0
          int o = blockListList[key].name;
273
0
          if (o >= 0)
274
0
            {
275
0
              const char *s = o + blockListPool;
276
277
0
              if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
278
0
                return &blockListList[key];
279
0
            }
280
0
        }
281
0
    }
282
0
  return 0;
283
0
}
284