]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/tokenzr.h
Added missing | symbol
[wxWidgets.git] / include / wx / tokenzr.h
index 7942996e29ed987377b378f6b9b1237207a7b724..c23d130185e27c2fe8f456df2064c6cbe6f933da 100644 (file)
 
 #include "wx/object.h"
 #include "wx/string.h"
+#include "wx/filefn.h"
 
-class wxStringTokenizer : wxObject {
+class wxStringTokenizer : public wxObject {
 public:
   wxStringTokenizer(const wxString& to_tokenize,
                     const wxString& delims = " \t\r\n",
                     bool ret_delim = FALSE);
+  wxStringTokenizer() {  m_string = "";  m_delims = "";  m_retdelims = FALSE;}
   ~wxStringTokenizer();
 
   int CountTokens();
   bool HasMoreToken();
   wxString NextToken();
   wxString GetString() { return m_string; }
+
+  void SetString(const wxString& to_tokenize,
+                    const wxString& delims = " \t\r\n",
+                    bool ret_delim = FALSE)
+  {
+    m_string = to_tokenize;
+    m_delims = delims;
+    m_retdelims = ret_delim;
+  }
+
 protected:
   off_t FindDelims(const wxString& str, const wxString& delims);
 protected: