📄 cntrn.h
字号:
#ifndef _CNTRN_H_
#define _CNTRN_H_
#include <wtypes.h>
#ifdef CNTRN_EXPORTS
#define CNTRN_API __declspec(dllexport)
#else
#define CNTRN_API __declspec(dllimport)
#endif
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//#define GBK_CODE 0
enum CN_CODE
{
GBK_CODESET,
GB2312_CODESET,
BIG5_CODESET
};
#define DEFAULT_CN_CODESET GBK_CODESET
#define CODEPAGE_CHINESE_SIMPLIFIED 936
#define CODEPAGE_CHINESE_TRADITIONAL 950
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//function
/*
function: Get JianPin code.
para:
lpSource,lpDist
nSourceLen is the byte length of the source buffer.
nDistLen is the total size of the lpDest buffer, which must be at least the nSourceLen.
return value:
nDistLen
example: input: 获得中文简拼码
out: hdzwjpm
*/
int CNTRN_API GetHZJianPinCode(LPCSTR lpSource/*in*/,
int nSourceLen/*in*/,
LPSTR lpDist/*out*/,
int &nDistLen/*out*/,
BOOL bLower = TRUE/*in*/,
int nCodeSet = DEFAULT_CN_CODESET/*in,reverve, useless*/);
int CNTRN_API QJ2BJ(LPCSTR lpSource/*in*/,
int nSourceLen/*in*/,
LPSTR lpDist/*out*/,
int &nDistLen/*out*/
);
// い地
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -