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