Lines Matching refs:replacement

2292 …ON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)  in cJSON_ReplaceItemViaPointer()  argument
2294 if ((parent == NULL) || (replacement == NULL) || (item == NULL)) in cJSON_ReplaceItemViaPointer()
2299 if (replacement == item) in cJSON_ReplaceItemViaPointer()
2304 replacement->next = item->next; in cJSON_ReplaceItemViaPointer()
2305 replacement->prev = item->prev; in cJSON_ReplaceItemViaPointer()
2307 if (replacement->next != NULL) in cJSON_ReplaceItemViaPointer()
2309 replacement->next->prev = replacement; in cJSON_ReplaceItemViaPointer()
2313 parent->child = replacement; in cJSON_ReplaceItemViaPointer()
2320 if (replacement->prev != NULL) in cJSON_ReplaceItemViaPointer()
2322 replacement->prev->next = replacement; in cJSON_ReplaceItemViaPointer()
2343 static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJS… in replace_item_in_object() argument
2345 if ((replacement == NULL) || (string == NULL)) in replace_item_in_object()
2351 if (!(replacement->type & cJSON_StringIsConst) && (replacement->string != NULL)) in replace_item_in_object()
2353 cJSON_free(replacement->string); in replace_item_in_object()
2355 replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in replace_item_in_object()
2356 replacement->type &= ~cJSON_StringIsConst; in replace_item_in_object()
2358 … cJSON_ReplaceItemViaPointer(object, get_object_item(object, string, case_sensitive), replacement); in replace_item_in_object()