Lines Matching defs:pos
66 const char *pos = *json_pos;
71 pos++; /* skip starting quote */
73 max_len = end - pos + 1;
81 for (; pos < end; pos++) {
98 switch (*pos) {
102 *json_pos = pos;
105 pos++;
106 if (pos >= end) {
111 switch (*pos) {
115 *spos++ = *pos;
127 if (end - pos < 5 ||
128 hexstr2bin(pos + 1, bin, 2) < 0 ||
140 pos += 4;
144 "JSON: Unknown escape '%c'", *pos);
149 *spos++ = *pos;
163 const char *pos = *json_pos;
167 for (; pos < end; pos++) {
168 if (*pos != '-' && (*pos < '0' || *pos > '9')) {
169 pos--;
173 if (pos == end)
174 pos--;
175 if (pos < *json_pos)
177 len = pos - *json_pos + 1;
186 *json_pos = pos;
223 const char *pos, *end;
229 pos = data;
232 for (; pos < end; pos++) {
233 switch (*pos) {
260 token->type = *pos == '[' ? JSON_ARRAY : JSON_OBJECT;
279 if ((*pos == ']' &&
281 (*pos == '}' &&
298 str = json_parse_string(&pos, end);
361 if (!((end - pos >= 4 &&
362 os_strncmp(pos, "true", 4) == 0) ||
363 (end - pos >= 5 &&
364 os_strncmp(pos, "false", 5) == 0) ||
365 (end - pos >= 4 &&
366 os_strncmp(pos, "null", 4) == 0))) {
379 curr_token->name, *pos);
385 "JSON: Literal name: %c", *pos);
391 switch (*pos) {
395 pos += 3;
400 pos += 4;
404 pos += 3;
421 if (json_parse_number(&pos, end, &num) < 0)
456 "JSON: Unexpected JSON character: %c", *pos);