Searched refs:cJSON_GetObjectItem (Results 1 – 9 of 9) sorted by relevance
/third_party/cJSON/tests/ |
D | old_utils_tests.c | 72 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo"), cJSON_GetObjectItem(root, "foo")); in json_pointer_tests() 73 …TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo/0"), cJSON_GetObjectItem(root, "foo")->chi… in json_pointer_tests() 74 …TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo/0"), cJSON_GetObjectItem(root, "foo")->chi… in json_pointer_tests() 75 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/"), cJSON_GetObjectItem(root, "")); in json_pointer_tests() 76 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/a~1b"), cJSON_GetObjectItem(root, "a/b")); in json_pointer_tests() 77 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c%d"), cJSON_GetObjectItem(root, "c%d")); in json_pointer_tests() 78 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c^f"), cJSON_GetObjectItem(root, "c^f")); in json_pointer_tests() 79 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c|f"), cJSON_GetObjectItem(root, "c|f")); in json_pointer_tests() 80 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/i\\j"), cJSON_GetObjectItem(root, "i\\j")); in json_pointer_tests() 81 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/k\"l"), cJSON_GetObjectItem(root, "k\"l")); in json_pointer_tests() [all …]
|
D | misc_tests.c | 74 found = cJSON_GetObjectItem(NULL, "test"); in cjson_get_object_item_should_get_object_items() 77 found = cJSON_GetObjectItem(item, NULL); in cjson_get_object_item_should_get_object_items() 81 found = cJSON_GetObjectItem(item, "one"); in cjson_get_object_item_should_get_object_items() 85 found = cJSON_GetObjectItem(item, "tWo"); in cjson_get_object_item_should_get_object_items() 89 found = cJSON_GetObjectItem(item, "three"); in cjson_get_object_item_should_get_object_items() 93 found = cJSON_GetObjectItem(item, "four"); in cjson_get_object_item_should_get_object_items() 135 found = cJSON_GetObjectItem(array, "name"); in cjson_get_object_item_should_not_crash_with_array() 381 TEST_ASSERT_NULL(cJSON_GetObjectItem(NULL, "item")); in cjson_functions_should_not_crash_with_null_pointers() 382 TEST_ASSERT_NULL(cJSON_GetObjectItem(item, NULL)); in cjson_functions_should_not_crash_with_null_pointers() 655 return_value = cJSON_SetValuestring(cJSON_GetObjectItem(root, "one"), short_valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory() [all …]
|
/third_party/musl/Benchmark/musl/ |
D | benchmark_framework.cpp | 296 cJSON *item = cJSON_GetObjectItem(json, "InterfaceUsecases"); in RegisterJsonBenchmarks() 308 cJSON *obj = cJSON_GetObjectItem(arrayItem, "name"); in RegisterJsonBenchmarks() 316 obj = cJSON_GetObjectItem(arrayItem, "args"); in RegisterJsonBenchmarks() 328 obj = cJSON_GetObjectItem(arrayItem, "iterations"); in RegisterJsonBenchmarks() 333 obj = cJSON_GetObjectItem(arrayItem, "cpu"); in RegisterJsonBenchmarks()
|
/third_party/vulkan-loader/loader/ |
D | loader.c | 1910 var = cJSON_GetObjectItem(node, #var); \ in loader_read_layer_json() 1921 item = cJSON_GetObjectItem(node, #var); \ in loader_read_layer_json() 1987 expiration = cJSON_GetObjectItem(layer_node, "expiration_date"); in loader_read_layer_json() 2044 library_path = cJSON_GetObjectItem(layer_node, "library_path"); in loader_read_layer_json() 2045 component_layers = cJSON_GetObjectItem(layer_node, "component_layers"); in loader_read_layer_json() 2130 blacklisted_layers = cJSON_GetObjectItem(layer_node, "blacklisted_layers"); in loader_read_layer_json() 2168 override_paths = cJSON_GetObjectItem(layer_node, "override_paths"); in loader_read_layer_json() 2248 { var = cJSON_GetObjectItem(node, #var); } in loader_read_layer_json() 2251 item = cJSON_GetObjectItem(node, #var); \ in loader_read_layer_json() 2409 cJSON *pre_instance = cJSON_GetObjectItem(layer_node, "pre_instance_functions"); in loader_read_layer_json() [all …]
|
D | cJSON.h | 91 cJSON *cJSON_GetObjectItem(cJSON *object, const char *string);
|
D | cJSON.c | 927 cJSON *cJSON_GetObjectItem(cJSON *object, const char *string) { in cJSON_GetObjectItem() function
|
/third_party/cJSON/ |
D | cJSON.h | 172 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string);
|
D | cJSON.c | 1913 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string) in cJSON_GetObjectItem() function 1925 return cJSON_GetObjectItem(object, string) ? 1 : 0; in cJSON_HasObjectItem() 2241 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
|
D | cJSON_Utils.c | 737 return cJSON_GetObjectItem(object, name); in get_object_item()
|