cJSON
+
0
/1 examples
SourceVu will show references to
cJSON_Duplicate()
from the following samples and libraries:
ESP-IDF
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
cJSON
cJSON_Duplicate()
cJSON_Duplicate() function
Syntax
Show:
Summary
Declaration
Definition
from
cJSON.h:249
cJSON
*
)
cJSON_Duplicate
(
const
cJSON
*
item
,
cJSON_bool
recurse
)
;
Implemented in
cJSON.c:2729
Arguments
Argument
item
recurse
Related Functions
Found 101 other functions taking a
cJSON
argument:
Function
cJSON_Delete()
cJSON_AddItemToObject()
add_item_to_object()
cJSON_GetObjectItem()
cJSON_IsObject()
cJSON_AddItemToArray()
sort_object()
compose_patch()
cJSON_IsArray()
print_value()
get_item_from_pointer()
get_object_item()
get_object_item()
suffix_object()
cJSON_Print()
cJSON_AddNumberToObject()
cJSON_AddStringToObject()
parse_value()
get_array_item()
add_item_to_array()
cJSON_DetachItemFromObject()
cJSON_DetachItemViaPointer()
cJSON_IsString()
cJSON_Compare()
compare_json()
create_patches()
cJSON_GetObjectItemCaseSensitive()
cJSON_DeleteItemFromObject()
cJSON_DeleteItemFromObjectCaseSensitive()
cJSON_ReplaceItemViaPointer()
cJSON_DetachItemFromObjectCaseSensitive()
sort_list()
merge_patch()
parse_string()
print()
parse_object()
parse_array()
print_array()
print_object()
create_reference()
replace_item_in_object()
cJSON_DetachItemFromArray()
cJSON_IsNull()
cJSON_IsNumber()
cJSONUtils_FindPointerFromObjectTo()
detach_path()
overwrite_item()
apply_patch()
cJSONUtils_GenerateMergePatch()
generate_merge_patch()
print_number()
cJSON_SetNumberHelper()
cJSON_SetValuestring()
print_string()
cJSON_PrintUnformatted()
cJSON_PrintBuffered()
cJSON_PrintPreallocated()
cJSON_GetArraySize()
cJSON_GetArrayItem()
cJSON_HasObjectItem()
cJSON_AddItemToObjectCS()
cJSON_AddItemReferenceToArray()
cJSON_AddItemReferenceToObject()
cJSON_AddNullToObject()
cJSON_AddTrueToObject()
cJSON_AddFalseToObject()
cJSON_AddBoolToObject()
cJSON_ReplaceItemInArray()
cJSON_InsertItemInArray()
cJSON_DeleteItemFromArray()
cJSON_AddRawToObject()
cJSON_AddObjectToObject()
cJSON_AddArrayToObject()
cJSON_CreateObjectReference()
cJSON_CreateArrayReference()
cJSON_ReplaceItemInObject()
cJSON_ReplaceItemInObjectCaseSensitive()
cJSON_IsTrue()
cJSON_IsBool()
cJSON_IsInvalid()
cJSON_IsFalse()
cJSON_IsRaw()
cJSON_GetStringValue()
cJSON_GetNumberValue()
parse_number()
get_array_item()
cJSONUtils_GetPointer()
cJSONUtils_GetPointerCaseSensitive()
detach_item_from_array()
insert_item_in_array()
decode_patch_operation()
cJSONUtils_ApplyPatches()
cJSONUtils_ApplyPatchesCaseSensitive()
cJSONUtils_MergePatch()
cJSONUtils_AddPatchToArray()
cJSONUtils_GeneratePatches()
cJSONUtils_GeneratePatchesCaseSensitive()
cJSONUtils_SortObject()
cJSONUtils_SortObjectCaseSensitive()
cJSONUtils_GenerateMergePatchCaseSensitive()
cJSONUtils_MergePatchCaseSensitive()
Examples
cJSON_Duplicate()
is referenced by 1 libraries and example projects:
ESP-IDF
References
from
0/1
examples
Code
Location
Referrer
CJSON_PUBLIC
(
cJSON
*
)
cJSON_Duplicate
(
const
cJSON
*
item
,
cJSON_bool
recurse
)
cJSON.c:2729
CJSON_PUBLIC
(
cJSON
*
)
cJSON_Duplicate
(
const
cJSON
*
item
,
cJSON_bool
recurse
)
;
cJSON.h:249
newchild
=
cJSON_Duplicate
(
child
,
true
)
;
/* Duplicate (with recurse) each item in the ->next chain */
cJSON.c:2776
cJSON_Duplicate()
value
=
cJSON_Duplicate
(
value
,
1
)
;
cJSON_Utils.c:861
apply_patch()
value
=
cJSON_Duplicate
(
value
,
1
)
;
cJSON_Utils.c:932
apply_patch()
value
=
cJSON_Duplicate
(
value
,
1
)
;
cJSON_Utils.c:950
apply_patch()
cJSON_AddItemToObject
(
patch
,
"value"
,
cJSON_Duplicate
(
value
,
1
)
)
;
cJSON_Utils.c:1131
compose_patch()
return
cJSON_Duplicate
(
patch
,
1
)
;
cJSON_Utils.c:1329
merge_patch()
return
cJSON_Duplicate
(
to
,
1
)
;
cJSON_Utils.c:1403
generate_merge_patch()
cJSON_AddItemToObject
(
patch
,
to_child
->
string
,
cJSON_Duplicate
(
to_child
,
1
)
)
;
cJSON_Utils.c:1445
generate_merge_patch()
Call Tree
from
0/1
examples
cJSON_Duplicate()
is called by 5 functions and calls 4 functions:
cJSON_Duplicate()
apply_patch()
compose_patch()
merge_patch()
generate_merge_patch()
All items filtered out
cJSON_Duplicate()
cJSON_Duplicate()
cJSON_New_Item()
cJSON_Delete()
cJSON_strdup()
All items filtered out
Data Use
from
0/1
examples
cJSON_Duplicate()
reads 7 variables and writes 8 variables:
cJSON::next
cJSON::child
cJSON::type
cJSON::valuestring
cJSON::valueint
cJSON::valuedouble
cJSON::string
All items filtered out
cJSON_Duplicate()
cJSON::next
cJSON::prev
cJSON::child
cJSON::type
cJSON::valuestring
cJSON::valueint
cJSON::valuedouble
cJSON::string
All items filtered out
Class Tree
from
0/1
examples
All items filtered out
All items filtered out
Override Tree
from
0/1
examples
All items filtered out
All items filtered out
Implementations
from
0/1
examples
All items filtered out
All items filtered out
Instances
from
0/1
examples
Lifecycle
from
0/1
examples
All items filtered out
All items filtered out