MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / cJSON_GetObjectItem

Function cJSON_GetObjectItem

outofcore/src/cJSON.cpp:497–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495int cJSON_GetArraySize(cJSON *array) {cJSON *c=array->child;int i=0;while(c)i++,c=c->next;return i;}
496cJSON *cJSON_GetArrayItem(cJSON *array,int item) {cJSON *c=array->child; while (c && item>0) item--,c=c->next; return c;}
497cJSON *cJSON_GetObjectItem(cJSON *object,const char *string) {cJSON *c=object->child; while (c && cJSON_strcasecmp(c->string,string)) c=c->next; return c;}
498
499/* Utility for array list handling. */
500static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;}

Callers 2

loadMetadataFromDiskMethod · 0.85
loadMetadataFromDiskMethod · 0.85

Calls 1

cJSON_strcasecmpFunction · 0.85

Tested by

no test coverage detected