Lines Matching refs:target
198 CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * const target)
203 if ((object == NULL) || (target == NULL))
208 if (object == target)
217 unsigned char *target_pointer = (unsigned char*)cJSONUtils_FindPointerFromObjectTo(current_child, target);
218 /* found the target? */
1338 static cJSON *merge_patch(cJSON *target, const cJSON * const patch, const cJSON_bool case_sensitive)
1345 cJSON_Delete(target);
1349 if (!cJSON_IsObject(target))
1351 cJSON_Delete(target);
1352 target = cJSON_CreateObject();
1363 cJSON_DeleteItemFromObjectCaseSensitive(target, patch_child->string);
1367 cJSON_DeleteItemFromObject(target, patch_child->string);
1377 replace_me = cJSON_DetachItemFromObjectCaseSensitive(target, patch_child->string);
1381 replace_me = cJSON_DetachItemFromObject(target, patch_child->string);
1387 cJSON_Delete(target);
1391 cJSON_AddItemToObject(target, patch_child->string, replacement);
1395 return target;
1398 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatch(cJSON *target, const cJSON * const patch)
1400 return merge_patch(target, patch, false);
1403 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatchCaseSensitive(cJSON *target, const cJSON * const patch)
1405 return merge_patch(target, patch, true);