Lines Matching defs:child
271 if (!(item->type & cJSON_IsReference) && (item->child != NULL))
273 cJSON_Delete(item->child);
1766 item->child = head;
1786 cJSON *current_element = item->child;
1905 /* parse the name of the child */
1947 item->child = head;
1966 cJSON *current_item = item->child;
2078 cJSON *child = NULL;
2086 child = array->child;
2088 while(child != NULL)
2091 child = child->next;
2108 current_child = array->child;
2137 current_element = object->child;
2206 cJSON *child = NULL;
2213 child = array->child;
2217 if (child == NULL)
2220 array->child = item;
2227 if (child->prev)
2229 suffix_object(child->prev, item);
2230 array->child->prev = item;
2451 if ((parent == NULL) || (item == NULL) || (item != parent->child && item->prev == NULL))
2456 if (item != parent->child)
2467 if (item == parent->child)
2470 parent->child = item->next;
2475 parent->child->prev = item->prev;
2540 if (after_inserted != array->child && after_inserted->prev == NULL) {
2548 if (after_inserted == array->child)
2550 array->child = newitem;
2561 if ((parent == NULL) || (parent->child == NULL) || (replacement == NULL) || (item == NULL))
2578 if (parent->child == item)
2580 if (parent->child->prev == parent->child)
2584 parent->child = replacement;
2589 * We can't modify the last item's next pointer where this item was the parent's child
2597 parent->child->prev = replacement;
2795 CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)
2800 item->child = (cJSON*)cast_away_const(child);
2806 CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
2810 item->child = (cJSON*)cast_away_const(child);
2880 a->child = n;
2889 if (a && a->child) {
2890 a->child->prev = n;
2920 a->child = n;
2929 if (a && a->child) {
2930 a->child->prev = n;
2960 a->child = n;
2969 if (a && a->child) {
2970 a->child->prev = n;
3000 a->child = n;
3009 if (a && a->child) {
3010 a->child->prev = n;
3020 cJSON *child = NULL;
3060 /* Walk the ->next chain for the child. */
3061 child = item->child;
3062 while (child != NULL)
3064 newchild = cJSON_Duplicate(child, true); /* Duplicate (with recurse) each item in the ->next chain */
3071 /* If newitem->child already set, then crosswire ->prev and ->next and move on */
3078 /* Set newitem->child and move to it */
3079 newitem->child = newchild;
3082 child = child->next;
3084 if (newitem && newitem->child)
3086 newitem->child->prev = newchild;
3391 cJSON *a_element = a->child;
3392 cJSON *b_element = b->child;