|
|
@ -11,28 +11,32 @@ const char SHORT_CODE_TABLE[32] = { |
|
|
|
'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', |
|
|
|
}; |
|
|
|
|
|
|
|
const char SHORT_CODE_TABLE_REV[26] = { |
|
|
|
// 00 01 02 03 04 05 06 07 08 09
|
|
|
|
9, 10, 11, 12, 13, 14, 15, 16, 0, 17, |
|
|
|
// 10 11 12 13 14 15 16 17 18 19
|
|
|
|
18, 0, 19, 20, 0, 21, 22, 23, 24, 25, |
|
|
|
// 20 21 22 23 24 25
|
|
|
|
const char SHORT_CODE_TABLE_REV[42] = { |
|
|
|
// 00 01 02 03 04 05 06 07 08
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, |
|
|
|
// 09 10 11 12 13 14 15
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, |
|
|
|
// 16 17 18 19 20 21 22 23 24 25
|
|
|
|
9, 10, 11, 12, 13, 14, 15, 16, -1, 17, |
|
|
|
// 26 27 28 29 30 31 32 33 34 35
|
|
|
|
18, -1, 19, 20, -1, 21, 22, 23, 24, 25, |
|
|
|
// 36 37 38 39 40 41
|
|
|
|
26, 27, 28, 29, 30, 31, |
|
|
|
}; |
|
|
|
|
|
|
|
// 00: 1 -> 48
|
|
|
|
// 00: 1 -> 49 (00)
|
|
|
|
// ...
|
|
|
|
// 08: 9 -> 57
|
|
|
|
// 09: A -> 65 (00)
|
|
|
|
// 08: 9 -> 57 (08)
|
|
|
|
// 09: A -> 65 (16)
|
|
|
|
// ...
|
|
|
|
// 16: H -> 72 (07)
|
|
|
|
// 17: J -> 74 (09)
|
|
|
|
// 18: K -> 75 (10)
|
|
|
|
// 19: M -> 77 (12)
|
|
|
|
// 20: N -> 78 (13)
|
|
|
|
// 21: P -> 80 (15)
|
|
|
|
// 16: H -> 72 (23)
|
|
|
|
// 17: J -> 74 (25)
|
|
|
|
// 18: K -> 75 (26)
|
|
|
|
// 19: M -> 77 (28)
|
|
|
|
// 20: N -> 78 (29)
|
|
|
|
// 21: P -> 80 (31)
|
|
|
|
// ...
|
|
|
|
// 31: Z -> 90 (25)
|
|
|
|
// 31: Z -> 90 (41)
|
|
|
|
|
|
|
|
class ShortCode { |
|
|
|
public: |
|
|
|