17#include "libical_ical_export.h"
24typedef icalarray icalstrarray;
47#define icalstrarray_new(increment_size) \
48 (icalarray_new(sizeof(char *), increment_size))
An array of arbitrarily-sized elements which grows dynamically as elements are added.
const char * icalstrarray_element_at(icalstrarray *array, size_t position)
Accesses a string stored in the array.
size_t icalstrarray_find(icalstrarray *array, const char *needle)
Finds a string in the array.
void icalstrarray_remove(icalstrarray *array, const char *del)
Removes all occurrences of a string.
void icalstrarray_append(icalstrarray *array, const char *elem)
Appends a string to the array.
void icalstrarray_remove_element_at(icalstrarray *array, size_t position)
Removes the string at an array position.
icalstrarray * icalstrarray_clone(icalstrarray *array)
Clones the array and all its elements.
void icalstrarray_add(icalstrarray *array, const char *elem)
Appends a string to the array, omitting duplicates.
void icalstrarray_sort(icalstrarray *array)
Sorts the strings in the array in ascending order.
void icalstrarray_free(icalstrarray *array)
Frees this array's memory and all its elements.
size_t icalstrarray_size(const icalstrarray *array)
Indicates the count of strings stored in the array.