Lines Matching refs:str
100 static int json_escape_str(struct printbuf *pb, char *str, int len) in json_escape_str() argument
106 c = str[pos]; in json_escape_str()
118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
135 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
145 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
534 if (json_parse_int64(jso->o.c_string.str, &cint64) != 0) in json_object_get_int()
582 if (json_parse_int64(jso->o.c_string.str, &cint) == 0) in json_object_get_int64()
689 cdouble = strtod(jso->o.c_string.str,&errPtr); in json_object_get_double()
692 if (errPtr == jso->o.c_string.str) in json_object_get_double()
732 json_escape_str(pb, jso->o.c_string.str, jso->o.c_string.len); in json_object_string_to_json_string()
739 free(jso->o.c_string.str); in json_object_string_delete()
750 jso->o.c_string.str = strdup(s); in json_object_new_string()
751 if (!jso->o.c_string.str) in json_object_new_string()
768 jso->o.c_string.str = (char*)malloc(len + 1); in json_object_new_string_len()
769 if (!jso->o.c_string.str) in json_object_new_string_len()
775 memcpy(jso->o.c_string.str, (void *)s, len); in json_object_new_string_len()
776 jso->o.c_string.str[len] = '\0'; in json_object_new_string_len()
788 return jso->o.c_string.str; in json_object_get_string()