Lines Matching defs:tid

1156 	tok_ref          tid)
1158 if (tid >= 0 && tid < ctx->ntok) {
1159 int len = ctx->tok[tid].size;
1170 switch (ctx->tok[tid].type) {
1175 for (++tid; len; --len)
1176 tid = json_token_skip(ctx, tid);
1180 ++tid;
1186 if (tid < 0 || tid > ctx->ntok)
1187 tid = ctx->ntok;
1189 return tid;
1197 tok_ref tid ,
1203 if (tid < 0 || tid >= ctx->ntok ||
1204 ctx->tok[tid].type != JSMN_OBJECT)
1207 len = ctx->tok[tid].size;
1208 for (++tid; len && tid+1 < ctx->ntok; --len) {
1209 if (ctx->tok[tid].type != JSMN_STRING) { /* Blooper! */
1210 tid = json_token_skip(ctx, tid); /* skip key */
1211 tid = json_token_skip(ctx, tid); /* skip val */
1212 } else if (strcmp(key, ctx->buf + ctx->tok[tid].start)) {
1213 tid = json_token_skip(ctx, tid+1); /* skip key+val */
1214 } else if (what < 0 || (u_int)what == ctx->tok[tid+1].type) {
1215 return tid + 1;
1220 if (tid < 0)
1231 tok_ref tid,
1234 tid = json_object_lookup(ctx, tid, key, JSMN_PRIMITIVE);
1235 if (INVALID_TOKEN != tid)
1236 return ctx->buf + ctx->tok[tid].start;
1247 tok_ref tid,
1251 cp = json_object_lookup_primitive(ctx, tid, key);
1264 tok_ref tid,
1267 tid = json_object_lookup(ctx, tid, key, JSMN_STRING);
1268 if (INVALID_TOKEN != tid)
1269 return ctx->buf + ctx->tok[tid].start;
1276 tok_ref tid,
1280 tid = json_object_lookup(ctx, tid, key, JSMN_STRING);
1281 if (INVALID_TOKEN != tid)
1282 return ctx->buf + ctx->tok[tid].start;
1291 tok_ref tid,
1298 cp = json_object_lookup_primitive(ctx, tid, key);
1312 tok_ref tid,
1320 cp = json_object_lookup_primitive(ctx, tid, key);
1334 tok_ref tid,
1341 cp = json_object_lookup_primitive(ctx, tid, key);
1356 tok_ref tid,
1364 cp = json_object_lookup_primitive(ctx, tid, key);