Home
last modified time | relevance | path

Searched refs:jsmntok_t (Results 1 – 7 of 7) sorted by relevance

/external/jsmn/
Djsmn.c6 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token()
7 jsmntok_t *tokens, size_t num_tokens) { in jsmn_alloc_token()
8 jsmntok_t *tok; in jsmn_alloc_token()
24 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type, in jsmn_fill_token()
36 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_primitive()
37 jsmntok_t *token; in jsmn_parse_primitive()
85 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_string()
86 jsmntok_t *token; in jsmn_parse_string()
152 jsmntok_t *tokens, unsigned int num_tokens) { in jsmn_parse()
155 jsmntok_t *token; in jsmn_parse()
[all …]
Djsmn.h48 } jsmntok_t; typedef
70 jsmntok_t *tokens, unsigned int num_tokens);
DREADME.md116 Token is an object of `jsmntok_t` type:
123 } jsmntok_t;
132 jsmntok_t tokens[10];
/external/jsmn/test/
Dtestutil.h6 static int vtokeq(const char *s, jsmntok_t *t, int numtok, va_list ap) { in vtokeq()
62 static int tokeq(const char *s, jsmntok_t *tokens, int numtok, ...) { in tokeq()
76 jsmntok_t *t = malloc(numtok * sizeof(jsmntok_t)); in parse()
Dtests.c146 jsmntok_t tok[5]; in test_partial_string()
172 jsmntok_t tok[10]; in test_partial_array()
199 jsmntok_t toksmall[10], toklarge[10]; in test_array_nomem()
230 jsmntok_t tok[10]; in test_unquoted_keys()
250 jsmntok_t tokens[128]; in test_issue_22()
278 jsmntok_t tokens[10]; in test_input_length()
/external/jsmn/example/
Dsimple.c15 static int jsoneq(const char *json, jsmntok_t *tok, const char *s) { in jsoneq()
27 jsmntok_t t[128]; /* We expect no more than 128 tokens */ in main()
66 jsmntok_t *g = &t[i+j+2]; in main()
Djsondump.c28 static int dump(const char *js, jsmntok_t *t, size_t count, int indent) { in dump()
72 jsmntok_t *tok; in main()