Lines Matching refs:cJSON

73 static cJSON *cJSON_New_Item(void)  in cJSON_New_Item()
75 cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON)); in cJSON_New_Item()
76 if (node) memset(node,0,sizeof(cJSON)); in cJSON_New_Item()
81 void cJSON_Delete(cJSON *c) in cJSON_Delete()
83 cJSON *next; in cJSON_Delete()
96 static const char *parse_number(cJSON *item,const char *num) in parse_number()
118 static char *print_number(cJSON *item) in print_number()
155 static const char *parse_string(cJSON *item,const char *str) in parse_string()
250 static char *print_string(cJSON *item) {return print_string_ptr(item->valuestring);} in print_string()
253 static const char *parse_value(cJSON *item,const char *value);
254 static char *print_value(cJSON *item,int depth,int fmt);
255 static const char *parse_array(cJSON *item,const char *value);
256 static char *print_array(cJSON *item,int depth,int fmt);
257 static const char *parse_object(cJSON *item,const char *value);
258 static char *print_object(cJSON *item,int depth,int fmt);
264 cJSON *cJSON_ParseWithOpts(const char *value,const char **return_parse_end,int require_null_termina… in cJSON_ParseWithOpts()
267 cJSON *c=cJSON_New_Item(); in cJSON_ParseWithOpts()
280 cJSON *cJSON_Parse(const char *value) {return cJSON_ParseWithOpts(value,0,0);} in cJSON_Parse()
283 char *cJSON_Print(cJSON *item) {return print_value(item,0,1);} in cJSON_Print()
284 char *cJSON_PrintUnformatted(cJSON *item) {return print_value(item,0,0);} in cJSON_PrintUnformatted()
287 static const char *parse_value(cJSON *item,const char *value) in parse_value()
302 static char *print_value(cJSON *item,int depth,int fmt) in print_value()
320 static const char *parse_array(cJSON *item,const char *value) in parse_array()
322 cJSON *child; in parse_array()
336 cJSON *new_item; in parse_array()
348 static char *print_array(cJSON *item,int depth,int fmt) in print_array()
352 cJSON *child=item->child; in print_array()
406 static const char *parse_object(cJSON *item,const char *value) in parse_object()
408 cJSON *child; in parse_object()
426 cJSON *new_item; in parse_object()
442 static char *print_object(cJSON *item,int depth,int fmt) in print_object()
446 cJSON *child=item->child; in print_object()
510 int cJSON_GetArraySize(cJSON *array) {cJSON *c=array->child;int i=0;while(c)i++,c=c->next;… in cJSON_GetArraySize()
511 cJSON *cJSON_GetArrayItem(cJSON *array,int item) {cJSON *c=array->child; while (c && item>0) it… in cJSON_GetArrayItem()
512 cJSON *cJSON_GetObjectItem(cJSON *object,const char *string) {cJSON *c=object->child; while (c && c… in cJSON_GetObjectItem()
515 static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;} in suffix_object()
517 static cJSON *create_reference(cJSON *item) {cJSON *ref=cJSON_New_Item();if (!ref) return 0;memcpy(… in create_reference()
520 void cJSON_AddItemToArray(cJSON *array, cJSON *item) {cJSON *c=array->child;if (!item) retur… in cJSON_AddItemToArray()
521 void cJSON_AddItemToObject(cJSON *object,const char *string,cJSON *item) {if (!item) return; if (… in cJSON_AddItemToObject()
522 void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) {cJSON_AddItemToArray(array,crea… in cJSON_AddItemReferenceToArray()
523 void cJSON_AddItemReferenceToObject(cJSON *object,const char *string,cJSON *item) {cJSON_AddItemToO… in cJSON_AddItemReferenceToObject()
525 cJSON *cJSON_DetachItemFromArray(cJSON *array,int which) {cJSON *c=array->child;while (c && which… in cJSON_DetachItemFromArray()
527 void cJSON_DeleteItemFromArray(cJSON *array,int which) {cJSON_Delete(cJSON_DetachItemFromArray(… in cJSON_DeleteItemFromArray()
528 cJSON *cJSON_DetachItemFromObject(cJSON *object,const char *string) {int i=0;cJSON *c=object->child… in cJSON_DetachItemFromObject()
529 void cJSON_DeleteItemFromObject(cJSON *object,const char *string) {cJSON_Delete(cJSON_DetachItemF… in cJSON_DeleteItemFromObject()
532 void cJSON_ReplaceItemInArray(cJSON *array,int which,cJSON *newitem) {cJSON *c=array->child;whil… in cJSON_ReplaceItemInArray()
535 void cJSON_ReplaceItemInObject(cJSON *object,const char *string,cJSON *newitem){int i=0;cJSON *c=… in cJSON_ReplaceItemInObject()
538 cJSON *cJSON_CreateNull(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_NULL;retur… in cJSON_CreateNull()
539 cJSON *cJSON_CreateTrue(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_True;retur… in cJSON_CreateTrue()
540 cJSON *cJSON_CreateFalse(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_False;ret… in cJSON_CreateFalse()
541 cJSON *cJSON_CreateBool(int b) {cJSON *item=cJSON_New_Item();if(item)item->type=b?cJSON_True:cJ… in cJSON_CreateBool()
542 cJSON *cJSON_CreateNumber(double num) {cJSON *item=cJSON_New_Item();if(item){item->type=cJSON_Num… in cJSON_CreateNumber()
543 cJSON *cJSON_CreateString(const char *string) {cJSON *item=cJSON_New_Item();if(item){item->type=cJS… in cJSON_CreateString()
544 cJSON *cJSON_CreateArray(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_Array;ret… in cJSON_CreateArray()
545 cJSON *cJSON_CreateObject(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_Object;r… in cJSON_CreateObject()
548 cJSON *cJSON_CreateIntArray(const int *numbers,int count) {int i;cJSON *n=0,*p=0,*a=cJSON_CreateAr… in cJSON_CreateIntArray()
549 cJSON *cJSON_CreateFloatArray(const float *numbers,int count) {int i;cJSON *n=0,*p=0,*a=cJSON_Creat… in cJSON_CreateFloatArray()
550 cJSON *cJSON_CreateDoubleArray(const double *numbers,int count) {int i;cJSON *n=0,*p=0,*a=cJSON_Cre… in cJSON_CreateDoubleArray()
551 cJSON *cJSON_CreateStringArray(const char **strings,int count) {int i;cJSON *n=0,*p=0,*a=cJSON_Crea… in cJSON_CreateStringArray()
554 cJSON *cJSON_Duplicate(cJSON *item,int recurse) in cJSON_Duplicate()
556 cJSON *newitem,*cptr,*nptr=0,*newchild; in cJSON_Duplicate()