Lines Matching refs:replacement

2170 …ON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)  in cJSON_ReplaceItemViaPointer()  argument
2172 if ((parent == NULL) || (replacement == NULL) || (item == NULL)) in cJSON_ReplaceItemViaPointer()
2177 if (replacement == item) in cJSON_ReplaceItemViaPointer()
2182 replacement->next = item->next; in cJSON_ReplaceItemViaPointer()
2183 replacement->prev = item->prev; in cJSON_ReplaceItemViaPointer()
2185 if (replacement->next != NULL) in cJSON_ReplaceItemViaPointer()
2187 replacement->next->prev = replacement; in cJSON_ReplaceItemViaPointer()
2189 if (replacement->prev != NULL) in cJSON_ReplaceItemViaPointer()
2191 replacement->prev->next = replacement; in cJSON_ReplaceItemViaPointer()
2195 parent->child = replacement; in cJSON_ReplaceItemViaPointer()
2215 static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJS… in replace_item_in_object() argument
2217 if ((replacement == NULL) || (string == NULL)) in replace_item_in_object()
2223 if (!(replacement->type & cJSON_StringIsConst) && (replacement->string != NULL)) in replace_item_in_object()
2225 cJSON_free(replacement->string); in replace_item_in_object()
2227 replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in replace_item_in_object()
2228 replacement->type &= ~cJSON_StringIsConst; in replace_item_in_object()
2230 … cJSON_ReplaceItemViaPointer(object, get_object_item(object, string, case_sensitive), replacement); in replace_item_in_object()