Home
last modified time | relevance | path

Searched refs:cJSON_strdup (Results 1 – 3 of 3) sorted by relevance

/third_party/vulkan-loader/loader/
DcJSON.c51 char *cJSON_strdup(const VkAllocationCallbacks *pAllocator, const char *str) { in cJSON_strdup() function
560 out = cJSON_strdup(item->pAllocator, "null"); in print_value()
563 out = cJSON_strdup(item->pAllocator, "false"); in print_value()
566 out = cJSON_strdup(item->pAllocator, "true"); in print_value()
963 item->string = cJSON_strdup(object->pAllocator, string); in cJSON_AddItemToObject()
1033 newitem->string = cJSON_strdup(object->pAllocator, string); in cJSON_ReplaceItemInObject()
1072 item->valuestring = cJSON_strdup(pAllocator, string); in cJSON_CreateString()
1152 newitem->valuestring = cJSON_strdup(item->pAllocator, item->valuestring); in cJSON_Duplicate()
1159 newitem->string = cJSON_strdup(item->pAllocator, item->string); in cJSON_Duplicate()
/third_party/cJSON/
DcJSON.c188 static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks) in cJSON_strdup() function
418 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks); in cJSON_SetValuestring()
2029 new_key = (char*)cJSON_strdup((const unsigned char*)string, hooks); in add_item_to_object()
2369 replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in replace_item_in_object()
2462 item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in cJSON_CreateString()
2512 item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks); in cJSON_CreateRaw()
2731 … newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks); in cJSON_Duplicate()
2739 …newitem->string = (item->type&cJSON_StringIsConst) ? item->string : (char*)cJSON_strdup((unsigned … in cJSON_Duplicate()
/third_party/cJSON/tests/
Dmisc_tests.c590 char *name = (char*)cJSON_strdup((const unsigned char*)"number", &global_hooks); in cjson_add_item_to_object_should_not_use_after_free_when_string_is_aliased()