Lines Matching +full:p +full:- +full:tile

34 	(strncmp(js+(t).start, s, (t).end - (t).start) == 0 \
35 && strlen(s) == (t).end - (t).start)
47 jsmn_parser p; in test_empty() local
51 jsmn_init(&p); in test_empty()
52 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
58 jsmn_init(&p); in test_empty()
59 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
65 jsmn_init(&p); in test_empty()
66 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
73 jsmn_init(&p); in test_empty()
74 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
85 jsmn_parser p; in test_simple() local
90 jsmn_init(&p); in test_simple()
91 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
101 jsmn_init(&p); in test_simple()
103 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
106 jsmn_init(&p); in test_simple()
108 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
117 jsmn_parser p; in test_primitive() local
121 jsmn_init(&p); in test_primitive()
122 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
129 jsmn_init(&p); in test_primitive()
130 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
137 jsmn_init(&p); in test_primitive()
138 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
145 jsmn_init(&p); in test_primitive()
146 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
153 jsmn_init(&p); in test_primitive()
154 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
165 jsmn_parser p; in test_string() local
170 jsmn_init(&p); in test_string()
171 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_string()
178 jsmn_init(&p); in test_string()
179 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_string()
186 jsmn_init(&p); in test_string()
187 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_string()
198 jsmn_parser p; in test_partial_string() local
202 jsmn_init(&p); in test_partial_string()
204 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
207 check(p.toknext == 1); in test_partial_string()
209 jsmn_init(&p); in test_partial_string()
211 r = jsmn_parse(&p, js_slash, sizeof(js_slash), tok, 10); in test_partial_string()
214 jsmn_init(&p); in test_partial_string()
216 r = jsmn_parse(&p, js_unicode, sizeof(js_unicode), tok, 10); in test_partial_string()
220 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
223 check(p.toknext == 1); in test_partial_string()
226 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
233 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
248 jsmn_parser p; in test_unquoted_keys() local
252 jsmn_init(&p); in test_unquoted_keys()
255 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_unquoted_keys()
269 jsmn_parser p; in test_partial_array() local
273 jsmn_init(&p); in test_partial_array()
275 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
280 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
286 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
295 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
308 jsmn_parser p; in test_array_nomem() local
315 jsmn_init(&p); in test_array_nomem()
318 r = jsmn_parse(&p, js, strlen(js), toksmall, i); in test_array_nomem()
323 r = jsmn_parse(&p, js, strlen(js), toklarge, 10); in test_array_nomem()
334 jsmn_parser p; in test_objects_arrays() local
339 jsmn_init(&p); in test_objects_arrays()
340 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
344 jsmn_init(&p); in test_objects_arrays()
345 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
349 jsmn_init(&p); in test_objects_arrays()
350 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
354 jsmn_init(&p); in test_objects_arrays()
355 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
363 jsmn_parser p; in test_issue_22() local
368 "\"name\":\"Calque de Tile 1\", \"opacity\":1, \"type\":\"tilelayer\", " in test_issue_22()
375 jsmn_init(&p); in test_issue_22()
376 r = jsmn_parse(&p, js, strlen(js), tokens, 128); in test_issue_22()
381 printf("%.*s\n", tokens[i].end - tokens[i].start, js + tokens[i].start); in test_issue_22()
395 jsmn_parser p; in test_unicode_characters() local
401 jsmn_init(&p); in test_unicode_characters()
402 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
406 jsmn_init(&p); in test_unicode_characters()
407 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
411 jsmn_init(&p); in test_unicode_characters()
412 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
416 jsmn_init(&p); in test_unicode_characters()
417 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
421 jsmn_init(&p); in test_unicode_characters()
422 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
426 jsmn_init(&p); in test_unicode_characters()
427 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
431 jsmn_init(&p); in test_unicode_characters()
432 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
441 jsmn_parser p; in test_input_length() local
446 jsmn_init(&p); in test_input_length()
447 r = jsmn_parse(&p, js, 8, tokens, 10); in test_input_length()
457 jsmn_parser p; in test_count() local
461 jsmn_init(&p); in test_count()
462 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 1); in test_count()
465 jsmn_init(&p); in test_count()
466 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 1); in test_count()
469 jsmn_init(&p); in test_count()
470 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 2); in test_count()
473 jsmn_init(&p); in test_count()
474 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 3); in test_count()
477 jsmn_init(&p); in test_count()
478 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 3); in test_count()
481 jsmn_init(&p); in test_count()
482 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 7); in test_count()
485 jsmn_init(&p); in test_count()
486 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 5); in test_count()
489 jsmn_init(&p); in test_count()
490 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 5); in test_count()
493 jsmn_init(&p); in test_count()
494 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 4); in test_count()
497 jsmn_init(&p); in test_count()
498 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 7); in test_count()
506 jsmn_parser p; in test_keyvalue() local
511 jsmn_init(&p); in test_keyvalue()
512 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
519 jsmn_init(&p); in test_keyvalue()
520 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
524 jsmn_init(&p); in test_keyvalue()
525 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
529 jsmn_init(&p); in test_keyvalue()
530 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
534 jsmn_init(&p); in test_keyvalue()
535 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
540 jsmn_init(&p); in test_keyvalue()
541 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
546 /** A huge redefinition of everything to include jsmn in non-script mode */
571 jsmn_parser p; in test_nonstrict() local
576 jsmn_init(&p); in test_nonstrict()
577 r = jsmn_parse(&p, js, 4, tokens, 10); in test_nonstrict()
583 jsmn_init(&p); in test_nonstrict()
584 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_nonstrict()
600 test(test_input_length, "test strings that are not null-terminated"); in main()
603 test(test_nonstrict, "test for non-strict mode"); in main()