Searched refs:cJSON_strdup (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/external/rk_pcba_test/cJSON/ |
| H A D | cJSON.c | 49 static char* cJSON_strdup(const char* str) in cJSON_strdup() function 219 if (!str) return cJSON_strdup(""); in print_string_ptr() 308 case cJSON_NULL: out=cJSON_strdup("null"); break; in print_value() 309 case cJSON_False: out=cJSON_strdup("false");break; in print_value() 310 case cJSON_True: out=cJSON_strdup("true"); break; in print_value() 521 …item) return; if (item->string) cJSON_free(item->string);item->string=cJSON_strdup(string);cJSON_A… in cJSON_AddItemToObject() 535 …JSON_strcasecmp(c->string,string))i++,c=c->next;if(c){newitem->string=cJSON_strdup(string);cJSON_R… in cJSON_ReplaceItemInObject() 543 …m=cJSON_New_Item();if(item){item->type=cJSON_String;item->valuestring=cJSON_strdup(string);}return… in cJSON_CreateString() 564 …if (item->valuestring) {newitem->valuestring=cJSON_strdup(item->valuestring); if (!newitem->values… in cJSON_Duplicate() 565 …if (item->string) {newitem->string=cJSON_strdup(item->string); if (!newitem->string) {cJSON_De… in cJSON_Duplicate()
|
| /OK3568_Linux_fs/app/lvgl_demo/cJSON/ |
| H A D | cJSON.c | 188 static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks) in cJSON_strdup() function 413 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks); in cJSON_SetValuestring() 2024 new_key = (char*)cJSON_strdup((const unsigned char*)string, hooks); in add_item_to_object() 2359 replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in replace_item_in_object() 2452 item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in cJSON_CreateString() 2502 item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks); in cJSON_CreateRaw() 2721 … newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks); in cJSON_Duplicate() 2729 …newitem->string = (item->type&cJSON_StringIsConst) ? item->string : (char*)cJSON_strdup((unsigned … in cJSON_Duplicate()
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/iq_parser_v2/j2s/ |
| H A D | cJSON.cpp | 190 static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks) in cJSON_strdup() function 415 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks); in cJSON_SetValuestring() 2033 new_key = (char*)cJSON_strdup((const unsigned char*)string, hooks); in add_item_to_object() 2368 replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in replace_item_in_object() 2461 item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in cJSON_CreateString() 2511 item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks); in cJSON_CreateRaw() 2734 … newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks); in cJSON_Duplicate() 2742 …newitem->string = (item->type&cJSON_StringIsConst) ? item->string : (char*)cJSON_strdup((unsigned … in cJSON_Duplicate()
|