⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unicheck.h

📁 WinMerge可以显示两个文件的不同之处
💻 H
字号:
#ifndef unicheck_h_included
#define unicheck_h_included

/**
 * @brief Information about whether a file is in a Unicode encoding
 */
struct unicodingInfo
{
	typedef enum { 
		UNICODE_NONE,
		UNICODE_UTF8,     // UTF-8
		UNICODE_UCS2LE,   // UCS-2LE or UTF-16LE
		UNICODE_UCS2BE,   // UCS-2BE or UTF-16BE
		UNICODE_UTF32LE,  // UTF-32LE
		UNICODE_UTF32BE   // UTF-32BE
	} UNICODE_TYPE;
	UNICODE_TYPE type;
	int bom_width; // in bytes
	int char_width; // in bytes (1 for NONE or UTF-8)
	int low_byte; // offset in bytes
};

bool CheckForBom(char * buffer, int len, unicodingInfo * uinfo);

#endif // unicheck_h_included

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -