Lines Matching refs:object

389 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number)  in cJSON_SetNumberHelper()  argument
393 object->valueint = LLONG_MAX; in cJSON_SetNumberHelper()
397 object->valueint = LLONG_MIN; in cJSON_SetNumberHelper()
401 object->valueint = (int64_t)number; in cJSON_SetNumberHelper()
404 return object->valuedouble = number; in cJSON_SetNumberHelper()
407 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring() argument
411 if (!(object->type & cJSON_String) || (object->type & cJSON_IsReference)) in cJSON_SetValuestring()
415 if (strlen(valuestring) <= strlen(object->valuestring)) in cJSON_SetValuestring()
417 strcpy(object->valuestring, valuestring); in cJSON_SetValuestring()
418 return object->valuestring; in cJSON_SetValuestring()
425 if (object->valuestring != NULL) in cJSON_SetValuestring()
427 cJSON_free(object->valuestring); in cJSON_SetValuestring()
429 object->valuestring = copy; in cJSON_SetValuestring()
1877 static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool… in get_object_item() argument
1881 if ((object == NULL) || (name == NULL)) in get_object_item()
1886 current_element = object->child; in get_object_item()
1909 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string) in cJSON_GetObjectItem() argument
1911 return get_object_item(object, string, false); in cJSON_GetObjectItem()
1914 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * con… in cJSON_GetObjectItemCaseSensitive() argument
1916 return get_object_item(object, string, true); in cJSON_GetObjectItemCaseSensitive()
1919 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string) in cJSON_HasObjectItem() argument
1921 return cJSON_GetObjectItem(object, string) ? 1 : 0; in cJSON_HasObjectItem()
2017 static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const… in add_item_to_object() argument
2022 if ((object == NULL) || (string == NULL) || (item == NULL) || (object == item)) in add_item_to_object()
2051 return add_item_to_array(object, item); in add_item_to_object()
2054 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObject() argument
2056 return add_item_to_object(object, string, item, &global_hooks, false); in cJSON_AddItemToObject()
2060 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObjectCS() argument
2062 return add_item_to_object(object, string, item, &global_hooks, true); in cJSON_AddItemToObjectCS()
2075 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *i… in cJSON_AddItemReferenceToObject() argument
2077 if ((object == NULL) || (string == NULL)) in cJSON_AddItemReferenceToObject()
2082 …return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, fa… in cJSON_AddItemReferenceToObject()
2085 CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) in cJSON_AddNullToObject() argument
2088 if (add_item_to_object(object, name, null, &global_hooks, false)) in cJSON_AddNullToObject()
2097 CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) in cJSON_AddTrueToObject() argument
2100 if (add_item_to_object(object, name, true_item, &global_hooks, false)) in cJSON_AddTrueToObject()
2109 CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) in cJSON_AddFalseToObject() argument
2112 if (add_item_to_object(object, name, false_item, &global_hooks, false)) in cJSON_AddFalseToObject()
2121 CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJS… in cJSON_AddBoolToObject() argument
2124 if (add_item_to_object(object, name, bool_item, &global_hooks, false)) in cJSON_AddBoolToObject()
2133 CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const d… in cJSON_AddNumberToObject() argument
2136 if (add_item_to_object(object, name, number_item, &global_hooks, false)) in cJSON_AddNumberToObject()
2145 CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const c… in cJSON_AddStringToObject() argument
2148 if (add_item_to_object(object, name, string_item, &global_hooks, false)) in cJSON_AddStringToObject()
2157 CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char… in cJSON_AddRawToObject() argument
2160 if (add_item_to_object(object, name, raw_item, &global_hooks, false)) in cJSON_AddRawToObject()
2169 CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) in cJSON_AddObjectToObject() argument
2172 if (add_item_to_object(object, name, object_item, &global_hooks, false)) in cJSON_AddObjectToObject()
2181 CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) in cJSON_AddArrayToObject() argument
2184 if (add_item_to_object(object, name, array, &global_hooks, false)) in cJSON_AddArrayToObject()
2238 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string) in cJSON_DetachItemFromObject() argument
2240 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
2242 return cJSON_DetachItemViaPointer(object, to_detach); in cJSON_DetachItemFromObject()
2245 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DetachItemFromObjectCaseSensitive() argument
2247 cJSON *to_detach = cJSON_GetObjectItemCaseSensitive(object, string); in cJSON_DetachItemFromObjectCaseSensitive()
2249 return cJSON_DetachItemViaPointer(object, to_detach); in cJSON_DetachItemFromObjectCaseSensitive()
2252 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string) in cJSON_DeleteItemFromObject() argument
2254 cJSON_Delete(cJSON_DetachItemFromObject(object, string)); in cJSON_DeleteItemFromObject()
2257 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DeleteItemFromObjectCaseSensitive() argument
2259 cJSON_Delete(cJSON_DetachItemFromObjectCaseSensitive(object, string)); in cJSON_DeleteItemFromObjectCaseSensitive()
2343 static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJS… in replace_item_in_object() argument
2358 …return cJSON_ReplaceItemViaPointer(object, get_object_item(object, string, case_sensitive), replac… in replace_item_in_object()
2361 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newite… in cJSON_ReplaceItemInObject() argument
2363 return replace_item_in_object(object, string, newitem, false); in cJSON_ReplaceItemInObject()
2366 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, … in cJSON_ReplaceItemInObjectCaseSensitive() argument
2368 return replace_item_in_object(object, string, newitem, true); in cJSON_ReplaceItemInObjectCaseSensitive()
3082 CJSON_PUBLIC(void) cJSON_free(void *object) in cJSON_free() argument
3084 global_hooks.deallocate(object); in cJSON_free()