aboutsummaryrefslogtreecommitdiff
path: root/src/librc/rc.h.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-18 15:12:43 +0000
committerRoy Marples <roy@marples.name>2008-09-18 15:12:43 +0000
commite0dfa472d1d32268d08a91cc37606bd0ec803a11 (patch)
tree62f022233e7be1c607f536c9deba75db4d009d65 /src/librc/rc.h.in
parentccc24d1086ec4a5110739e3b352bb1dc2967a9ff (diff)
Add new functions, rc_stringlist_find and rc_stringlist_split.
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r--src/librc/rc.h.in13
1 files changed, 13 insertions, 0 deletions
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 **);