Lines Matching full:strlist
19 struct strlist {
25 struct strlist *strlist__new(bool dupstr, const char *slist);
26 void strlist__delete(struct strlist *self);
28 void strlist__remove(struct strlist *self, struct str_node *sn);
29 int strlist__load(struct strlist *self, const char *filename);
30 int strlist__add(struct strlist *self, const char *str);
32 struct str_node *strlist__entry(const struct strlist *self, unsigned int idx);
33 struct str_node *strlist__find(struct strlist *self, const char *entry);
35 static inline bool strlist__has_entry(struct strlist *self, const char *entry)
40 static inline bool strlist__empty(const struct strlist *self)
45 static inline unsigned int strlist__nr_entries(const struct strlist *self)
50 /* For strlist iteration */
51 static inline struct str_node *strlist__first(struct strlist *self)
66 * strlist_for_each - iterate over a strlist
68 * @self: the &struct strlist for loop.
74 * strlist_for_each_safe - iterate over a strlist safe against removal of
78 * @self: the &struct strlist for loop.
84 int strlist__parse_list(struct strlist *self, const char *s);