[project @ 2002-07-07 02:33:51 by unknown_lamer]
[clinton/bobotpp.git] / source / StringTokenizer.H
1 // StringTokenizer.H -*- C++ -*-
2 // Copyright (c) 1997, 1998 Etienne BERNARD
3
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // any later version.
8
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17
18 #ifndef STRINGTOKENIZER_H
19 #define STRINGTOKENIZER_H
20
21 #include "String.H"
22
23 class StringTokenizer {
24 String st;
25 int pos;
26 public:
27 StringTokenizer(String);
28 StringTokenizer(StringTokenizer &);
29
30 bool hasMoreTokens();
31 bool hasMoreTokens(char);
32
33 int countTokens();
34 int countTokens(char);
35
36 String nextToken();
37 String nextToken(char, bool = false);
38
39 String rest();
40 };
41
42 #endif