00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __WVSTRINGLIST_H
00010 #define __WVSTRINGLIST_H
00011
00012 #include "wvstring.h"
00013 #include "wvlinklist.h"
00014
00015 DeclareWvList2(WvStringListBase, WvString);
00016
00025 class WvStringList : public WvStringListBase
00026 {
00027
00028 WvStringList(const WvStringList &l);
00029 public:
00033 WvStringList() {}
00034
00038 WvString join(const char *joinchars = " ") const;
00039
00049 void split(WvStringParm s, const char *splitchars = " \t\r\n",
00050 int limit = 0);
00064 void splitstrict(WvStringParm s, const char *splitchars = " \t\r\n",
00065 int limit = 0);
00066
00067
00068
00069
00070 void fill(const char * const *array);
00071
00072 void append(WvStringParm str);
00073 void append(WvString *strp, bool autofree, char *id = NULL);
00074
00079 WvString popstr();
00080 };
00081
00082 #endif // __WVSTRINGLIST_H