Click here to Skip to main content
15,895,084 members
Articles / Desktop Programming / MFC

Float and datetime to Vietnamese textual

Rate me:
Please Sign up or sign in to vote.
4.40/5 (6 votes)
4 Aug 2002CPOL1 min read 65.9K   921   10  
A DLL to convert Float and datetime to Vietnamese textual string
/////////////////////////////////////////////////////////////////////////////
// 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions