2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * WvStringList test program. Correct results:
13 #include "wvstringlist.h"
20 WvString
x("foo"), y("blue"), z("true"), bob("Foo: bar: baz: bob");
23 WvStringList::Iter
i(l
);
29 for (i
.rewind(); i
.next();)
30 printf("Thingy: %s\n", i().cstr());
34 for (i
.rewind(); i
.next();)
35 printf("Stingy: %s\n", i().cstr());
38 l
.split(bob
, ": ", 2);
39 for (i
.rewind(); i
.next();)
40 printf("Stingy(2): %s\n", i().cstr());
43 l
.split(bob
, ": ", 3);
44 for (i
.rewind(); i
.next();)
45 printf("Stingy(3): %s\n", i().cstr());
51 il
.prepend(&a
, false);
52 il
.prepend(&b
, false);
56 printf("Dingy: %d\n", ii());