| line |
true |
false |
branch |
|
200
|
0 |
0 |
if (kind >= 0 && kind <= PDFMAKE_TOK_ERROR) { |
|
232
|
140981 |
63 |
while (t->pos < t->len && pdfmake_is_whitespace(t->buf[t->pos])) { |
|
|
76206 |
64775 |
while (t->pos < t->len && pdfmake_is_whitespace(t->buf[t->pos])) { |
|
252
|
10466 |
10 |
while (t->pos < t->len) { |
|
254
|
113 |
10353 |
if (c == '\n') { |
|
258
|
176 |
10177 |
if (c == '\r') { |
|
260
|
176 |
0 |
if (t->pos < t->len && t->buf[t->pos] == '\n') { |
|
|
32 |
144 |
if (t->pos < t->len && t->buf[t->pos] == '\n') { |
|
294
|
38163 |
0 |
if (t->pos < t->len && (t->buf[t->pos] == '+' || t->buf[t->pos] == '-')) { |
|
|
38163 |
0 |
if (t->pos < t->len && (t->buf[t->pos] == '+' || t->buf[t->pos] == '-')) { |
|
|
2422 |
35741 |
if (t->pos < t->len && (t->buf[t->pos] == '+' || t->buf[t->pos] == '-')) { |
|
295
|
2422 |
0 |
if (t->buf[t->pos] == '-') is_negative = 1; |
|
300
|
154242 |
0 |
while (t->pos < t->len && pdfmake_is_digit(t->buf[t->pos])) { |
|
|
116079 |
38163 |
while (t->pos < t->len && pdfmake_is_digit(t->buf[t->pos])) { |
|
306
|
38163 |
0 |
if (t->pos < t->len && t->buf[t->pos] == '.') { |
|
|
4799 |
33364 |
if (t->pos < t->len && t->buf[t->pos] == '.') { |
|
311
|
15633 |
0 |
while (t->pos < t->len && pdfmake_is_digit(t->buf[t->pos])) { |
|
|
10834 |
4799 |
while (t->pos < t->len && pdfmake_is_digit(t->buf[t->pos])) { |
|
319
|
0 |
38163 |
if (!has_digits) { |
|
326
|
4799 |
33364 |
if (is_real) { |
|
329
|
25762 |
4799 |
for (i = tok.offset; i < tok.offset + tok.length; i++) { |
|
331
|
25762 |
0 |
if (c == '+' || c == '-') continue; |
|
|
2118 |
23644 |
if (c == '+' || c == '-') continue; |
|
332
|
4799 |
18845 |
if (c == '.') { |
|
336
|
10834 |
8011 |
if (in_frac) { |
|
343
|
2118 |
2681 |
tok.payload.real_val = is_negative ? -(val + frac) : (val + frac); |
|
346
|
108372 |
33364 |
for (i = tok.offset; i < tok.offset + tok.length; i++) { |
|
348
|
108372 |
0 |
if (c == '+' || c == '-') continue; |
|
|
304 |
108068 |
if (c == '+' || c == '-') continue; |
|
351
|
304 |
33060 |
tok.payload.int_val = is_negative ? -ival : ival; |
|
370
|
73121 |
0 |
while (t->pos < t->len) { |
|
372
|
63186 |
9935 |
if (pdfmake_is_whitespace(c) || pdfmake_is_delimiter(c)) { |
|
|
62255 |
931 |
if (pdfmake_is_whitespace(c) || pdfmake_is_delimiter(c)) { |
|
375
|
33 |
62222 |
if (c == '#') { |
|
378
|
1 |
0 |
pdfmake_is_hex(t->buf[t->pos + 1]) && |
|
408
|
2733919 |
32 |
while (t->pos < t->len && depth > 0) { |
|
|
2730146 |
3773 |
while (t->pos < t->len && depth > 0) { |
|
411
|
10176 |
2719970 |
if (c == '(') { |
|
414
|
13405 |
2706565 |
} else if (c == ')') { |
|
417
|
10005 |
2696560 |
} else if (c == '\\') { |
|
420
|
10005 |
0 |
if (t->pos < t->len) { |
|
422
|
8193 |
1812 |
if (esc >= '0' && esc <= '7') { |
|
|
128 |
8065 |
if (esc >= '0' && esc <= '7') { |
|
425
|
128 |
0 |
if (t->pos < t->len && t->buf[t->pos] >= '0' && t->buf[t->pos] <= '7') { |
|
|
128 |
0 |
if (t->pos < t->len && t->buf[t->pos] >= '0' && t->buf[t->pos] <= '7') { |
|
|
0 |
128 |
if (t->pos < t->len && t->buf[t->pos] >= '0' && t->buf[t->pos] <= '7') { |
|
427
|
0 |
0 |
if (t->pos < t->len && t->buf[t->pos] >= '0' && t->buf[t->pos] <= '7') { |
|
|
0 |
0 |
if (t->pos < t->len && t->buf[t->pos] >= '0' && t->buf[t->pos] <= '7') { |
|
|
0 |
0 |
if (t->pos < t->len && t->buf[t->pos] >= '0' && t->buf[t->pos] <= '7') { |
|
431
|
64 |
9813 |
} else if (esc == '\r') { |
|
434
|
64 |
0 |
if (t->pos < t->len && t->buf[t->pos] == '\n') { |
|
|
0 |
64 |
if (t->pos < t->len && t->buf[t->pos] == '\n') { |
|
437
|
96 |
9717 |
} else if (esc == '\n') { |
|
452
|
32 |
3773 |
if (depth != 0) { |
|
472
|
17403 |
0 |
while (t->pos < t->len) { |
|
475
|
490 |
16913 |
if (c == '>') { |
|
481
|
0 |
16913 |
if (pdfmake_is_whitespace(c)) { |
|
487
|
160 |
16753 |
if (!pdfmake_is_hex(c)) { |
|
535
|
83396 |
3 |
while (t->pos < t->len && pdfmake_is_regular(t->buf[t->pos])) { |
|
|
65487 |
17909 |
while (t->pos < t->len && pdfmake_is_regular(t->buf[t->pos])) { |
|
542
|
166672 |
10634 |
for (kw = keywords; kw->text != NULL; kw++) { |
|
543
|
15274 |
151398 |
if (tok.length == kw->len && |
|
544
|
7278 |
7996 |
memcmp(t->buf + tok.offset, kw->text, kw->len) == 0) { |
|
548
|
305 |
6973 |
if (tok.kind == PDFMAKE_TOK_KW_STREAM) { |
|
554
|
305 |
0 |
while (body_start < t->len && |
|
555
|
0 |
305 |
(t->buf[body_start] == ' ' || t->buf[body_start] == '\t')) { |
|
|
0 |
305 |
(t->buf[body_start] == ' ' || t->buf[body_start] == '\t')) { |
|
560
|
305 |
0 |
if (body_start < t->len && t->buf[body_start] == '\r') { |
|
|
189 |
116 |
if (body_start < t->len && t->buf[body_start] == '\r') { |
|
562
|
189 |
0 |
if (body_start < t->len && t->buf[body_start] == '\n') { |
|
|
189 |
0 |
if (body_start < t->len && t->buf[body_start] == '\n') { |
|
567
|
116 |
0 |
} else if (body_start < t->len && t->buf[body_start] == '\n') { |
|
|
116 |
0 |
} else if (body_start < t->len && t->buf[body_start] == '\n') { |
|
591
|
42627 |
145096 |
if (t->has_peeked) { |
|
597
|
190 |
144906 |
if (t->pos >= t->len) { |
|
607
|
64838 |
80068 |
if (pdfmake_is_whitespace(c)) { |
|
612
|
299 |
79769 |
if (c == '%') { |
|
617
|
44029 |
35740 |
if (pdfmake_is_digit(c) || |
|
|
44029 |
0 |
if (pdfmake_is_digit(c) || |
|
618
|
41607 |
2422 |
((c == '+' || c == '-' || c == '.') && |
|
|
1 |
41606 |
((c == '+' || c == '-' || c == '.') && |
|
620
|
0 |
0 |
(pdfmake_is_digit(t->buf[t->pos + 1]) || t->buf[t->pos + 1] == '.'))) { |
|
625
|
10866 |
30740 |
if (c == '/') { |
|
630
|
3805 |
26935 |
if (c == '(') { |
|
635
|
2911 |
24024 |
if (c == '<') { |
|
636
|
2911 |
0 |
if (t->pos + 1 < t->len && t->buf[t->pos + 1] == '<') { |
|
|
2261 |
650 |
if (t->pos + 1 < t->len && t->buf[t->pos + 1] == '<') { |
|
648
|
2421 |
21603 |
if (c == '>') { |
|
649
|
2421 |
0 |
if (t->pos + 1 < t->len && t->buf[t->pos + 1] == '>') { |
|
|
2261 |
160 |
if (t->pos + 1 < t->len && t->buf[t->pos + 1] == '>') { |
|
665
|
1529 |
20074 |
if (c == '[') { |
|
673
|
1874 |
18200 |
if (c == ']') { |
|
682
|
18040 |
160 |
if (c == '{' || c == '}') { |
|
|
96 |
17944 |
if (c == '{' || c == '}') { |
|
691
|
32 |
17912 |
if (c == ')') { |
|
708
|
43083 |
6595 |
if (!t->has_peeked) { |
|
723
|
34169 |
67116 |
} while (tok.kind == PDFMAKE_TOK_WS || tok.kind == PDFMAKE_TOK_COMMENT); |
|
|
168 |
66948 |
} while (tok.kind == PDFMAKE_TOK_WS || tok.kind == PDFMAKE_TOK_COMMENT); |
|
731
|
30308 |
19370 |
if (out->kind != PDFMAKE_TOK_WS && out->kind != PDFMAKE_TOK_COMMENT) { |
|
|
30307 |
1 |
if (out->kind != PDFMAKE_TOK_WS && out->kind != PDFMAKE_TOK_COMMENT) { |