?? cstdiofile_utf8.h
字號:
#pragma once
#if !defined(CSTDIOFILE_UTF8_INC_)
#define CSTDIOFILE_UTF8_INC_
/**
* This class adapts the CStdioFile MFC class to read and write to UTF8
* encoded files. If the application is compiled with unicode support, all
* UTF8 character sequences are handled, else only the normal ASCII7 subset.
*/
class CStdioFile_UTF8 : public CStdioFile
{
public:
// Duplicate the standard constructors
CStdioFile_UTF8() : CStdioFile() {}
CStdioFile_UTF8(FILE* pOpenStream) : CStdioFile(pOpenStream) {}
CStdioFile(LPCTSTR lpszFileName, UINT nOpenFlags) : CStdioFile(lpszFileName, nOpenFlags) {}
// Override these methods for UTF8 conversion
virtual LPTSTR ReadString(LPTSTR lpsz, UINT nMax);
virtual BOOL ReadString(CString& rString);
virtual void WriteString(LPCTSTR lpsz);
// Read and write an optional Byte Order Mark
BOOL ReadBOM();
void WriteBOM();
}
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -