Home
last modified time | relevance | path

Searched refs:valuestring (Results 1 – 13 of 13) sorted by relevance

/third_party/cJSON/tests/
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 i…
107 #define assert_has_no_valuestring(item) TEST_ASSERT_NULL_MESSAGE(item->valuestring, "Valuestring is…
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()
Dmisc_tests.c483 TEST_ASSERT_TRUE(cJSON_GetStringValue(string) == string->valuestring); in cjson_get_string_value_should_get_a_string()
508 TEST_ASSERT_TRUE(string_reference->valuestring == string); in cjson_create_string_reference_should_create_a_string_reference()
633 ptr1 = item1->valuestring; in cjson_set_valuestring_to_object_should_not_leak_memory()
637 TEST_ASSERT_EQUAL_STRING(short_valuestring, cJSON_GetObjectItem(root, "one")->valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
640 ptr1 = item1->valuestring; in cjson_set_valuestring_to_object_should_not_leak_memory()
644 TEST_ASSERT_EQUAL_STRING(long_valuestring, cJSON_GetObjectItem(root, "one")->valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
648 TEST_ASSERT_EQUAL_STRING(reference_valuestring, cJSON_GetObjectItem(root, "two")->valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
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()
Dcjson_add.c290 TEST_ASSERT_EQUAL_STRING(string->valuestring, "Hello World!"); in cjson_add_string_should_add_string()
327 TEST_ASSERT_EQUAL_STRING(raw->valuestring, "{}"); in cjson_add_raw_should_add_raw()
Dparse_array.c88 TEST_ASSERT_EQUAL_STRING("hello!", item->child->valuestring); in parse_array_should_parse_arrays_with_one_element()
Djson_patch_tests.c65 printf("Testing \"%s\"\n", comment->valuestring); in test_apply_patch()
/third_party/cJSON/
DcJSON_Utils.c626 if (strcmp(a->valuestring, b->valuestring) != 0) in compare_json()
750 if (strcmp(operation->valuestring, "add") == 0) in decode_patch_operation()
755 if (strcmp(operation->valuestring, "remove") == 0) in decode_patch_operation()
760 if (strcmp(operation->valuestring, "replace") == 0) in decode_patch_operation()
765 if (strcmp(operation->valuestring, "move") == 0) in decode_patch_operation()
770 if (strcmp(operation->valuestring, "copy") == 0) in decode_patch_operation()
775 if (strcmp(operation->valuestring, "test") == 0) in decode_patch_operation()
795 if (root->valuestring != NULL) in overwrite_item()
797 cJSON_free(root->valuestring); in overwrite_item()
834 …status = !compare_json(get_item_from_pointer(object, path->valuestring, case_sensitive), get_objec… in apply_patch()
[all …]
DcJSON.c106 return item->valuestring; in cJSON_GetStringValue()
263 if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) in cJSON_Delete()
265 global_hooks.deallocate(item->valuestring); in cJSON_Delete()
400 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring() argument
408 if (strlen(valuestring) <= strlen(object->valuestring)) in cJSON_SetValuestring()
410 strcpy(object->valuestring, valuestring); in cJSON_SetValuestring()
411 return object->valuestring; in cJSON_SetValuestring()
413 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks); in cJSON_SetValuestring()
418 if (object->valuestring != NULL) in cJSON_SetValuestring()
420 cJSON_free(object->valuestring); in cJSON_SetValuestring()
[all …]
DREADME.md180 char *valuestring;
199 …: Represents a string value. It is stored in the form of a zero terminated string in `valuestring`.
202 …nd of JSON that is stored as a zero terminated array of characters in `valuestring`. This can be u…
206valuestring` is not owned by this item, it is only a reference. So `cJSON_Delete` and other functi…
215 …etValuestring` to change a `cJSON_String`'s `valuestring`, and you needn't to free the previous `v…
222 …reateStringReference` (directly points to the string. This means that `valuestring` won't be delet…
229 … This means that `cJSON_Delete` will not delete that items `child` or `valuestring` properties, so…
247 … This means that `cJSON_Delete` will not delete that items `child` or `valuestring` properties, so…
491 if (cJSON_IsString(name) && (name->valuestring != NULL))
493 printf("Checking monitor \"%s\"\n", name->valuestring);
DcJSON.h115 char *valuestring; member
280 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring);
DCHANGELOG.md27 * add new API of cJSON_SetValuestring, for changing the valuestring safely. See [#451](https://gith…
/third_party/protobuf/src/google/protobuf/
Dtext_format_unittest.cc1528 #define EXPECT_FIELD(name, value, valuestring) \ in TEST_F() argument
1530 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1534 #define EXPECT_BOOL_FIELD(name, value, valuestring) \ in TEST_F() argument
1536 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1540 #define EXPECT_FLOAT_FIELD(name, value, valuestring) \ in TEST_F() argument
1542 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1546 #define EXPECT_DOUBLE_FIELD(name, value, valuestring) \ in TEST_F() argument
1548 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1552 #define EXPECT_INVALID(name, valuestring) \ in TEST_F() argument
1554 valuestring, d->FindFieldByName("optional_" #name), message.get())); in TEST_F()