Lines Matching refs:cJSON
198 CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * c… in cJSONUtils_FindPointerFromObjectTo()
201 cJSON *current_child = 0; in cJSONUtils_FindPointerFromObjectTo()
262 static cJSON *get_array_item(const cJSON *array, size_t item) in get_array_item()
264 cJSON *child = array ? array->child : NULL; in get_array_item()
301 static cJSON *get_item_from_pointer(cJSON * const object, const char * pointer, const cJSON_bool ca… in get_item_from_pointer()
303 cJSON *current_element = object; in get_item_from_pointer()
348 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer) in cJSONUtils_GetPointer()
353 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer) in cJSONUtils_GetPointerCaseSensitive()
393 static cJSON *detach_item_from_array(cJSON *array, size_t which) in detach_item_from_array()
395 cJSON *c = array->child; in detach_item_from_array()
430 static cJSON *detach_path(cJSON *object, const unsigned char *path, const cJSON_bool case_sensitive) in detach_path()
434 cJSON *parent = NULL; in detach_path()
435 cJSON *detached_item = NULL; in detach_path()
484 static cJSON *sort_list(cJSON *list, const cJSON_bool case_sensitive) in sort_list()
486 cJSON *first = list; in sort_list()
487 cJSON *second = list; in sort_list()
488 cJSON *current_item = list; in sort_list()
489 cJSON *result = list; in sort_list()
490 cJSON *result_tail = NULL; in sort_list()
537 cJSON *smaller = NULL; in sort_list()
595 static void sort_object(cJSON * const object, const cJSON_bool case_sensitive) in sort_object()
604 static cJSON_bool compare_json(cJSON *a, cJSON *b, const cJSON_bool case_sensitive) in compare_json()
693 static cJSON_bool insert_item_in_array(cJSON *array, size_t which, cJSON *newitem) in insert_item_in_array()
695 cJSON *child = array->child; in insert_item_in_array()
730 static cJSON *get_object_item(const cJSON * const object, const char* name, const cJSON_bool case_s… in get_object_item()
742 static enum patch_operation decode_patch_operation(const cJSON * const patch, const cJSON_bool case… in decode_patch_operation()
744 cJSON *operation = get_object_item(patch, "op", case_sensitive); in decode_patch_operation()
784 static void overwrite_item(cJSON * const root, const cJSON replacement) in overwrite_item()
804 memcpy(root, &replacement, sizeof(cJSON)); in overwrite_item()
807 static int apply_patch(cJSON *object, const cJSON *patch, const cJSON_bool case_sensitive) in apply_patch()
809 cJSON *path = NULL; in apply_patch()
810 cJSON *value = NULL; in apply_patch()
811 cJSON *parent = NULL; in apply_patch()
843 static const cJSON invalid = { NULL, NULL, NULL, cJSON_Invalid, NULL, 0, 0, NULL}; in apply_patch()
890 cJSON *old_item = detach_path(object, (unsigned char*)path->valuestring, case_sensitive); in apply_patch()
908 cJSON *from = get_object_item(patch, "from", case_sensitive); in apply_patch()
1038 CJSON_PUBLIC(int) cJSONUtils_ApplyPatches(cJSON * const object, const cJSON * const patches) in cJSONUtils_ApplyPatches()
1040 const cJSON *current_patch = NULL; in cJSONUtils_ApplyPatches()
1067 CJSON_PUBLIC(int) cJSONUtils_ApplyPatchesCaseSensitive(cJSON * const object, const cJSON * const pa… in cJSONUtils_ApplyPatchesCaseSensitive()
1069 const cJSON *current_patch = NULL; in cJSONUtils_ApplyPatchesCaseSensitive()
1096 …e_patch(cJSON * const patches, const unsigned char * const operation, const unsigned char * const … in compose_patch()
1098 cJSON *patch = NULL; in compose_patch()
1136 …void) cJSONUtils_AddPatchToArray(cJSON * const array, const char * const operation, const char * c… in cJSONUtils_AddPatchToArray()
1141 static void create_patches(cJSON * const patches, const unsigned char * const path, cJSON * const f… in create_patches()
1173 cJSON *from_child = from->child; in create_patches()
1174 cJSON *to_child = to->child; in create_patches()
1217 cJSON *from_child = NULL; in create_patches()
1218 cJSON *to_child = NULL; in create_patches()
1281 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON * const from, cJSON * const to) in cJSONUtils_GeneratePatches()
1283 cJSON *patches = NULL; in cJSONUtils_GeneratePatches()
1296 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatchesCaseSensitive(cJSON * const from, cJSON * const to) in cJSONUtils_GeneratePatchesCaseSensitive()
1298 cJSON *patches = NULL; in cJSONUtils_GeneratePatchesCaseSensitive()
1311 CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object) in cJSONUtils_SortObject()
1316 CJSON_PUBLIC(void) cJSONUtils_SortObjectCaseSensitive(cJSON * const object) in cJSONUtils_SortObjectCaseSensitive()
1321 static cJSON *merge_patch(cJSON *target, const cJSON * const patch, const cJSON_bool case_sensitive) in merge_patch()
1323 cJSON *patch_child = NULL; in merge_patch()
1355 cJSON *replace_me = NULL; in merge_patch()
1356 cJSON *replacement = NULL; in merge_patch()
1380 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatch(cJSON *target, const cJSON * const patch) in cJSONUtils_MergePatch()
1385 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatchCaseSensitive(cJSON *target, const cJSON * const patch) in cJSONUtils_MergePatchCaseSensitive()
1390 static cJSON *generate_merge_patch(cJSON * const from, cJSON * const to, const cJSON_bool case_sens… in generate_merge_patch()
1392 cJSON *from_child = NULL; in generate_merge_patch()
1393 cJSON *to_child = NULL; in generate_merge_patch()
1394 cJSON *patch = NULL; in generate_merge_patch()
1472 CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatch(cJSON * const from, cJSON * const to) in cJSONUtils_GenerateMergePatch()
1477 CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatchCaseSensitive(cJSON * const from, cJSON * const … in cJSONUtils_GenerateMergePatchCaseSensitive()