Lines Matching refs:object
343 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper() argument
347 object->valueint = INT_MAX; in cJSON_SetNumberHelper()
351 object->valueint = INT_MIN; in cJSON_SetNumberHelper()
355 object->valueint = (int)number; in cJSON_SetNumberHelper()
358 return object->valuedouble = number; in cJSON_SetNumberHelper()
1772 static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool… in get_object_item() argument
1776 if ((object == NULL) || (name == NULL)) in get_object_item()
1781 current_element = object->child; in get_object_item()
1800 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string) in cJSON_GetObjectItem() argument
1802 return get_object_item(object, string, false); in cJSON_GetObjectItem()
1805 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * con… in cJSON_GetObjectItemCaseSensitive() argument
1807 return get_object_item(object, string, true); in cJSON_GetObjectItemCaseSensitive()
1810 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string) in cJSON_HasObjectItem() argument
1812 return cJSON_GetObjectItem(object, string) ? 1 : 0; in cJSON_HasObjectItem()
1895 static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const… in add_item_to_object() argument
1900 if ((object == NULL) || (string == NULL) || (item == NULL)) in add_item_to_object()
1929 return add_item_to_array(object, item); in add_item_to_object()
1932 CJSON_PUBLIC(void) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObject() argument
1934 add_item_to_object(object, string, item, &global_hooks, false); in cJSON_AddItemToObject()
1938 CJSON_PUBLIC(void) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObjectCS() argument
1940 add_item_to_object(object, string, item, &global_hooks, true); in cJSON_AddItemToObjectCS()
1953 CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemReferenceToObject() argument
1955 if ((object == NULL) || (string == NULL)) in cJSON_AddItemReferenceToObject()
1960 add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false); in cJSON_AddItemReferenceToObject()
1963 CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) in cJSON_AddNullToObject() argument
1966 if (add_item_to_object(object, name, null, &global_hooks, false)) in cJSON_AddNullToObject()
1975 CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) in cJSON_AddTrueToObject() argument
1978 if (add_item_to_object(object, name, true_item, &global_hooks, false)) in cJSON_AddTrueToObject()
1987 CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) in cJSON_AddFalseToObject() argument
1990 if (add_item_to_object(object, name, false_item, &global_hooks, false)) in cJSON_AddFalseToObject()
1999 CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJS… in cJSON_AddBoolToObject() argument
2002 if (add_item_to_object(object, name, bool_item, &global_hooks, false)) in cJSON_AddBoolToObject()
2011 CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const d… in cJSON_AddNumberToObject() argument
2014 if (add_item_to_object(object, name, number_item, &global_hooks, false)) in cJSON_AddNumberToObject()
2023 CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const c… in cJSON_AddStringToObject() argument
2026 if (add_item_to_object(object, name, string_item, &global_hooks, false)) in cJSON_AddStringToObject()
2035 CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char… in cJSON_AddRawToObject() argument
2038 if (add_item_to_object(object, name, raw_item, &global_hooks, false)) in cJSON_AddRawToObject()
2047 CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) in cJSON_AddObjectToObject() argument
2050 if (add_item_to_object(object, name, object_item, &global_hooks, false)) in cJSON_AddObjectToObject()
2059 CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) in cJSON_AddArrayToObject() argument
2062 if (add_item_to_object(object, name, array, &global_hooks, false)) in cJSON_AddArrayToObject()
2116 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string) in cJSON_DetachItemFromObject() argument
2118 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
2120 return cJSON_DetachItemViaPointer(object, to_detach); in cJSON_DetachItemFromObject()
2123 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DetachItemFromObjectCaseSensitive() argument
2125 cJSON *to_detach = cJSON_GetObjectItemCaseSensitive(object, string); in cJSON_DetachItemFromObjectCaseSensitive()
2127 return cJSON_DetachItemViaPointer(object, to_detach); in cJSON_DetachItemFromObjectCaseSensitive()
2130 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string) in cJSON_DeleteItemFromObject() argument
2132 cJSON_Delete(cJSON_DetachItemFromObject(object, string)); in cJSON_DeleteItemFromObject()
2135 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DeleteItemFromObjectCaseSensitive() argument
2137 cJSON_Delete(cJSON_DetachItemFromObjectCaseSensitive(object, string)); in cJSON_DeleteItemFromObjectCaseSensitive()
2215 static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJS… in replace_item_in_object() argument
2230 … cJSON_ReplaceItemViaPointer(object, get_object_item(object, string, case_sensitive), replacement); in replace_item_in_object()
2235 CJSON_PUBLIC(void) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem) in cJSON_ReplaceItemInObject() argument
2237 replace_item_in_object(object, string, newitem, false); in cJSON_ReplaceItemInObject()
2240 CJSON_PUBLIC(void) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON … in cJSON_ReplaceItemInObjectCaseSensitive() argument
2242 replace_item_in_object(object, string, newitem, true); in cJSON_ReplaceItemInObjectCaseSensitive()
2929 CJSON_PUBLIC(void) cJSON_free(void *object) in cJSON_free() argument
2931 global_hooks.deallocate(object); in cJSON_free()
2935 cJSON *cJSON_GetObjectItemByPath(cJSON *object, const char *path) in cJSON_GetObjectItemByPath() argument
2937 if (object == NULL) { in cJSON_GetObjectItemByPath()
2945 cJSON *item = object; in cJSON_GetObjectItemByPath()