Add cJSONUtils_GeneratePatchesCaseSensitive

This commit is contained in:
Max Bruckner
2017-04-30 19:59:05 +02:00
parent cd4d7b9b6e
commit 3bf2913634
2 changed files with 9 additions and 0 deletions

View File

@@ -1059,6 +1059,14 @@ CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON * const from, cJSON * con
return patches;
}
CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatchesCaseSensitive(cJSON * const from, cJSON * const to)
{
cJSON *patches = cJSON_CreateArray();
create_patches(patches, (const unsigned char*)"", from, to, true);
return patches;
}
/* sort lists using mergesort */
static cJSON *sort_list(cJSON *list, const cJSON_bool case_sensitive)
{