MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

libapp2sys/src/main/cpp/cjson/cJSON.c:2213–2221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2211}
2212
2213CJSON_PUBLIC(void) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
2214{
2215 if (which < 0)
2216 {
2217 return;
2218 }
2219
2220 cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem);
2221}
2222
2223static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
2224{

Callers

nothing calls this directly

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected