WvStreams
debian/libwvstreams-dev/usr/include/wvstreams/wvstringtable.h
1/* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4 *
5 * WvStrings are used a lot more often than WvStringTables, so the Table need
6 * not be defined most of the time. Include this file if you need it.
7 *
8 */
9#ifndef __WVSTRINGTABLE_H
10#define __WVSTRINGTABLE_H
11
12#include "wvstring.h"
13#include "wvscatterhash.h"
14
15DeclareWvScatterTable2(WvStringTableBase, WvString);
16
17class WvStringTable : public WvStringTableBase
18{
19 // copy constructor: not defined anywhere!
21public:
22 WvStringTable(unsigned _numslots = 0) : WvStringTableBase(_numslots) {};
23 WvString join(const char *joinchars = " \t") const;
24 void split(WvStringParm s, const char *splitchars = " \t\r\n",
25 int limit = 0);
26 void splitstrict(WvStringParm s, const char *splitchars = " \t\r\n",
27 int limit = 0);
28};
29
30#endif // __WVSTRINGTABLE_H
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
WvString is an implementation of a simple and efficient printable-string class.