Home
last modified time | relevance | path

Searched refs:valuestring (Results 1 - 15 of 15) sorted by relevance

/third_party/cJSON/
H A DcJSON_Utils.c643 if (strcmp(a->valuestring, b->valuestring) != 0) in compare_json()
767 if (strcmp(operation->valuestring, "add") == 0) in decode_patch_operation()
772 if (strcmp(operation->valuestring, "remove") == 0) in decode_patch_operation()
777 if (strcmp(operation->valuestring, "replace") == 0) in decode_patch_operation()
782 if (strcmp(operation->valuestring, "move") == 0) in decode_patch_operation()
787 if (strcmp(operation->valuestring, "copy") == 0) in decode_patch_operation()
792 if (strcmp(operation->valuestring, "test") == 0) in decode_patch_operation()
812 if (root->valuestring != NULL) in overwrite_item()
814 cJSON_free(root->valuestring); in overwrite_item()
[all...]
H A DcJSON.c106 return item->valuestring; in cJSON_GetStringValue()
275 if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) in cJSON_Delete()
277 global_hooks.deallocate(item->valuestring); in cJSON_Delete()
278 item->valuestring = NULL; in cJSON_Delete()
561 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring() argument
564 /* if object's type is not cJSON_String or is cJSON_IsReference, it should not set valuestring */ in cJSON_SetValuestring()
570 if (object->valuestring == NULL || valuestring == NULL) in cJSON_SetValuestring()
574 if (strlen(valuestring) <= strlen(object->valuestring)) in cJSON_SetValuestring()
[all...]
H A DcJSON.h123 char *valuestring; member
228 /* Create a string where valuestring references a string so
307 /* Change the valuestring of a cJSON_String object, only takes effect when type of object is cJSON_String */
308 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring);
/third_party/cJSON/tests/
H A Dcommon.h34 if ((item->valuestring != NULL) && !(item->type & cJSON_IsReference)) in reset()
36 global_hooks.deallocate(item->valuestring); in reset()
106 #define assert_has_valuestring(item) TEST_ASSERT_NOT_NULL_MESSAGE(item->valuestring, "Valuestring is NULL.")
107 #define assert_has_no_valuestring(item) TEST_ASSERT_NULL_MESSAGE(item->valuestring, "Valuestring is not NULL.")
H A Dparse_string.c55 TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, item->valuestring, "The parsed result isn't as expected."); in assert_parse_string()
56 global_hooks.deallocate(item->valuestring); in assert_parse_string()
57 item->valuestring = NULL; in assert_parse_string()
H A Dmisc_tests.c376 free(corruptedString->valuestring); in cjson_functions_should_not_crash_with_null_pointers()
377 corruptedString->valuestring = NULL; in cjson_functions_should_not_crash_with_null_pointers()
513 TEST_ASSERT_TRUE(cJSON_GetStringValue(string) == string->valuestring); in cjson_get_string_value_should_get_a_string()
539 TEST_ASSERT_TRUE(string_reference->valuestring == string); in cjson_create_string_reference_should_create_a_string_reference()
654 const char *stringvalue = "valuestring could be changed safely"; in cjson_set_valuestring_to_object_should_not_leak_memory()
656 const char *short_valuestring = "shorter valuestring"; in cjson_set_valuestring_to_object_should_not_leak_memory()
657 const char *long_valuestring = "new valuestring which much longer than previous should be changed safely"; in cjson_set_valuestring_to_object_should_not_leak_memory()
666 ptr1 = item1->valuestring; in cjson_set_valuestring_to_object_should_not_leak_memory()
669 TEST_ASSERT_EQUAL_PTR_MESSAGE(ptr1, return_value, "new valuestring shorter than old should not reallocate memory"); in cjson_set_valuestring_to_object_should_not_leak_memory()
670 TEST_ASSERT_EQUAL_STRING(short_valuestring, cJSON_GetObjectItem(root, "one")->valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
[all...]
H A Dreadme_examples.c188 if (cJSON_IsString(name) && (name->valuestring != NULL)) in supports_full_hd()
190 printf("Checking monitor \"%s\"\n", name->valuestring); in supports_full_hd()
H A Dcjson_add.c331 TEST_ASSERT_EQUAL_STRING(string->valuestring, "Hello World!"); in cjson_add_string_should_add_string()
368 TEST_ASSERT_EQUAL_STRING(raw->valuestring, "{}"); in cjson_add_raw_should_add_raw()
H A Dparse_array.c88 TEST_ASSERT_EQUAL_STRING("hello!", item->child->valuestring); in parse_array_should_parse_arrays_with_one_element()
H A Djson_patch_tests.c65 printf("Testing \"%s\"\n", comment->valuestring); in test_apply_patch()
/third_party/vulkan-loader/loader/
H A DcJSON.c87 if (!(c->type & cJSON_IsReference) && c->valuestring) cJSON_Free(c->pAllocator, c->valuestring); in loader_cJSON_Delete()
342 item->valuestring = out; in parse_string()
443 static char *print_string(cJSON *item, printbuffer *p) { return print_string_ptr(item->pAllocator, item->valuestring, p); } in print_string()
751 child->string = child->valuestring; in parse_object()
752 child->valuestring = 0; in parse_object()
772 child->string = child->valuestring; in parse_object()
773 child->valuestring = 0; in parse_object()
H A DcJSON.h55 char *valuestring; /* The item's string, if type==cJSON_String */ member
H A Dloader.c2441 result = loader_copy_to_new_str(inst, disable_environment->child->valuestring, &(props.disable_env_var.value)); in loader_read_layer_json()
2563 result = loader_copy_to_new_str(inst, enable_environment->child->valuestring, &(props.enable_env_var.value)); in loader_read_layer_json()
/third_party/protobuf/src/google/protobuf/
H A Dtext_format_unittest.cc1528 #define EXPECT_FIELD(name, value, valuestring) \ in TEST_F()
1530 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1534 #define EXPECT_BOOL_FIELD(name, value, valuestring) \ in TEST_F()
1536 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1540 #define EXPECT_FLOAT_FIELD(name, value, valuestring) \ in TEST_F()
1542 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1546 #define EXPECT_DOUBLE_FIELD(name, value, valuestring) \ in TEST_F()
1548 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1552 #define EXPECT_INVALID(name, valuestring) \ in TEST_F()
1554 valuestring, in TEST_F()
[all...]
/third_party/musl/Benchmark/musl/
H A Dbenchmark_framework.cpp348 fnName = std::string(obj->valuestring); in RegisterJsonBenchmarks()
358 jsonArgs = std::string(obj->valuestring); in RegisterJsonBenchmarks()

Completed in 21 milliseconds