WvStreams
Main Page
Modules
Classes
Files
File List
File Members
include
wvstringlist.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 WvStringLists, so the List need
6
* not be defined most of the time. Include this file if you need it.
7
*
8
*/
9
#ifndef __WVSTRINGLIST_H
10
#define __WVSTRINGLIST_H
11
12
#include "wvstring.h"
13
#include "wvlinklist.h"
14
15
class
WvRegex
;
16
17
DeclareWvList2(WvStringListBase,
WvString
);
18
27
class
WvStringList
:
public
WvStringListBase
28
{
29
// copy constructor: not defined anywhere!
30
WvStringList
(
const
WvStringList
&l);
31
public
:
35
WvStringList
() {}
36
40
WvString
join
(
const
char
*joinchars =
" "
)
const
;
41
51
void
split
(
WvStringParm
s,
const
char
*splitchars =
" \t\r\n"
,
52
int
limit = 0);
66
void
splitstrict
(
WvStringParm
s,
const
char
*splitchars =
" \t\r\n"
,
67
int
limit = 0);
68
69
#ifndef _WIN32
70
75
void
split
(
WvStringParm
s,
const
WvRegex
®ex,
int
limit = 0);
76
#endif
77
78
/*
79
* populate the list from an array of strings
80
*/
81
void
fill(
const
char
*
const
*array);
82
83
void
append(
WvStringParm
str);
84
void
append(WVSTRING_FORMAT_DECL)
85
{ append(
WvString
(WVSTRING_FORMAT_CALL)); }
86
void
append(
WvString
*strp,
bool
autofree,
char
*
id
= NULL);
87
92
WvString
popstr
();
93
};
94
95
#endif // __WVSTRINGLIST_H
Generated on Thu Oct 31 2013 15:14:23 for WvStreams by
1.8.4