|
/////////////////////////////////////////////////////////////////////////////
// Tokenizer.h
//
// Date: Monday, October 22, 2001
// Autor: Eduardo Velasquez
// Description: Tokenizer class for CStrings. Works like strtok.
///////////////
#if !defined(__TOKENIZER_H__)
#define __TOKENIZER_H__
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#if !defined(_BITSET_)
# include <bitset>
#endif // !defined(_BITSET_)
class CTokenizer
{
public:
CTokenizer(const CString& cs, const CString& csDelim);
void SetDelimiters(const CString& csDelim);
bool Next(CString& cs);
CString Tail() const;
private:
CString m_cs;
std::bitset<256> m_delim;
int m_nCurPos;
};
#endif // !defined(__TOKENIZER_H__)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.