X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fcc6dddd1f1da49f94767ff148eaa3f1d3ca9367..2ebcd5f5fd47cd16915ff3b08c0253f79a1d2220:/src/common/tokenzr.cpp?ds=sidebyside diff --git a/src/common/tokenzr.cpp b/src/common/tokenzr.cpp index 9fb4a54380..6b5d18e178 100644 --- a/src/common/tokenzr.cpp +++ b/src/common/tokenzr.cpp @@ -10,105 +10,129 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation "tokenzr.h" + #pragma implementation "tokenzr.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif -#ifndef WX_PRECOMP -#endif - -#include "wx/object.h" -#include "wx/string.h" #include "wx/tokenzr.h" wxStringTokenizer::wxStringTokenizer(const wxString& to_tokenize, const wxString& delims, - bool ret_delims) - : wxObject() + bool ret_delims) { - m_string = to_tokenize; - m_delims = delims; - m_retdelims = ret_delims; + m_string = to_tokenize; + m_delims = delims; + m_retdelims = ret_delims; } wxStringTokenizer::~wxStringTokenizer() { } -off_t wxStringTokenizer::FindDelims(const wxString& str, const wxString& delims) +off_t wxStringTokenizer::FindDelims(const wxString& str, const wxString& delims) const { - int i, j; - register int s_len = str.Length(), - len = delims.Length(); - - for (i=0;i