]> git.saurik.com Git - wxWidgets.git/blob - include/wx/tokenzr.h
wxRegConfig now works correctly again
[wxWidgets.git] / include / wx / tokenzr.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: tokenzr.h
3 // Purpose: String tokenizer
4 // Author: Guilhem Lavaux
5 // Modified by:
6 // Created: 04/22/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Guilhem Lavaux
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_TOKENZRH
13 #define _WX_TOKENZRH
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/object.h"
20 #include "wx/string.h"
21
22 class wxStringTokenizer : wxObject {
23 public:
24 wxStringTokenizer(const wxString& to_tokenize,
25 const wxString& delims = " \t\r\n",
26 bool ret_delim = FALSE);
27 ~wxStringTokenizer();
28
29 int CountTokens();
30 bool HasMoreToken();
31 wxString NextToken();
32 wxString GetString() { return m_string; }
33 protected:
34 off_t FindDelims(const wxString& str, const wxString& delims);
35 protected:
36 wxString m_string, m_delims;
37 bool m_retdelims;
38 };
39
40 #endif