gb2312.h 542 B

12345678910111213141516
  1. #ifndef __GB2312_H__
  2. #define __GB2312_H__
  3. void UTF_8ToUnicode(unsigned short* pOut, char *pText);
  4. void UnicodeToGB2312(char* pOut, unsigned short uData);
  5. void Gb2312ToUnicode(unsigned short* pOut, char *pGb2312Word);
  6. void UnicodeToUTF_8(char* pOut, unsigned short* pText);
  7. int GB2312ToUTF_8_LEN(char *pText, int pLen);
  8. void GB2312ToUTF_8(char *pOut,char *pText, int pLen);
  9. int UTF_8ToGB2312_LEN(char *pText, int pLen);
  10. void UTF_8ToGB2312(char *pOut, char *pText, int pLen);
  11. int Gb2312ToUtf8(char *pGb2312, int len, char **ppUtf8);
  12. #endif