Lines Matching refs:c_string
491 return (jso->o.c_string.len != 0); in json_object_get_boolean()
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()
757 jso->o.c_string.len = strlen(s); 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()
777 jso->o.c_string.len = len; in json_object_new_string_len()
788 return jso->o.c_string.str; in json_object_get_string()
801 return jso->o.c_string.len; in json_object_get_string_len()