From e0dfa472d1d32268d08a91cc37606bd0ec803a11 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 18 Sep 2008 15:12:43 +0000 Subject: Add new functions, rc_stringlist_find and rc_stringlist_split. --- src/librc/rc.h.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/librc/rc.h.in') diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index 12cc42c3..96287144 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -445,6 +445,19 @@ RC_STRING *rc_stringlist_addu(RC_STRINGLIST *, const char *); * @return true on success, otherwise false */ bool rc_stringlist_delete(RC_STRINGLIST *, const char *); +/*! Find the item on the list. + * @param list to search + * @param item to find. + * @return pointer to item */ +RC_STRING *rc_stringlist_find(RC_STRINGLIST *, const char *); + +/*! Split a string into a stringlist based on seperator. + * @param string to split + * @param seperator + * @return new list */ +RC_STRINGLIST *rc_stringlist_split(const char *, const char *); + + /*! Sort the list according to C locale * @param list to sort */ void rc_stringlist_sort(RC_STRINGLIST **); -- cgit v1.2.3