///////////////////////////////////////////////////////////////////////////// // Name: tokenzr.cpp // Purpose: String tokenizer // Author: Guilhem Lavaux // Modified by: // Created: 04/22/98 // RCS-ID: $Id$ // Copyright: (c) Guilhem Lavaux // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ #pragma implementation "tokenzr.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #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() { m_string = to_tokenize; m_delims = delims; m_retdelims = ret_delims; } wxStringTokenizer::~wxStringTokenizer() { } off_t wxStringTokenizer::FindDelims(const wxString& str, const wxString& delims) { int i, j; register int s_len = str.Length(), len = delims.Length(); for (i=0;i