MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / cJSON_DetachItemFromObject

Function cJSON_DetachItemFromObject

common/map_sdk/transmission/src/cJSON.cpp:735–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734void cJSON_DeleteItemFromArray(cJSON *array, int which) { cJSON_Delete(cJSON_DetachItemFromArray(array, which)); }
735cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string) {
736 int i = 0;
737 cJSON *c = object->child;
738 while (c && cJSON_strcasecmp(c->string, string)) i++, c = c->next;
739 if (c) return cJSON_DetachItemFromArray(object, i);
740 return 0;
741}
742void cJSON_DeleteItemFromObject(cJSON *object, const char *string) {
743 cJSON_Delete(cJSON_DetachItemFromObject(object, string));
744}

Callers 1

Calls 2

cJSON_strcasecmpFunction · 0.85

Tested by

no test coverage detected