File: wvstringtable.h

package info (click to toggle)
wvstreams 4.0.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,420 kB
  • ctags: 6,518
  • sloc: cpp: 52,544; sh: 5,770; ansic: 810; makefile: 461; tcl: 114; perl: 18
file content (30 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 *
 * WvStrings are used a lot more often than WvStringTables, so the Table need
 * not be defined most of the time.  Include this file if you need it.
 *
 */
#ifndef __WVSTRINGTABLE_H
#define __WVSTRINGTABLE_H

#include "wvstring.h"
#include "wvscatterhash.h"

DeclareWvScatterTable2(WvStringTableBase, WvString);

class WvStringTable : public WvStringTableBase
{
    // copy constructor: not defined anywhere!
    WvStringTable(const WvStringTable &t);
public:
    WvStringTable(unsigned _numslots = 0) : WvStringTableBase(_numslots) {};
    WvString join(const char *joinchars = " \t") const;
    void split(WvStringParm s, const char *splitchars = " \t\r\n",
	       int limit = 0);
    void splitstrict(WvStringParm s, const char *splitchars = " \t\r\n",
	       int limit = 0);
};

#endif // __WVSTRINGTABLE_H