[utils] adding cstring_array_extend and string_tree_clear

This commit is contained in:
Al
2017-12-24 01:46:20 -05:00
parent 4e3d868bd0
commit c78566c241
2 changed files with 22 additions and 0 deletions

View File

@@ -208,6 +208,8 @@ void cstring_array_clear(cstring_array *self);
cstring_array *cstring_array_from_char_array(char_array *str);
cstring_array *cstring_array_from_strings(char **strings, size_t n);
bool cstring_array_extend(cstring_array *array, cstring_array *other);
// Convert cstring_array to an array of n C strings and destroy the cstring_array
char **cstring_array_to_strings(cstring_array *self);
@@ -285,6 +287,8 @@ void string_tree_add_string_len(string_tree_t *self, char *str, size_t len);
void string_tree_append_string(string_tree_t *self, char *str);
void string_tree_append_string_len(string_tree_t *self, char *str, size_t len);
void string_tree_clear(string_tree_t *self);
uint32_t string_tree_num_tokens(string_tree_t *self);
uint32_t string_tree_num_strings(string_tree_t *self);