Qt 4.8
|
#include "qgb18030codec.h"
Go to the source code of this file.
Classes | |
struct | indexTbl_t |
Macros | |
#define | InRange(c, lower, upper) (((c) >= (lower)) && ((c) <= (upper))) |
#define | Is1stByte(c) (InRange((c), 0x81, 0xFE)) |
#define | Is2ndByte(c) (Is2ndByteIn2Bytes(c) || Is2ndByteIn4Bytes(c)) |
#define | Is2ndByteIn2Bytes(c) (InRange((c), 0x40, 0xFE) && (c) != 0x7F) |
#define | Is2ndByteIn4Bytes(c) (InRange((c), 0x30, 0x39)) |
#define | Is3rdByte(c) (InRange((c), 0x81, 0xFE)) |
#define | Is4thByte(c) (InRange((c), 0x30, 0x39)) |
#define | IsByteInGb2312(c) (InRange((c), 0xA1, 0xFE)) |
#define | IsLatin(c) ((c) <= 0x7F) |
#define | IsUDA1(a, b) (InRange((a), 0xAA, 0xAF) && InRange((b), 0xA1, 0xFE)) |
#define | IsUDA2(a, b) (InRange((a), 0xF8, 0xFE) && InRange((b), 0xA1, 0xFE)) |
#define | IsUDA3(a, b) (InRange((a), 0xA1, 0xA7) && InRange((b), 0x40, 0xA0) && ((b) != 0x7F)) |
#define | qValidChar(u) ((u) ? (u) : static_cast<ushort>(QChar::ReplacementCharacter)) |
Functions | |
static uint | gb4lin_to_gb (uint gb4lin) |
static uint | qt_Gb18030ToUnicode (const uchar *gbstr, int &len) |
static int | qt_UnicodeToGb18030 (uint unicode, uchar *gbchar) |
int | qt_UnicodeToGbk (uint unicode, uchar *gbchar) |
Variables | |
static quint16 const | gb18030_2byte_to_ucs [22046] |
static quint16 const | gb18030_4byte_to_ucs [6793] |
static const indexTbl_t | gb18030_to_ucs_index [154] |
static quint16 const | ucs_to_gb18030 [28839] |
static const indexTbl_t | ucs_to_gb18030_index [256] |
Definition at line 53 of file qgb18030codec.cpp.
Referenced by qt_Gb18030ToUnicode(), qt_UnicodeToGb18030(), and qt_UnicodeToGbk().
Definition at line 56 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertToUnicode(), QGbkCodec::convertToUnicode(), and qt_Gb18030ToUnicode().
#define Is2ndByte | ( | c | ) | (Is2ndByteIn2Bytes(c) || Is2ndByteIn4Bytes(c)) |
Definition at line 59 of file qgb18030codec.cpp.
Definition at line 57 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertToUnicode(), QGbkCodec::convertToUnicode(), and qt_Gb18030ToUnicode().
Definition at line 58 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertToUnicode(), and qt_Gb18030ToUnicode().
Definition at line 60 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertToUnicode(), and qt_Gb18030ToUnicode().
Definition at line 61 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertToUnicode(), and qt_Gb18030ToUnicode().
Definition at line 55 of file qgb18030codec.cpp.
Referenced by QGb2312Codec::convertToUnicode().
Definition at line 54 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertFromUnicode(), QGb18030Codec::convertToUnicode(), QGbkCodec::convertToUnicode(), QGb2312Codec::convertToUnicode(), qt_Gb18030ToUnicode(), qt_UnicodeToGb18030(), and qt_UnicodeToGbk().
Definition at line 68 of file qgb18030codec.cpp.
Referenced by qt_Gb18030ToUnicode().
Definition at line 69 of file qgb18030codec.cpp.
Referenced by qt_Gb18030ToUnicode().
Definition at line 70 of file qgb18030codec.cpp.
Referenced by qt_Gb18030ToUnicode().
#define qValidChar | ( | u | ) | ((u) ? (u) : static_cast<ushort>(QChar::ReplacementCharacter)) |
Definition at line 63 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertToUnicode(), QGbkCodec::convertToUnicode(), and QGb2312Codec::convertToUnicode().
Definition at line 9022 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertToUnicode(), QGbkCodec::convertToUnicode(), and QGb2312Codec::convertToUnicode().
Definition at line 9117 of file qgb18030codec.cpp.
Referenced by QGb18030Codec::convertFromUnicode().
Definition at line 9210 of file qgb18030codec.cpp.
Referenced by QGbkCodec::convertFromUnicode(), QGb2312Codec::convertFromUnicode(), QFontGb2312Codec::convertFromUnicode(), and QFontGbkCodec::convertFromUnicode().
|
static |
Definition at line 4577 of file qgb18030codec.cpp.
Referenced by qt_Gb18030ToUnicode().
|
static |
Definition at line 7629 of file qgb18030codec.cpp.
Referenced by qt_Gb18030ToUnicode().
|
static |
Definition at line 736 of file qgb18030codec.cpp.
|
static |
Definition at line 947 of file qgb18030codec.cpp.
Referenced by qt_UnicodeToGb18030(), and qt_UnicodeToGbk().
|
static |
Definition at line 816 of file qgb18030codec.cpp.