CMGDK r49-rc2
|
组合类型 | |
struct | BOMFileHeader |
struct | WideCharConvert< 2 > |
struct | WideCharConvert< 4 > |
struct | UTF16ToWideChar< HGL_LITTLE_ENDIAN > |
struct | UTF16ToWideChar< HGL_BIG_ENDIAN > |
struct | UTF16CharConvert< 2 > |
struct | UTF16CharConvert< 4 > |
struct | WideToUTF16Char< HGL_LITTLE_ENDIAN > |
struct | WideToUTF16Char< HGL_BIG_ENDIAN > |
枚举 | |
enum | ByteOrderMask { bomAnsi = 0, bomUTF8, bomUTF16LE, bomUTF16BE, bomUTF32LE, bomUTF32BE, bomEnd } |
函数 | |
template<int , char > | |
const char * | GetCurWideCharSet () |
template<> | |
const char * | GetCurWideCharSet< 2, HGL_LITTLE_ENDIAN > () |
template<> | |
const char * | GetCurWideCharSet< 2, HGL_BIG_ENDIAN > () |
template<> | |
const char * | GetCurWideCharSet< 4, HGL_LITTLE_ENDIAN > () |
template<> | |
const char * | GetCurWideCharSet< 4, HGL_BIG_ENDIAN > () |
const char * | GetWideCharSet () |
template<typename T > | |
T | EndianSwap (const T value) |
template<> | |
int8 | EndianSwap< int8 > (const int8 value) |
template<> | |
uint8 | EndianSwap< uint8 > (const uint8 value) |
template<typename T > | |
void | EndianSwap (T *value, const int64 count) |
template<typename T > | |
void | EndianSwap (T *dst, const T *src, const int64 count) |
template<typename D , typename S > | |
void | EndianSwap (D *dst, const S *src, const int64 count) |
template<typename T > | |
T | ToBigEndian (T value) |
template<typename T > | |
void | ToBigEndian (T *value, const int64 count) |
template<typename D , typename S > | |
void | ToBigEndian (D *dst, const S *src, const int64 count) |
template<typename T > | |
T | ToLittleEndian (T value) |
template<typename T > | |
void | ToLittleEndian (T *value, const int64 count) |
template<typename D , typename S > | |
void | ToLittleEndian (D *dst, const S *src, const int64 count) |
变量 | |
const BOMFileHeader | BOMData [bomEnd] |
T hgl::endian::EndianSwap | ( | const T | value | ) | [inline] |
void hgl::endian::EndianSwap | ( | T * | value, |
const int64 | count | ||
) | [inline] |
void hgl::endian::EndianSwap | ( | T * | dst, |
const T * | src, | ||
const int64 | count | ||
) | [inline] |
void hgl::endian::EndianSwap | ( | D * | dst, |
const S * | src, | ||
const int64 | count | ||
) | [inline] |
const char* hgl::endian::GetCurWideCharSet | ( | ) |
const char* hgl::endian::GetCurWideCharSet< 2, HGL_BIG_ENDIAN > | ( | ) | [inline] |
const char* hgl::endian::GetCurWideCharSet< 2, HGL_LITTLE_ENDIAN > | ( | ) | [inline] |
const char* hgl::endian::GetCurWideCharSet< 4, HGL_BIG_ENDIAN > | ( | ) | [inline] |
const char* hgl::endian::GetCurWideCharSet< 4, HGL_LITTLE_ENDIAN > | ( | ) | [inline] |
const char* hgl::endian::GetWideCharSet | ( | ) | [inline] |
void hgl::endian::ToBigEndian | ( | D * | dst, |
const S * | src, | ||
const int64 | count | ||
) | [inline] |
void hgl::endian::ToBigEndian | ( | T * | value, |
const int64 | count | ||
) | [inline] |
T hgl::endian::ToBigEndian | ( | T | value | ) |
void hgl::endian::ToLittleEndian | ( | T * | value, |
const int64 | count | ||
) | [inline] |
void hgl::endian::ToLittleEndian | ( | D * | dst, |
const S * | src, | ||
const int64 | count | ||
) | [inline] |
T hgl::endian::ToLittleEndian | ( | T | value | ) |
const BOMFileHeader hgl::endian::BOMData[bomEnd] |
{ {0,{}}, {3,{0xEF,0xBB,0xBF}}, {2,{0xFF,0xFE}}, {2,{0xFE,0xFF}}, {4,{0xFF,0xFE,0x00,0x00}}, {4,{0x00,0x00,0XFE,0xFF}} }