23 #ifndef MUTT_LIB_SLIST_H 24 #define MUTT_LIB_SLIST_H 32 #define SLIST_SEP_SPACE (1 << 13) 33 #define SLIST_SEP_COMMA (1 << 14) 34 #define SLIST_SEP_COLON (1 << 15) 36 #define SLIST_SEP_MASK 0xE000 38 #define SLIST_ALLOW_DUPES (1 << 17) 39 #define SLIST_ALLOW_EMPTY (1 << 18) 40 #define SLIST_CASE_SENSITIVE (1 << 19) bool slist_compare(const struct Slist *a, const struct Slist *b)
Compare two string lists.
String manipulation buffer.
bool slist_is_member(const struct Slist *list, const char *str)
Is a string a member of a list?
struct Slist * slist_dup(const struct Slist *list)
Create a copy of an Slist object.
struct Slist * slist_remove_string(struct Slist *list, const char *str)
Remove a string from a list.
struct Slist * slist_empty(struct Slist **list)
Empty out an Slist object.
void slist_free(struct Slist **list)
Free an Slist object.
struct Slist * slist_add_string(struct Slist *list, const char *str)
Add a string to a list.
int slist_to_buffer(const struct Slist *list, struct Buffer *buf)
Export an Slist to a Buffer.
struct Slist * slist_new(int flags)
Create a new string list.
struct Slist * slist_parse(const char *str, int flags)
Parse a list of strings into a list.
struct Slist * slist_add_list(struct Slist *list, const struct Slist *add)
Add a list to another list.