9 #ifndef __WVSTRINGLIST_H
10 #define __WVSTRINGLIST_H
13 #include "wvlinklist.h"
17 DeclareWvList2(WvStringListBase,
WvString);
51 void split(WvStringParm s,
const char *splitchars =
" \t\r\n",
66 void splitstrict(WvStringParm s,
const char *splitchars =
" \t\r\n",
75 void split(WvStringParm s,
const WvRegex ®ex,
int limit = 0);
81 void fill(
const char *
const *array);
83 void append(WvStringParm str);
84 void append(WVSTRING_FORMAT_DECL)
85 { append(
WvString(WVSTRING_FORMAT_CALL)); }
86 void append(
WvString *strp,
bool autofree,
char *
id = NULL);
95 #endif // __WVSTRINGLIST_H
WvString popstr()
get the first string in the list, or an empty string if the list is empty.
void splitstrict(WvStringParm s, const char *splitchars=" \t\r\n", int limit=0)
split s and form a list creating null entries when there are multiple splitchars ie " happy birthday ...
WvString is an implementation of a simple and efficient printable-string class.
WvString join(const char *joinchars=" ") const
concatenates all elements of the list seperating on joinchars
WvRegex – Unified support for regular expressions.
WvStringList()
Instatiate a new WvStringList()
This is a WvList of WvStrings, and is a really handy way to parse strings.
void split(WvStringParm s, const char *splitchars=" \t\r\n", int limit=0)
split s and form a list ignoring splitchars (except at beginning and end) ie.