Searched refs:cJSON_GetObjectItem (Results 1 - 7 of 7) sorted by relevance
/third_party/cJSON/tests/ |
H A 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")->child); in json_pointer_tests() 74 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo/0"), cJSON_GetObjectItem(root, "foo")->child); 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(roo in json_pointer_tests() [all...] |
H A D | misc_int64_tests.c | 44 found = cJSON_GetObjectItem(NULL, "test"); in cjson_get_object_item_should_get_object_items_with_int64() 47 found = cJSON_GetObjectItem(item, NULL); in cjson_get_object_item_should_get_object_items_with_int64() 50 found = cJSON_GetObjectItem(item, "one"); in cjson_get_object_item_should_get_object_items_with_int64() 55 found = cJSON_GetObjectItem(item, "tWo"); in cjson_get_object_item_should_get_object_items_with_int64() 60 found = cJSON_GetObjectItem(item, "three"); in cjson_get_object_item_should_get_object_items_with_int64() 65 found = cJSON_GetObjectItem(item, "four"); in cjson_get_object_item_should_get_object_items_with_int64()
|
H A D | misc_tests.c | 73 found = cJSON_GetObjectItem(NULL, "test"); in cjson_get_object_item_should_get_object_items() 76 found = cJSON_GetObjectItem(item, NULL); in cjson_get_object_item_should_get_object_items() 79 found = cJSON_GetObjectItem(item, "one"); in cjson_get_object_item_should_get_object_items() 83 found = cJSON_GetObjectItem(item, "tWo"); in cjson_get_object_item_should_get_object_items() 87 found = cJSON_GetObjectItem(item, "three"); in cjson_get_object_item_should_get_object_items() 91 found = cJSON_GetObjectItem(item, "four"); in cjson_get_object_item_should_get_object_items() 134 found = cJSON_GetObjectItem(array, "name"); in cjson_get_object_item_should_not_crash_with_array() 390 TEST_ASSERT_NULL(cJSON_GetObjectItem(NULL, "item")); in cjson_functions_should_not_crash_with_null_pointers() 391 TEST_ASSERT_NULL(cJSON_GetObjectItem(item, NULL)); in cjson_functions_should_not_crash_with_null_pointers() 667 return_value = cJSON_SetValuestring(cJSON_GetObjectItem(roo in cjson_set_valuestring_to_object_should_not_leak_memory() [all...] |
/third_party/musl/Benchmark/musl/ |
H A D | benchmark_framework.cpp | 333 cJSON *item = cJSON_GetObjectItem(json, "InterfaceUsecases"); in RegisterJsonBenchmarks() 345 cJSON *obj = cJSON_GetObjectItem(arrayItem, "name"); in RegisterJsonBenchmarks() 353 obj = cJSON_GetObjectItem(arrayItem, "args"); in RegisterJsonBenchmarks() 365 obj = cJSON_GetObjectItem(arrayItem, "iterations"); in RegisterJsonBenchmarks() 370 obj = cJSON_GetObjectItem(arrayItem, "cpu"); in RegisterJsonBenchmarks()
|
/third_party/cJSON/ |
H A D | cJSON.h | 185 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string);
|
H A D | cJSON.c | 2160 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string) in cJSON_GetObjectItem() function 2172 return cJSON_GetObjectItem(object, string) ? 1 : 0; in CJSON_PUBLIC() 2502 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
|
H A D | cJSON_Utils.c | 754 return cJSON_GetObjectItem(object, name); in get_object_item()
|
Completed in 12 milliseconds