GrabBag/VrUtils/Inc/VrCodeFormatUtils.h

26 lines
628 B
C
Raw Permalink Normal View History

2025-07-23 01:35:14 +08:00
#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);
}