Lines Matching defs:array
214 /* recursively search all children of the object or array */
262 static cJSON *get_array_item(const cJSON *array, size_t item)
264 cJSON *child = array ? array->child : NULL;
393 static cJSON *detach_item_from_array(cJSON *array, size_t which)
395 cJSON *c = array->child;
406 if (c != array->child)
415 if (c == array->child)
417 array->child = c->next;
421 array->child->prev = c->prev;
662 /* array size mismatch? (one of both children is not NULL) */
710 static cJSON_bool insert_item_in_array(cJSON *array, size_t which, cJSON *newitem)
712 cJSON *child = array->child;
720 /* item is after the end of the array */
725 cJSON_AddItemToArray(array, newitem);
735 if (child == array->child)
737 array->child = newitem;
1153 CJSON_PUBLIC(void) cJSONUtils_AddPatchToArray(cJSON * const array, const char * const operation, const char * const path, const cJSON * const value)
1155 compose_patch(array, (const unsigned char*)operation, (const unsigned char*)path, NULL, value);
1194 /* generate patches for all array elements that exist in both "from" and "to" */
1205 sprintf((char*)new_path, "%s/%lu", path, (unsigned long)index); /* path of the current array element */
1344 /* scalar value, array or NULL, just duplicate */