Lines Matching defs:top
381 * Insert a object 'elt' to the hash 'top' and associate it with key 'key'
382 * @param top destination object (must be of type UCL_OBJECT)
389 UCL_EXTERN bool ucl_object_insert_key (ucl_object_t *top, ucl_object_t *elt,
393 * Replace a object 'elt' to the hash 'top' and associate it with key 'key', old object will be unrefed,
395 * @param top destination object (must be of type UCL_OBJECT)
402 UCL_EXTERN bool ucl_object_replace_key (ucl_object_t *top, ucl_object_t *elt,
407 * @param top destination object (must be of type UCL_OBJECT)
412 UCL_EXTERN bool ucl_object_merge (ucl_object_t *top, ucl_object_t *elt, bool copy);
416 * @param top object
420 UCL_EXTERN bool ucl_object_delete_keyl (ucl_object_t *top,
425 * @param top object
428 UCL_EXTERN bool ucl_object_delete_key (ucl_object_t *top,
433 * Removes `key` from `top` object, returning the object that was removed. This
436 * @param top object
441 UCL_EXTERN ucl_object_t* ucl_object_pop_keyl (ucl_object_t *top, const char *key,
445 * Removes `key` from `top` object returning the object that was removed. This
448 * @param top object
452 UCL_EXTERN ucl_object_t* ucl_object_pop_key (ucl_object_t *top, const char *key)
456 * Insert a object 'elt' to the hash 'top' and associate it with key 'key', if
458 * @param top destination object (must be of type UCL_OBJECT)
465 UCL_EXTERN bool ucl_object_insert_key_merged (ucl_object_t *top, ucl_object_t *elt,
478 * @param top destination object (must NOT be NULL)
482 UCL_EXTERN bool ucl_array_append (ucl_object_t *top,
487 * @param top destination object (must NOT be NULL)
491 UCL_EXTERN bool ucl_array_prepend (ucl_object_t *top,
496 * @param top destination array (must be of type UCL_ARRAY)
501 UCL_EXTERN bool ucl_array_merge (ucl_object_t *top, ucl_object_t *elt,
505 * Removes an element `elt` from the array `top`, returning the object that was
508 * @param top array ucl object
510 * @return removed element or NULL if `top` is NULL or not an array
512 UCL_EXTERN ucl_object_t* ucl_array_delete (ucl_object_t *top,
516 * Returns the first element of the array `top`
517 * @param top array ucl object
518 * @return element or NULL if `top` is NULL or not an array
520 UCL_EXTERN const ucl_object_t* ucl_array_head (const ucl_object_t *top);
523 * Returns the last element of the array `top`
524 * @param top array ucl object
525 * @return element or NULL if `top` is NULL or not an array
527 UCL_EXTERN const ucl_object_t* ucl_array_tail (const ucl_object_t *top);
530 * Removes the last element from the array `top`, returning the object that was
533 * @param top array ucl object
534 * @return removed element or NULL if `top` is NULL or not an array
536 UCL_EXTERN ucl_object_t* ucl_array_pop_last (ucl_object_t *top);
539 * Removes the first element from the array `top`, returning the object that was
542 * @param top array ucl object
543 * @return removed element or NULL if `top` is NULL or not an array
545 UCL_EXTERN ucl_object_t* ucl_array_pop_first (ucl_object_t *top);
548 * Return size of the array `top`
549 * @param top object to get size from (must be of type UCL_ARRAY)
552 UCL_EXTERN unsigned int ucl_array_size (const ucl_object_t *top);
555 * Return object identified by index of the array `top`
556 * @param top object to get a key from (must be of type UCL_ARRAY)
560 UCL_EXTERN const ucl_object_t* ucl_array_find_index (const ucl_object_t *top,
564 * Return the index of `elt` in the array `top`
565 * @param top object to get a key from (must be of type UCL_ARRAY)
567 * @return index of `elt` in the array `top or (unsigned int)-1 if `elt` is not found
569 UCL_EXTERN unsigned int ucl_array_index_of (ucl_object_t *top,
576 * @param top destination object (must be of type UCL_ARRAY)
582 ucl_array_replace_index (ucl_object_t *top, ucl_object_t *elt,
1053 * Insert new chunk to a parser (must have previously processed data with an existing top object)
1183 * Get a top object for a parser (refcount is increased)
1186 * @return top parser object or NULL
1194 * @param depth depth of stack to retrieve (top is 0)
1440 const ucl_object_t *top;
1482 * @param obj top UCL object