26 lines
603 B
C
26 lines
603 B
C
|
|
#pragma once
|
|||
|
|
|
|||
|
|
namespace CVrCodeFormatUtils
|
|||
|
|
{
|
|||
|
|
//GB2312<31><32>UTF-8<><38>ת<EFBFBD><D7AA>
|
|||
|
|
int GB2312ToUtf8(const char* gb2312, char* utf8);
|
|||
|
|
|
|||
|
|
//<2F>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD>utf8
|
|||
|
|
bool IsTextUTF8(const char* str, long length);
|
|||
|
|
|
|||
|
|
//UTF-8<><38>GB2312<31><32>ת<EFBFBD><D7AA>
|
|||
|
|
int Utf8ToGB2312(const char* utf8, char* gb2312);
|
|||
|
|
|
|||
|
|
//GB2312<31><32>Unicode<64><65>ת<EFBFBD><D7AA>
|
|||
|
|
int GB2312ToUnicode(const char* gb2312, char* unicode);
|
|||
|
|
|
|||
|
|
//Unicode<64><65>GB2312<31><32>ת<EFBFBD><D7AA>
|
|||
|
|
int UnicodeToGB2312(const char* unicode, int size, char*gb2312);
|
|||
|
|
|
|||
|
|
//UTF-8<><38>Unicode<64><65>ת<EFBFBD><D7AA>
|
|||
|
|
int Utf8ToUnicode(const char* utf8, char*unicode);
|
|||
|
|
|
|||
|
|
//Unicode<64><65>UTF-8<><38>ת<EFBFBD><D7AA>
|
|||
|
|
int UnicodeToUtf8(const char* unicode, int size, char* utf8);
|
|||
|
|
}
|