1 Star 0 Fork 1.5K

Penn.Lin / ndd

forked from 爬山虎 / ndd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Encode.h 956 Bytes
一键复制 编辑 原始数据 按行查看 历史
#pragma once
#include <QtGlobal>
//#define GBK_
#include "rcglobal.h"
class Encode
{
public:
Encode();
~Encode();
static CODE_ID getCodeByName(QString name);
static QString getLineEndById(RC_LINE_FORM id);
static QString getCodeNameById(CODE_ID id);
static QByteArray getEncodeStartFlagByte(CODE_ID code);
static CODE_ID DetectEncode(const uchar* pBuffer, int length,int &skip);
static bool tranGbkToUNICODE(const char* pText, int length, QString &out);
static bool tranUtf8ToUNICODE(const char * pText, int length, QString & out);
static QString getQtCodecNameById(CODE_ID id);
static bool tranStrToUNICODE(CODE_ID code, const char * pText, int length, QString & out);
static CODE_ID CheckUnicodeWithoutBOM(const uchar * pText, int length);
static CODE_ID CheckUnicodeWithoutBOM(const uchar * pText, int length, QString & outUnicodeText);
static bool CheckTextIsAllAscii(const uchar * pText, int length);
};
C++
1
https://gitee.com/penn6699/notepad--.git
git@gitee.com:penn6699/notepad--.git
penn6699
notepad--
ndd
master

搜索帮助