Definition: u_string_list.cpp:19
struct u_string_list * u_string_list_create_from_list(struct u_string_list *usl)
Create a new string list from an existing string list.
Definition: u_string_list.cpp:51
void u_string_list_destroy(struct u_string_list **list_ptr)
Destroy a string list.
Definition: u_string_list.cpp:152
struct u_string_list * u_string_list_create(void)
Create a string list with room for at least the given number of strings.
Definition: u_string_list.cpp:27
int u_string_list_append(struct u_string_list *usl, const char *str)
Append a new string literal to the list.
Definition: u_string_list.cpp:101
int u_string_list_append_array(struct u_string_list *usl, const char *const *arr, uint32_t size)
Append an array of new string literals to the list.
Definition: u_string_list.cpp:115
struct u_string_list * u_string_list_create_from_array(const char *const *arr, uint32_t size)
Create a new string list from an array of suitable strings.
Definition: u_string_list.cpp:62
struct u_string_list * u_string_list_create_with_capacity(uint32_t capacity)
Create a string list with room for at least the given number of strings.
Definition: u_string_list.cpp:39
uint32_t u_string_list_get_size(const struct u_string_list *usl)
Retrieve the number of elements in the list.
Definition: u_string_list.cpp:79
const char *const * u_string_list_get_data(const struct u_string_list *usl)
Retrieve the data pointer of the list.
Definition: u_string_list.cpp:90
int u_string_list_append_unique(struct u_string_list *usl, const char *str)
Append a new string literal to the list, if it's not the same as a string already in the list.
Definition: u_string_list.cpp:132
bool u_string_list_contains(struct u_string_list *usl, const char *str)
Check if the string is in the list.
Definition: u_string_list.cpp:146