Lines Matching refs:str
159 struct json_object* json_tokener_parse(const char *str) in json_tokener_parse() argument
163 obj = json_tokener_parse_verbose(str, &jerr_ignored); in json_tokener_parse()
167 struct json_object* json_tokener_parse_verbose(const char *str, enum json_tokener_error *error) in json_tokener_parse_verbose() argument
175 obj = json_tokener_parse_ex(tok, str, -1); in json_tokener_parse_verbose()
217 (((dest) = *str), 1) \
225 #define ADVANCE_CHAR(str, tok) \ argument
226 ( ++(str), ((tok)->char_offset)++, c)
233 const char *str, int len) in json_tokener_parse_ex() argument
253 if ((len < -1) || (len == -1 && strlen(str) > INT32_MAX)) { in json_tokener_parse_ex()
266 if ((!ADVANCE_CHAR(str, tok)) || (!PEEK_CHAR(c, tok))) in json_tokener_parse_ex()
439 const char *case_start = str; in json_tokener_parse_ex()
441 if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) { in json_tokener_parse_ex()
442 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
446 printbuf_memappend_fast(tok->pb, case_start, 1+str-case_start); in json_tokener_parse_ex()
454 const char *case_start = str; in json_tokener_parse_ex()
456 if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) { in json_tokener_parse_ex()
457 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
461 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
480 const char *case_start = str; in json_tokener_parse_ex()
483 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
489 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
494 if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) { in json_tokener_parse_ex()
495 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
572 (str[1] == '\\') && in json_tokener_parse_ex()
573 (str[2] == 'u')) in json_tokener_parse_ex()
579 if( !ADVANCE_CHAR(str, tok) || !ADVANCE_CHAR(str, tok) ) { in json_tokener_parse_ex()
585 if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) { in json_tokener_parse_ex()
624 if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) { in json_tokener_parse_ex()
669 const char *case_start = str; in json_tokener_parse_ex()
675 if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) { in json_tokener_parse_ex()
781 const char *case_start = str; in json_tokener_parse_ex()
784 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
790 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
795 if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) { in json_tokener_parse_ex()
796 printbuf_memappend_fast(tok->pb, case_start, str-case_start); in json_tokener_parse_ex()
845 if (!ADVANCE_CHAR(str, tok)) in json_tokener_parse_ex()