// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "tokenzr.h"
#endif
#endif
#include "wx/tokenzr.h"
+#include "wx/arrstr.h"
// Required for wxIs... functions
#include <ctype.h>
// do we have more of them?
bool wxStringTokenizer::HasMoreTokens() const
{
- wxCHECK_MSG( IsOk(), FALSE, _T("you should call SetString() first") );
+ wxCHECK_MSG( IsOk(), false, _T("you should call SetString() first") );
if ( m_string.find_first_not_of(m_delims) == wxString::npos )
{
- // no non empty tokens left, but in 2 cases we still may return TRUE if
+ // no non empty tokens left, but in 2 cases we still may return true if
// GetNextToken() wasn't called yet for this empty token:
//
// a) in wxTOKEN_RET_EMPTY_ALL mode we always do it
// token just before it
return (m_mode == wxTOKEN_RET_EMPTY_ALL) ||
(m_mode == wxTOKEN_RET_EMPTY && m_pos == 0)
- ? m_hasMore : FALSE;
+ ? m_hasMore : false;
}
else
{
// there are non delimiter characters left, hence we do have more
// tokens
- return TRUE;
+ return true;
}
}
// no more tokens in this string, even in wxTOKEN_RET_EMPTY_ALL
// mode (we will return the trailing one right now in this case)
- m_hasMore = FALSE;
+ m_hasMore = false;
}
else
{