cJSON
cJSON::string
is only used within cJSON.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
cJSON
cJSON::string
cJSON::string field
Syntax
Show:
Summary
Declaration
from
cJSON.h:122
char
*
string
;
Examples
References
from
examples
Code
Location
Referrer
char
*
string
;
cJSON.h:122
if
(
!
(
item
->
type
&
cJSON_StringIsConst
)
&&
(
item
->
string
!=
NULL
)
)
cJSON.c:268
cJSON_Delete()
global_hooks
.
deallocate
(
item
->
string
)
;
cJSON.c:270
cJSON_Delete()
item
->
string
=
NULL
;
cJSON.c:271
cJSON_Delete()
current_item
->
string
=
current_item
->
valuestring
;
cJSON.c:1685
parse_object()
if
(
!
print_string_ptr
(
(
unsigned
char
*
)
current_item
->
string
,
output_buffer
)
)
cJSON.c:1777
print_object()
while
(
(
current_element
!=
NULL
)
&&
(
current_element
->
string
!=
NULL
)
&&
(
strcmp
(
name
,
current_element
->
string
)
!=
0
)
)
cJSON.c:1910
get_object_item()
while
(
(
current_element
!=
NULL
)
&&
(
case_insensitive_strcmp
(
(
const
unsigned
char
*
)
name
,
(
const
unsigned
char
*
)
(
current_element
->
string
)
)
!=
0
)
)
cJSON.c:1917
get_object_item()
if
(
(
current_element
==
NULL
)
||
(
current_element
->
string
==
NULL
)
)
{
cJSON.c:1923
get_object_item()
reference
->
string
=
NULL
;
cJSON.c:1968
create_reference()
if
(
!
(
item
->
type
&
cJSON_StringIsConst
)
&&
(
item
->
string
!=
NULL
)
)
cJSON.c:2055
add_item_to_object()
hooks
->
deallocate
(
item
->
string
)
;
cJSON.c:2057
add_item_to_object()
item
->
string
=
new_key
;
cJSON.c:2060
add_item_to_object()
if
(
!
(
replacement
->
type
&
cJSON_StringIsConst
)
&&
(
replacement
->
string
!=
NULL
)
)
cJSON.c:2382
replace_item_in_object()
cJSON_free
(
replacement
->
string
)
;
cJSON.c:2384
replace_item_in_object()
replacement
->
string
=
(
char
*
)
cJSON_strdup
(
(
const
unsigned
char
*
)
string
,
&
global_hooks
)
;
cJSON.c:2386
replace_item_in_object()
if
(
replacement
->
string
==
NULL
)
cJSON.c:2387
replace_item_in_object()
if
(
item
->
string
)
cJSON.c:2759
cJSON_Duplicate()
newitem
->
string
=
(
item
->
type
&
cJSON_StringIsConst
)
?
item
->
string
:
(
char
*
)
cJSON_strdup
(
(
unsigned
char
*
)
item
->
string
,
&
global_hooks
)
;
cJSON.c:2761
cJSON_Duplicate()
if
(
!
newitem
->
string
)
cJSON.c:2762
cJSON_Duplicate()
b_element
=
get_object_item
(
b
,
a_element
->
string
,
case_sensitive
)
;
cJSON.c:3098
cJSON_Compare()
a_element
=
get_object_item
(
a
,
b_element
->
string
,
case_sensitive
)
;
cJSON.c:3114
cJSON_Compare()
unsigned
char
*
full_pointer
=
(
unsigned
char
*
)
cJSON_malloc
(
strlen
(
(
char
*
)
target_pointer
)
+
pointer_encoded_length
(
(
unsigned
char
*
)
current_child
->
string
)
+
2
)
;
cJSON_Utils.c:242
cJSONUtils_FindPointerFromObjectTo()
encode_string_as_pointer
(
full_pointer
+
1
,
(
unsigned
char
*
)
current_child
->
string
)
;
cJSON_Utils.c:244
cJSONUtils_FindPointerFromObjectTo()
while
(
(
current_element
!=
NULL
)
&&
!
compare_pointers
(
(
unsigned
char
*
)
current_element
->
string
,
(
const
unsigned
char
*
)
pointer
,
case_sensitive
)
)
cJSON_Utils.c:328
get_item_from_pointer()
while
(
(
current_item
!=
NULL
)
&&
(
current_item
->
next
!=
NULL
)
&&
(
compare_strings
(
(
unsigned
char
*
)
current_item
->
string
,
(
unsigned
char
*
)
current_item
->
next
->
string
,
case_sensitive
)
<
0
)
)
cJSON_Utils.c:498
sort_list()
if
(
compare_strings
(
(
unsigned
char
*
)
first
->
string
,
(
unsigned
char
*
)
second
->
string
,
case_sensitive
)
<
0
)
cJSON_Utils.c:538
sort_list()
if
(
compare_strings
(
(
unsigned
char
*
)
a
->
string
,
(
unsigned
char
*
)
b
->
string
,
case_sensitive
)
)
cJSON_Utils.c:662
compare_json()
if
(
root
->
string
!=
NULL
)
cJSON_Utils.c:791
overwrite_item()
cJSON_free
(
root
->
string
)
;
cJSON_Utils.c:793
overwrite_item()
if
(
object
->
string
!=
NULL
)
cJSON_Utils.c:876
apply_patch()
cJSON_free
(
object
->
string
)
;
cJSON_Utils.c:878
apply_patch()
object
->
string
=
NULL
;
cJSON_Utils.c:879
apply_patch()
diff
=
compare_strings
(
(
unsigned
char
*
)
from_child
->
string
,
(
unsigned
char
*
)
to_child
->
string
,
case_sensitive
)
;
cJSON_Utils.c:1238
create_patches()
size_t
from_child_name_length
=
pointer_encoded_length
(
(
unsigned
char
*
)
from_child
->
string
)
;
cJSON_Utils.c:1245
create_patches()
encode_string_as_pointer
(
new_path
+
path_length
+
1
,
(
unsigned
char
*
)
from_child
->
string
)
;
cJSON_Utils.c:1249
create_patches()
compose_patch
(
patches
,
(
const
unsigned
char
*
)
"remove"
,
path
,
(
unsigned
char
*
)
from_child
->
string
,
NULL
)
;
cJSON_Utils.c:1261
create_patches()
compose_patch
(
patches
,
(
const
unsigned
char
*
)
"add"
,
path
,
(
unsigned
char
*
)
to_child
->
string
,
to_child
)
;
cJSON_Utils.c:1268
create_patches()
cJSON_DeleteItemFromObjectCaseSensitive
(
target
,
patch_child
->
string
)
;
cJSON_Utils.c:1346
merge_patch()
cJSON_DeleteItemFromObject
(
target
,
patch_child
->
string
)
;
cJSON_Utils.c:1350
merge_patch()
replace_me
=
cJSON_DetachItemFromObjectCaseSensitive
(
target
,
patch_child
->
string
)
;
cJSON_Utils.c:1360
merge_patch()
replace_me
=
cJSON_DetachItemFromObject
(
target
,
patch_child
->
string
)
;
cJSON_Utils.c:1364
merge_patch()
cJSON_AddItemToObject
(
target
,
patch_child
->
string
,
replacement
)
;
cJSON_Utils.c:1374
merge_patch()
diff
=
strcmp
(
from_child
->
string
,
to_child
->
string
)
;
cJSON_Utils.c:1423
generate_merge_patch()
cJSON_AddItemToObject
(
patch
,
from_child
->
string
,
cJSON_CreateNull
(
)
)
;
cJSON_Utils.c:1438
generate_merge_patch()
cJSON_AddItemToObject
(
patch
,
to_child
->
string
,
cJSON_Duplicate
(
to_child
,
1
)
)
;
cJSON_Utils.c:1445
generate_merge_patch()
cJSON_AddItemToObject
(
patch
,
to_child
->
string
,
cJSONUtils_GenerateMergePatch
(
from_child
,
to_child
)
)
;
cJSON_Utils.c:1455
generate_merge_patch()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
cJSON::string
is written by 7 functions and is read by 16 functions:
cJSON_Delete()
parse_object()
create_reference()
add_item_to_object()
replace_item_in_object()
cJSON_Duplicate()
apply_patch()
All items filtered out
cJSON::string
cJSON_Delete()
print_object()
get_object_item()
add_item_to_object()
replace_item_in_object()
cJSON_Duplicate()
cJSON_Compare()
cJSONUtils_FindPointerFromObjectTo()
get_item_from_pointer()
sort_list()
compare_json()
overwrite_item()
apply_patch()
create_patches()
merge_patch()
generate_merge_patch()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out