-
Notifications
You must be signed in to change notification settings - Fork 7
/
zua_scanner.c
733 lines (722 loc) · 16.2 KB
/
zua_scanner.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
/* Generated by re2c 2.1.1 */
/*
* re2c -t zua_scanner_defs.h -bci -o zua_scanner.c --no-generation-date zua_scanner.re
*/
#include <stdio.h>
#include "zua_scanner.h"
#include "zua_scanner_defs.h"
#include "zua_parser.h"
#include "zua_type.h"
#include <ctype.h>
#include <inttypes.h>
#define YYCTYPE zua_json_ctype
#define YYCURSOR s->cursor
#define YYLIMIT s->limit
#define YYMARKER s->marker
#define YYCTXMARKER s->ctxmarker
#define YYGETCONDITION() s->state
#define YYSETCONDITION(yystate) s->state = yystate
#define YYFILL(n)
#define ZUA_JSON_CONDITION_SET(condition) YYSETCONDITION(yyc##condition)
#define ZUA_JSON_CONDITION_GOTO(condition) goto yyc_##condition
#define ZUA_JSON_CONDITION_SET_AND_GOTO(condition) \
ZUA_JSON_CONDITION_SET(condition); \
ZUA_JSON_CONDITION_GOTO(condition)
void zua_json_scanner_init(zua_json_scanner *s, const char *str, uint32_t str_len, int options) {
s->cursor = (zua_json_ctype *)str;
s->limit = (zua_json_ctype *)str + str_len;
s->options = options;
ZUA_JSON_CONDITION_SET(JS);
}
int zua_json_scan(zua_json_scanner *s) {
ZVAL_NULL(&s->value);
std:
s->token = s->cursor;
{
YYCTYPE yych;
unsigned int yyaccept = 0;
if (YYGETCONDITION() < 2) {
if (YYGETCONDITION() < 1) {
goto yyc_JS;
} else {
goto yyc_STR_P2;
}
} else {
if (YYGETCONDITION() < 3) {
goto yyc_COMMENTS;
} else {
goto yyc_STR_P1;
}
}
/* *********************************** */
yyc_JS:
{
static const unsigned char yybm[] = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 16, 0, 0, 0, 16, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
16, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
96, 96, 96, 96, 96, 96, 96, 96,
96, 96, 0, 0, 0, 0, 0, 0,
0, 192, 192, 192, 192, 192, 192, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 0, 0, 0, 0, 64,
0, 192, 192, 192, 192, 192, 192, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 0, 0, 0, 0, 0,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
};
yych = *YYCURSOR;
switch (yych) {
case 0x00: goto yy2;
case 0x01:
case 0x02:
case 0x03:
case 0x04:
case 0x05:
case 0x06:
case 0x07:
case 0x08:
case '\v':
case '\f':
case 0x0E:
case 0x0F:
case 0x10:
case 0x11:
case 0x12:
case 0x13:
case 0x14:
case 0x15:
case 0x16:
case 0x17:
case 0x18:
case 0x19:
case 0x1A:
case 0x1B:
case 0x1C:
case 0x1D:
case 0x1E:
case 0x1F:
case '!':
case '#':
case '$':
case '%':
case '&':
case '(':
case ')':
case '*':
case ';':
case '<':
case '=':
case '>':
case '?':
case '\\':
case '^':
case '`':
case '|':
case '~':
case 0x7F: goto yy4;
case '\t':
case ' ': goto yy6;
case '\n': goto yy9;
case '\r': goto yy10;
case '"':
case '\'': goto yy11;
case '+': goto yy13;
case ',': goto yy14;
case '-': goto yy16;
case '.': goto yy17;
case '/': goto yy20;
case '0': goto yy21;
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': goto yy23;
case ':': goto yy25;
case '@': goto yy27;
case 'I': goto yy31;
case 'N': goto yy32;
case '[': goto yy33;
case ']': goto yy35;
case 'f': goto yy37;
case 'n': goto yy38;
case 't': goto yy39;
case '{': goto yy40;
case '}': goto yy42;
default: goto yy28;
}
yy2:
++YYCURSOR;
{
if (s->limit < s->cursor) {
return ZUA_JSON_T_EOI;
} else {
s->errcode = 1;
return ZUA_JSON_T_ERROR;
}
}
yy4:
++YYCURSOR;
yy5:
{
return ZUA_JSON_T_ERROR;
}
yy6:
yych = *++YYCURSOR;
yy7:
if (yybm[0+yych] & 16) {
goto yy6;
}
yy8:
{ goto std; }
yy9:
++YYCURSOR;
goto yy8;
yy10:
yych = *++YYCURSOR;
if (yych == '\n') goto yy9;
goto yy7;
yy11:
++YYCURSOR;
{
char c = s->token[0];
s->str_start = s->cursor;
uint32_t i = 0, j = 0;
zua_string *str = NULL;
for (; ; i++) {
if (YYCURSOR < YYLIMIT) {
if (*YYCURSOR == c) break;
if (*YYCURSOR++ == '\\') {
if (str == NULL) {
str = zua_string_create(s->str_start, i - j);
} else {
str = zua_string_append(str, s->str_start+j, i - j);
}
while (isspace(*YYCURSOR)) {
YYCURSOR++;
i++;
}
j = i + 1;
}
} else {
zua_string_free(str);
return ZUA_JSON_T_ERROR;
}
}
str = zua_string_append(str, s->str_start+j, i - j);
s->cursor++;
Z_STR_P(&s->value) = str;
Z_TYPE_P(&s->value) = IS_STRING;
return ZUA_JSON_T_STRING;
}
yy13:
yych = *++YYCURSOR;
if (yych <= '/') goto yy5;
if (yych <= '0') goto yy44;
if (yych <= '9') goto yy23;
goto yy5;
yy14:
++YYCURSOR;
{ return ','; }
yy16:
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= '9') {
if (yych <= '/') goto yy5;
if (yych <= '0') goto yy44;
goto yy23;
} else {
if (yych == 'I') goto yy45;
goto yy5;
}
yy17:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
if (yybm[0+yych] & 32) {
goto yy17;
}
if (yych == 'E') goto yy47;
if (yych == 'e') goto yy47;
yy19:
{
ZVAL_DOUBLE(&s->value, strtod((char *) s->token, NULL));
return ZUA_JSON_T_DOUBLE;
}
yy20:
yych = *++YYCURSOR;
if (yych == '*') goto yy48;
if (yych == '/') goto yy50;
goto yy5;
yy21:
yyaccept = 2;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= 'W') {
if (yych <= '.') {
if (yych >= '.') goto yy17;
} else {
if (yych == 'E') goto yy47;
}
} else {
if (yych <= 'e') {
if (yych <= 'X') goto yy52;
if (yych >= 'e') goto yy47;
} else {
if (yych == 'x') goto yy52;
}
}
yy22:
{
ZVAL_LONG(&s->value, strtol((char *)s->token, NULL, 10));
return ZUA_JSON_T_INT;
}
yy23:
yyaccept = 2;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= '9') {
if (yych == '.') goto yy17;
if (yych <= '/') goto yy22;
goto yy23;
} else {
if (yych <= 'E') {
if (yych <= 'D') goto yy22;
goto yy47;
} else {
if (yych == 'e') goto yy47;
goto yy22;
}
}
yy25:
++YYCURSOR;
{ return ':'; }
yy27:
yych = *++YYCURSOR;
if (yych == '"') goto yy53;
if (yych == '\'') goto yy55;
goto yy5;
yy28:
yych = *++YYCURSOR;
yy29:
if (yybm[0+yych] & 64) {
goto yy28;
}
{
ZVAL_STRINGL(&s->value, s->token, s->cursor - s->token);
ZUA_JSON_CONDITION_SET(JS);
return ZUA_JSON_T_ETRING;
}
yy31:
yych = *++YYCURSOR;
if (yych == 'n') goto yy57;
goto yy29;
yy32:
yych = *++YYCURSOR;
if (yych == 'a') goto yy58;
goto yy29;
yy33:
++YYCURSOR;
{ return '['; }
yy35:
++YYCURSOR;
{ return ']'; }
yy37:
yych = *++YYCURSOR;
if (yych == 'a') goto yy59;
goto yy29;
yy38:
yych = *++YYCURSOR;
if (yych == 'u') goto yy60;
goto yy29;
yy39:
yych = *++YYCURSOR;
if (yych == 'r') goto yy61;
goto yy29;
yy40:
++YYCURSOR;
{ return '{'; }
yy42:
++YYCURSOR;
{ return '}'; }
yy44:
yyaccept = 2;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= 'D') {
if (yych == '.') goto yy17;
goto yy22;
} else {
if (yych <= 'E') goto yy47;
if (yych == 'e') goto yy47;
goto yy22;
}
yy45:
yych = *++YYCURSOR;
if (yych == 'n') goto yy62;
yy46:
YYCURSOR = YYMARKER;
if (yyaccept <= 1) {
if (yyaccept == 0) {
goto yy5;
} else {
goto yy19;
}
} else {
goto yy22;
}
yy47:
yych = *++YYCURSOR;
if (yych <= ',') {
if (yych == '+') goto yy63;
goto yy46;
} else {
if (yych <= '-') goto yy63;
if (yych <= '/') goto yy46;
if (yych <= '9') goto yy64;
goto yy46;
}
yy48:
++YYCURSOR;
{
while(YYCURSOR < YYLIMIT) {
if (*YYCURSOR++ == '*' && *YYCURSOR == '/') {
break;
}
}
if (YYCURSOR < YYLIMIT) {
YYCURSOR++;
} else {
return ZUA_JSON_T_COMMENT_NOT_CLOSED;
}
goto std;
}
yy50:
++YYCURSOR;
{
ZUA_JSON_CONDITION_SET_AND_GOTO(COMMENTS);
}
yy52:
yych = *++YYCURSOR;
if (yybm[0+yych] & 128) {
goto yy66;
}
goto yy46;
yy53:
++YYCURSOR;
{
s->str_start = s->cursor;
s->str_esc = 0;
s->utf8_invalid = 0;
s->utf8_invalid_count = 0;
ZUA_JSON_CONDITION_SET_AND_GOTO(STR_P1);
}
yy55:
++YYCURSOR;
{
s->str_start = s->cursor;
s->str_esc = 0;
s->utf8_invalid = 0;
s->utf8_invalid_count = 0;
ZUA_JSON_CONDITION_SET_AND_GOTO(STR_P2);
}
yy57:
yych = *++YYCURSOR;
if (yych == 'f') goto yy69;
goto yy29;
yy58:
yych = *++YYCURSOR;
if (yych == 'N') goto yy70;
goto yy29;
yy59:
yych = *++YYCURSOR;
if (yych == 'l') goto yy72;
goto yy29;
yy60:
yych = *++YYCURSOR;
if (yych == 'l') goto yy73;
goto yy29;
yy61:
yych = *++YYCURSOR;
if (yych == 'u') goto yy74;
goto yy29;
yy62:
yych = *++YYCURSOR;
if (yych == 'f') goto yy75;
goto yy46;
yy63:
yych = *++YYCURSOR;
if (yych <= '/') goto yy46;
if (yych >= ':') goto yy46;
yy64:
yych = *++YYCURSOR;
if (yych <= '/') goto yy19;
if (yych <= '9') goto yy64;
goto yy19;
yy66:
yych = *++YYCURSOR;
if (yybm[0+yych] & 128) {
goto yy66;
}
{
ZVAL_LONG(&s->value, strtol((char *)s->token, NULL, 16));
return ZUA_JSON_T_INT;
}
yy69:
yych = *++YYCURSOR;
if (yych == 'i') goto yy76;
goto yy29;
yy70:
yych = *++YYCURSOR;
if (yybm[0+yych] & 64) {
goto yy28;
}
{
ZVAL_NAN(&s->value);
return ZUA_JSON_T_NAN;
}
yy72:
yych = *++YYCURSOR;
if (yych == 's') goto yy77;
goto yy29;
yy73:
yych = *++YYCURSOR;
if (yych == 'l') goto yy78;
goto yy29;
yy74:
yych = *++YYCURSOR;
if (yych == 'e') goto yy80;
goto yy29;
yy75:
yych = *++YYCURSOR;
if (yych == 'i') goto yy82;
goto yy46;
yy76:
yych = *++YYCURSOR;
if (yych == 'n') goto yy83;
goto yy29;
yy77:
yych = *++YYCURSOR;
if (yych == 'e') goto yy84;
goto yy29;
yy78:
yych = *++YYCURSOR;
if (yybm[0+yych] & 64) {
goto yy28;
}
{
ZVAL_NULL(&s->value);
return ZUA_JSON_T_NUL;
}
yy80:
yych = *++YYCURSOR;
if (yybm[0+yych] & 64) {
goto yy28;
}
{
ZVAL_TRUE(&s->value);
return ZUA_JSON_T_TRUE;
}
yy82:
yych = *++YYCURSOR;
if (yych == 'n') goto yy86;
goto yy46;
yy83:
yych = *++YYCURSOR;
if (yych == 'i') goto yy87;
goto yy29;
yy84:
yych = *++YYCURSOR;
if (yybm[0+yych] & 64) {
goto yy28;
}
{
ZVAL_FALSE(&s->value);
return ZUA_JSON_T_FALSE;
}
yy86:
yych = *++YYCURSOR;
if (yych == 'i') goto yy88;
goto yy46;
yy87:
yych = *++YYCURSOR;
if (yych == 't') goto yy89;
goto yy29;
yy88:
yych = *++YYCURSOR;
if (yych == 't') goto yy90;
goto yy46;
yy89:
yych = *++YYCURSOR;
if (yych == 'y') goto yy91;
goto yy29;
yy90:
yych = *++YYCURSOR;
if (yych == 'y') goto yy93;
goto yy46;
yy91:
yych = *++YYCURSOR;
if (yybm[0+yych] & 64) {
goto yy28;
}
{
ZVAL_INFINITY(&s->value);
return ZUA_JSON_T_INFINITY;
}
yy93:
++YYCURSOR;
{
ZVAL_NINFINITY(&s->value);
return ZUA_JSON_T_NEGATIVE_INFINITY;
}
}
/* *********************************** */
yyc_STR_P2:
{
static const unsigned char yybm[] = {
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 0,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
};
yych = *YYCURSOR;
if (yybm[0+yych] & 128) {
goto yy97;
}
goto yy100;
yy97:
yych = *++YYCURSOR;
if (yybm[0+yych] & 128) {
goto yy97;
}
{ ZUA_JSON_CONDITION_GOTO(STR_P2); }
yy100:
++YYCURSOR;
{
size_t len = s->cursor - s->str_start - s->str_esc - 1 + s->utf8_invalid_count;
ZVAL_STRINGL(&s->value, s->str_start, len);
ZUA_JSON_CONDITION_SET(JS);
return ZUA_JSON_T_STRING;
}
}
/* *********************************** */
yyc_COMMENTS:
yych = *YYCURSOR;
if (yych == '\n') goto yy106;
++YYCURSOR;
{
if (YYCURSOR >= YYLIMIT) {
return ZUA_JSON_T_ERROR;
}
ZUA_JSON_CONDITION_SET_AND_GOTO(COMMENTS);
}
yy106:
++YYCURSOR;
{ ZUA_JSON_CONDITION_SET_AND_GOTO(JS); }
/* *********************************** */
yyc_STR_P1:
{
static const unsigned char yybm[] = {
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 0, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
};
yych = *YYCURSOR;
if (yybm[0+yych] & 128) {
goto yy110;
}
goto yy113;
yy110:
yych = *++YYCURSOR;
if (yybm[0+yych] & 128) {
goto yy110;
}
{ ZUA_JSON_CONDITION_GOTO(STR_P1); }
yy113:
++YYCURSOR;
{
size_t len = s->cursor - s->str_start - s->str_esc - 1 + s->utf8_invalid_count;
ZVAL_STRINGL(&s->value, s->str_start, len);
ZUA_JSON_CONDITION_SET(JS);
return ZUA_JSON_T_STRING;
}
}
}
}