8 #include "wvlinklist.h"
15 WvStringList::Iter i(l);
18 l.append(
new WvString(
"blah blah"),
true);
19 l.append(&autostr,
false);
22 for (i.rewind(); i.next(); )
27 printf(
"%s\n", i().cstr());
30 printf(
"Is the list empty? %s\n",l.isempty() ?
"Yes" :
"No");
32 printf(
"The first element is: %s\n", l.first()->cstr());
33 printf(
"The last element is: %s\n", l.last()->cstr());
This is a WvList of WvStrings, and is a really handy way to parse strings.
WvString is an implementation of a simple and efficient printable-string class.