• Home
  • Raw
  • Download

Lines Matching refs:case_sensitive

83 …trings(const unsigned char *string1, const unsigned char *string2, const cJSON_bool case_sensitive)  in compare_strings()  argument
95 if (case_sensitive) in compare_strings()
120 …_pointers(const unsigned char *name, const unsigned char *pointer, const cJSON_bool case_sensitive) in compare_pointers() argument
142 …else if ((!case_sensitive && (tolower(*name) != tolower(*pointer))) || (case_sensitive && (*name !… in compare_pointers()
301 …*get_item_from_pointer(cJSON * const object, const char * pointer, const cJSON_bool case_sensitive) in get_item_from_pointer() argument
328 …e_pointers((unsigned char*)current_element->string, (const unsigned char*)pointer, case_sensitive)) in get_item_from_pointer()
430 static cJSON *detach_path(cJSON *object, const unsigned char *path, const cJSON_bool case_sensitive) in detach_path() argument
452 parent = get_item_from_pointer(object, (char*)parent_pointer, case_sensitive); in detach_path()
484 static cJSON *sort_list(cJSON *list, const cJSON_bool case_sensitive) in sort_list() argument
498 …igned char*)current_item->string, (unsigned char*)current_item->next->string, case_sensitive) < 0)) in sort_list()
530 first = sort_list(first, case_sensitive); in sort_list()
531 second = sort_list(second, case_sensitive); in sort_list()
538 …compare_strings((unsigned char*)first->string, (unsigned char*)second->string, case_sensitive) < 0) in sort_list()
595 static void sort_object(cJSON * const object, const cJSON_bool case_sensitive) in sort_object() argument
601 object->child = sort_list(object->child, case_sensitive); in sort_object()
604 static cJSON_bool compare_json(cJSON *a, cJSON *b, const cJSON_bool case_sensitive) in compare_json() argument
638 cJSON_bool identical = compare_json(a, b, case_sensitive); in compare_json()
656 sort_object(a, case_sensitive); in compare_json()
657 sort_object(b, case_sensitive); in compare_json()
662 … if (compare_strings((unsigned char*)a->string, (unsigned char*)b->string, case_sensitive)) in compare_json()
667 identical = compare_json(a, b, case_sensitive); in compare_json()
730 …SON *get_object_item(const cJSON * const object, const char* name, const cJSON_bool case_sensitive) in get_object_item() argument
732 if (case_sensitive) in get_object_item()
742 … patch_operation decode_patch_operation(const cJSON * const patch, const cJSON_bool case_sensitive) in decode_patch_operation() argument
744 cJSON *operation = get_object_item(patch, "op", case_sensitive); in decode_patch_operation()
807 static int apply_patch(cJSON *object, const cJSON *patch, const cJSON_bool case_sensitive) in apply_patch() argument
817 path = get_object_item(patch, "path", case_sensitive); in apply_patch()
825 opcode = decode_patch_operation(patch, case_sensitive); in apply_patch()
834 …_pointer(object, path->valuestring, case_sensitive), get_object_item(patch, "value", case_sensitiv… in apply_patch()
853 value = get_object_item(patch, "value", case_sensitive); 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()
918 value = detach_path(object, (unsigned char*)from->valuestring, case_sensitive); in apply_patch()
922 value = get_item_from_pointer(object, from->valuestring, case_sensitive); in apply_patch()
943 value = get_object_item(patch, "value", case_sensitive); in apply_patch()
971 parent = get_item_from_pointer(object, (char*)parent_pointer, case_sensitive); in apply_patch()
1007 if (case_sensitive) in apply_patch()
1141 … unsigned char * const path, cJSON * const from, cJSON * const to, const cJSON_bool case_sensitive) in create_patches() argument
1189 create_patches(patches, new_path, from_child, to_child, case_sensitive); in create_patches()
1219 sort_object(from, case_sensitive); in create_patches()
1220 sort_object(to, case_sensitive); in create_patches()
1238 …pare_strings((unsigned char*)from_child->string, (unsigned char*)to_child->string, case_sensitive); in create_patches()
1252 create_patches(patches, new_path, from_child, to_child, case_sensitive); in create_patches()
1321 static cJSON *merge_patch(cJSON *target, const cJSON * const patch, const cJSON_bool case_sensitive) in merge_patch() argument
1344 if (case_sensitive) in merge_patch()
1358 if (case_sensitive) in merge_patch()
1367 replacement = merge_patch(replace_me, patch_child, case_sensitive); in merge_patch()
1391 … cJSON *generate_merge_patch(cJSON * const from, cJSON * const to, const cJSON_bool case_sensitive) in generate_merge_patch() argument
1406 sort_object(from, case_sensitive); in generate_merge_patch()
1407 sort_object(to, case_sensitive); in generate_merge_patch()
1452 if (!compare_json(from_child, to_child, case_sensitive)) in generate_merge_patch()