Lines Matching refs:child

80         if (!(c->type & cJSON_IsReference) && c->child)  in cJSON_Delete()
81 cJSON_Delete(c->child); in cJSON_Delete()
628 cJSON *child; in parse_array() local
639 item->child = child = cJSON_New_Item(); in parse_array()
640 if (!item->child) in parse_array()
643 parse_value(child, skip(value))); /* skip any spacing, get the value. */ in parse_array()
651 child->next = new_item; in parse_array()
652 new_item->prev = child; in parse_array()
653 child = new_item; in parse_array()
654 value = skip(parse_value(child, skip(value + 1))); in parse_array()
670 cJSON *child = item->child; in print_array() local
675 while (child) in print_array()
676 numentries++, child = child->next; in print_array()
696 child = item->child; in print_array()
697 while (child && !fail) { in print_array()
698 print_value(child, depth + 1, fmt, p); in print_array()
700 if (child->next) { in print_array()
711 child = child->next; in print_array()
726 child = item->child; in print_array()
727 while (child && !fail) { in print_array()
728 ret = print_value(child, depth + 1, fmt, 0); in print_array()
734 child = child->next; in print_array()
778 cJSON *child; in parse_object() local
789 item->child = child = cJSON_New_Item(); in parse_object()
790 if (!item->child) in parse_object()
792 value = skip(parse_string(child, skip(value))); in parse_object()
795 child->string = child->valuestring; in parse_object()
796 child->valuestring = 0; in parse_object()
802 child, skip(value + 1))); /* skip any spacing, get the value. */ in parse_object()
810 child->next = new_item; in parse_object()
811 new_item->prev = child; in parse_object()
812 child = new_item; in parse_object()
813 value = skip(parse_string(child, skip(value + 1))); in parse_object()
816 child->string = child->valuestring; in parse_object()
817 child->valuestring = 0; in parse_object()
823 child, skip(value + 1))); /* skip any spacing, get the value. */ in parse_object()
839 cJSON *child = item->child; in print_object() local
843 while (child) in print_object()
844 numentries++, child = child->next; in print_object()
876 child = item->child; in print_object()
878 while (child) { in print_object()
887 print_string_ptr(child->string, p); in print_object()
899 print_value(child, depth, fmt, p); in print_object()
902 len = (fmt ? 1 : 0) + (child->next ? 1 : 0); in print_object()
906 if (child->next) in print_object()
912 child = child->next; in print_object()
937 child = item->child; in print_object()
941 while (child) { in print_object()
942 names[i] = str = print_string_ptr(child->string, 0); in print_object()
943 entries[i++] = ret = print_value(child, depth, fmt, 0); in print_object()
948 child = child->next; in print_object()
1010 cJSON *c = array->child; in cJSON_GetArraySize()
1017 cJSON *c = array->child; in cJSON_GetArrayItem()
1023 cJSON *c = object->child; in cJSON_GetObjectItem()
1048 cJSON *c = array->child; in cJSON_AddItemToArray()
1052 array->child = item; in cJSON_AddItemToArray()
1085 cJSON *c = array->child; in cJSON_DetachItemFromArray()
1094 if (c == array->child) in cJSON_DetachItemFromArray()
1095 array->child = c->next; in cJSON_DetachItemFromArray()
1104 cJSON *c = object->child; in cJSON_DetachItemFromObject()
1117 cJSON *c = array->child; in cJSON_InsertItemInArray()
1127 if (c == array->child) in cJSON_InsertItemInArray()
1128 array->child = newitem; in cJSON_InsertItemInArray()
1133 cJSON *c = array->child; in cJSON_ReplaceItemInArray()
1142 if (c == array->child) in cJSON_ReplaceItemInArray()
1143 array->child = newitem; in cJSON_ReplaceItemInArray()
1152 cJSON *c = object->child; in cJSON_ReplaceItemInObject()
1223 a->child = n; in cJSON_CreateIntArray()
1236 a->child = n; in cJSON_CreateFloatArray()
1249 a->child = n; in cJSON_CreateDoubleArray()
1262 a->child = n; in cJSON_CreateStringArray()
1302 cptr = item->child; in cJSON_Duplicate()
1317 newitem->child = newchild; in cJSON_Duplicate()