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 
15 DeclareWvScatterTable2(WvStringTableBase, WvString);
16 
17 class WvStringTable : public WvStringTableBase
18 {
19  // copy constructor: not defined anywhere!
20  WvStringTable(const WvStringTable &t);
21 public:
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
WvStringTable
Definition: wvstringtable.h:17
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition: wvstring.h:329