19 WvConfigSection::~WvConfigSection()
30 for (i.rewind(); i.next();)
32 if (strcasecmp(i().name, ename) == 0)
40 const char *WvConfigSection::get(
WvStringParm entry,
const char *def_val)
43 return e ? (
const char *)e->value : def_val;
54 if (!value || !value[0])
76 void WvConfigSection::dump(
WvStream &fp)
80 for (i.rewind(); i.next(); )
83 if (e.value && e.value[0])
84 fp.print(
"%s = %s\n", e.name, e.value);
86 fp.print(
"%s =\n", e.name);
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
char * edit()
make the string editable, and return a non-const (char*)
char * trim_string(char *string)
Trims whitespace from the beginning and end of the character string, including carriage return / line...
WvString is an implementation of a simple and efficient printable-string class.