Lines Matching refs:ue
118 json_skip_space(const unsigned char *uc, const unsigned char *ue) in json_skip_space() argument
120 while (uc < ue && json_isspace(*uc)) in json_skip_space()
127 json_parse_string(const unsigned char **ucp, const unsigned char *ue, in json_parse_string() argument
134 while (uc < ue) { in json_parse_string()
139 if (uc == ue) in json_parse_string()
154 if (ue - uc < 4) { in json_parse_string()
155 uc = ue; in json_parse_string()
180 json_parse_array(const unsigned char **ucp, const unsigned char *ue, in json_parse_array() argument
186 while (uc < ue) { in json_parse_array()
187 uc = json_skip_space(uc, ue); in json_parse_array()
188 if (uc == ue) in json_parse_array()
192 if (!json_parse(&uc, ue, st, lvl + 1)) in json_parse_array()
194 if (uc == ue) in json_parse_array()
217 json_parse_object(const unsigned char **ucp, const unsigned char *ue, in json_parse_object() argument
222 while (uc < ue) { in json_parse_object()
223 uc = json_skip_space(uc, ue); in json_parse_object()
224 if (uc == ue) in json_parse_object()
235 if (!json_parse_string(&uc, ue, lvl)) { in json_parse_object()
239 uc = json_skip_space(uc, ue); in json_parse_object()
240 if (uc == ue) in json_parse_object()
246 if (!json_parse(&uc, ue, st, lvl + 1)) { in json_parse_object()
250 if (uc == ue) in json_parse_object()
274 json_parse_number(const unsigned char **ucp, const unsigned char *ue, in json_parse_number() argument
281 if (uc == ue) in json_parse_number()
286 for (; uc < ue; uc++) { in json_parse_number()
291 if (uc == ue) in json_parse_number()
295 for (; uc < ue; uc++) { in json_parse_number()
300 if (uc == ue) in json_parse_number()
305 if (uc == ue) in json_parse_number()
309 for (; uc < ue; uc++) { in json_parse_number()
326 json_parse_const(const unsigned char **ucp, const unsigned char *ue, in json_parse_const() argument
333 if (*ucp > ue) in json_parse_const()
334 *ucp = ue; in json_parse_const()
335 for (; uc < ue && --len;) { in json_parse_const()
346 json_parse(const unsigned char **ucp, const unsigned char *ue, in json_parse() argument
353 ouc = uc = json_skip_space(*ucp, ue); in json_parse()
354 if (uc == ue) in json_parse()
371 rv = json_parse_string(&uc, ue, lvl + 1); in json_parse()
375 rv = json_parse_array(&uc, ue, st, lvl + 1); in json_parse()
379 rv = json_parse_object(&uc, ue, st, lvl + 1); in json_parse()
383 rv = json_parse_const(&uc, ue, "true", sizeof("true"), lvl + 1); in json_parse()
387 rv = json_parse_const(&uc, ue, "false", sizeof("false"), in json_parse()
392 rv = json_parse_const(&uc, ue, "null", sizeof("null"), lvl + 1); in json_parse()
397 rv = json_parse_number(&uc, ue, lvl + 1); in json_parse()
403 uc = json_skip_space(uc, ue); in json_parse()
410 if (uc == ue) in json_parse()
412 if (*ouc == *uc && json_parse(&uc, ue, st, 1)) in json_parse()
425 const unsigned char *ue = uc + b->flen; in file_is_json() local
436 if ((jt = json_parse(&uc, ue, st, 0)) == 0) in file_is_json()