1 Star 1 Fork 0

李秀杰/CPP Utility Class

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.settings
demo_src
include
XJAny.h
XJBase64.h
XJBufferPool.h
XJBufferPtr.h
XJCharCode.h
XJCurl.h
XJDateTime.h
XJEnv.h
XJEvent.h
XJExcepction.h
XJField.h
XJHexString.h
XJINIProfile.h
XJList.h
XJListAny.h
XJMutex.h
XJOCCI.h
XJPrivateHeap.h
XJRWLock.h
XJSTLHelper.h
XJSemaphore.h
XJSingleton.h
XJStringUtil.h
XJSysHelper.h
XJThreadManager.h
XJTxtLog.h
XJXMLProfile.h
src
.cproject
.project
LICENSE
Makefile
README.md
克隆/下载
XJCharCode.h 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
李秀杰 提交于 10年前 . 完善Makefile
/***********************************************************
* File_Name : XJCharCode.h
* File_Path :
* File_Encode : GBK
* Description : 字符串,字符集转换
*
* OS : Linux, UNIX
* LastVersion : 20130903
*
* Author : LiXiujie(李秀杰)
* Date : 2012-9-3
* Version : 20130903
* Description :
*
* Edit Author :
* Edit Date :
* Version :
* Description :
*
***********************************************************/
#ifndef XJCHARCODE_H_
#define XJCHARCODE_H_
namespace XJUtilClass{
class XJCharCode {
public:
XJCharCode();
virtual ~XJCharCode();
public:
static int utf8togb2312(char *inbuf,int inlen,char *outbuf,int outlen);
static int gb2312toutf8(char *inbuf,int inlen,char *outbuf,int outlen);
static int utf8togbk(char *inbuf,int inlen,char *outbuf,int outlen);
static int gbktoutf8(char *inbuf,int inlen,char *outbuf,int outlen);
private:
static int code_convert(char *from_charset,char *to_charset,char *inbuf,int inlen,char *outbuf,int outlen);
};
} //namespace XJUtilClass
#endif /* XJCHARCODE_H_ */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/UtilityClass/CPP-Utility-Class.git
git@gitee.com:UtilityClass/CPP-Utility-Class.git
UtilityClass
CPP-Utility-Class
CPP Utility Class
master

搜索帮助