#include "qgb18030codec.h"
Clases |
| struct | indexTbl_t |
| class | QGb18030Decoder |
| class | QGbkDecoder |
| class | QGb2312Decoder |
'defines' |
| #define | InRange(c, lower, upper) (((c) >= (lower)) && ((c) <= (upper))) |
| #define | IsLatin(c) ((c) <= 0x7F) |
| #define | IsByteInGb2312(c) (InRange((c), 0xA1, 0xFE)) |
| #define | Is1stByte(c) (InRange((c), 0x81, 0xFE)) |
| #define | Is2ndByteIn2Bytes(c) (InRange((c), 0x40, 0xFE) && (c) != 0x7F) |
| #define | Is2ndByteIn4Bytes(c) (InRange((c), 0x30, 0x39)) |
| #define | Is2ndByte(c) (Is2ndByteIn2Bytes(c) || Is2ndByteIn4Bytes(c)) |
| #define | Is3rdByte(c) (InRange((c), 0x81, 0xFE)) |
| #define | Is4thByte(c) (InRange((c), 0x30, 0x39)) |
| #define | QValidChar(u) ((u) ? QChar((ushort)(u)) : QChar::replacement) |
| #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)) |
Funciones |
| int | qt_UnicodeToGbk (uint unicode, uchar *gbchar) |
Documentación de los 'defines'
| #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)) |
Documentación de las funciones