| 2400 | } |
| 2401 | |
| 2402 | CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) |
| 2403 | { |
| 2404 | if (which < 0) |
| 2405 | { |
| 2406 | return false; |
| 2407 | } |
| 2408 | |
| 2409 | return cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem); |
| 2410 | } |
| 2411 | |
| 2412 | static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive) |
| 2413 | { |
searching dependent graphs…