Lines Matching defs:tid

1137 	tok_ref          tid)
1139 if (tid >= 0 && tid < ctx->ntok) {
1140 int len = ctx->tok[tid].size;
1151 switch (ctx->tok[tid].type) {
1156 for (++tid; len; --len)
1157 tid = json_token_skip(ctx, tid);
1161 ++tid;
1167 if (tid < 0 || tid > ctx->ntok)
1168 tid = ctx->ntok;
1170 return tid;
1178 tok_ref tid ,
1184 if (tid < 0 || tid >= ctx->ntok ||
1185 ctx->tok[tid].type != JSMN_OBJECT)
1188 len = ctx->tok[tid].size;
1189 for (++tid; len && tid+1 < ctx->ntok; --len) {
1190 if (ctx->tok[tid].type != JSMN_STRING) { /* Blooper! */
1191 tid = json_token_skip(ctx, tid); /* skip key */
1192 tid = json_token_skip(ctx, tid); /* skip val */
1193 } else if (strcmp(key, ctx->buf + ctx->tok[tid].start)) {
1194 tid = json_token_skip(ctx, tid+1); /* skip key+val */
1195 } else if (what < 0 || (u_int)what == ctx->tok[tid+1].type) {
1196 return tid + 1;
1201 if (tid < 0)
1212 tok_ref tid,
1215 tid = json_object_lookup(ctx, tid, key, JSMN_PRIMITIVE);
1216 if (INVALID_TOKEN != tid)
1217 return ctx->buf + ctx->tok[tid].start;
1228 tok_ref tid,
1232 cp = json_object_lookup_primitive(ctx, tid, key);
1245 tok_ref tid,
1248 tid = json_object_lookup(ctx, tid, key, JSMN_STRING);
1249 if (INVALID_TOKEN != tid)
1250 return ctx->buf + ctx->tok[tid].start;
1257 tok_ref tid,
1261 tid = json_object_lookup(ctx, tid, key, JSMN_STRING);
1262 if (INVALID_TOKEN != tid)
1263 return ctx->buf + ctx->tok[tid].start;
1272 tok_ref tid,
1279 cp = json_object_lookup_primitive(ctx, tid, key);
1293 tok_ref tid,
1301 cp = json_object_lookup_primitive(ctx, tid, key);
1315 tok_ref tid,
1322 cp = json_object_lookup_primitive(ctx, tid, key);
1337 tok_ref tid,
1345 cp = json_object_lookup_primitive(ctx, tid, key);