14 #pragma managed( push, off ) 22 #define CP_UTF16 ( 1200 ) 47 explicit CFile() noexcept;
58 virtual ~
CFile() noexcept;
72 inline virtual HANDLE
GetHandle() const noexcept {
return m_hFile; }
89 virtual bool Create(
wchar_t const* pszPath, UINT uCodePage =
CP_UTF16 ) noexcept;
103 virtual bool Open(
wchar_t const* pszPath,
bool bWrite =
false ) noexcept;
117 virtual bool OpenAppend(
wchar_t const* pszPath, UINT uCodePage =
CP_UTF16 ) noexcept;
128 virtual void Close() noexcept;
140 virtual LONGLONG Read(
void* pBuffer, LONGLONG nSize ) noexcept;
152 virtual LONGLONG Write(
void const* pBuffer, LONGLONG nSize ) noexcept;
163 virtual LONGLONG GetFileSize()
const noexcept;
174 virtual LONGLONG GetFilePoint()
const noexcept;
187 virtual bool SetFilePoint( LONGLONG nPoint ) noexcept;
200 virtual bool SetFileEnd() noexcept;
215 virtual bool ReadCodeBytes(
unsigned char pBuffer[ MB_LEN_MAX ],
int& nCount,
int nSize ) noexcept;
230 virtual bool InputCodePage( UINT& ruCodePage,
int& rnUtf8,
int& rnSJis ) noexcept;
243 virtual bool OutputBom( UINT uCodePage ) noexcept;
258 static char unsigned const* GetBomData( UINT uCodePage,
int& nSize ) noexcept;
271 static bool IsAscii(
char unsigned ch ) noexcept;
284 static bool IsFirstByteSjis(
char unsigned ch ) noexcept;
297 static bool IsSecondByteSjis(
char unsigned ch ) noexcept;
310 static bool IsConfirmedFirstByteSjis(
char unsigned ch ) noexcept;
323 static bool IsKanaSjis(
char unsigned ch ) noexcept;
336 static bool IsConfirmedKanaSjis(
char unsigned ch ) noexcept;
349 static bool IsKanaUnicode(
wchar_t ch ) noexcept;
363 static bool GetCodeSizeUtf8(
char unsigned ch,
int& nSize ) noexcept;
379 #pragma managed( pop )
#define CP_UTF16
UTF-16コードページ
virtual HANDLE GetHandle() const noexcept
ファイルハンドル取得関数
#define LIB_COMMON_API
ダイナミックライブラリインポート宣言