Debian Codegraph @

components/chsdet/src/mbclass/EUCJPLangModel.inc

raw
1 const
2 EUCJPCharLenTable: array [0..5] of byte = (2, 2, 2, 3, 1, 0);
3
4 //PCK4BITS(5,4,4,4,4,4,4,4), // 00 - 07
5 EUCJP_cls: array [0..255] of byte = (
6 4,4,4,4,4,4,4,4, // 00 - 07
7 4,4,4,4,4,4,5,5, // 08 - 0f
8 4,4,4,4,4,4,4,4, // 10 - 17
9 4,4,4,5,4,4,4,4, // 18 - 1f
10 4,4,4,4,4,4,4,4, // 20 - 27
11 4,4,4,4,4,4,4,4, // 28 - 2f
12 4,4,4,4,4,4,4,4, // 30 - 37
13 4,4,4,4,4,4,4,4, // 38 - 3f
14 4,4,4,4,4,4,4,4, // 40 - 47
15 4,4,4,4,4,4,4,4, // 48 - 4f
16 4,4,4,4,4,4,4,4, // 50 - 57
17 4,4,4,4,4,4,4,4, // 58 - 5f
18 4,4,4,4,4,4,4,4, // 60 - 67
19 4,4,4,4,4,4,4,4, // 68 - 6f
20 4,4,4,4,4,4,4,4, // 70 - 77
21 4,4,4,4,4,4,4,4, // 78 - 7f
22 5,5,5,5,5,5,5,5, // 80 - 87
23 5,5,5,5,5,5,1,3, // 88 - 8f
24 5,5,5,5,5,5,5,5, // 90 - 97
25 5,5,5,5,5,5,5,5, // 98 - 9f
26 5,2,2,2,2,2,2,2, // a0 - a7
27 2,2,2,2,2,2,2,2, // a8 - af
28 2,2,2,2,2,2,2,2, // b0 - b7
29 2,2,2,2,2,2,2,2, // b8 - bf
30 2,2,2,2,2,2,2,2, // c0 - c7
31 2,2,2,2,2,2,2,2, // c8 - cf
32 2,2,2,2,2,2,2,2, // d0 - d7
33 2,2,2,2,2,2,2,2, // d8 - df
34 0,0,0,0,0,0,0,0, // e0 - e7
35 0,0,0,0,0,0,0,0, // e8 - ef
36 0,0,0,0,0,0,0,0, // f0 - f7
37 0,0,0,0,0,0,0,5 // f8 - ff
38 );
39
40 EUCJP_st: array [0..39] of byte = (
41 3, 4, 3, 5,byte(eStart),byte(eError),byte(eError),byte(eError),//00-07
42 byte(eError),byte(eError),byte(eError),byte(eError),byte(eItsMe),byte(eItsMe),byte(eItsMe),byte(eItsMe),//08-0f
43 byte(eItsMe),byte(eItsMe),byte(eStart),byte(eError),byte(eStart),byte(eError),byte(eError),byte(eError),//10-17
44 byte(eError),byte(eError),byte(eStart),byte(eError),byte(eError),byte(eError), 3,byte(eError),//18-1f
45 3,byte(eError),byte(eError),byte(eError),byte(eStart),byte(eStart),byte(eStart),byte(eStart) //20-27
46 );
47
48 EUCJPLangModel: SMModel = (
49 classTable: @EUCJP_cls;
50 classFactor: 6;
51 stateTable: @EUCJP_st;
52 charLenTable: @EUCJPCharLenTable;
53 CharsetID: EUC_JP_CHARSET;
54 );
55 // EUCJPLangModel: SMModel = (
56 // classTable: (
57 // idxsft: eIdxSft4bits;
58 // sftmsk: eSftMsk4bits;
59 // bitsft: eBitSft4bits;
60 // unitmsk: eUnitMsk4bits;
61 // data: @EUCJP_cls;
62 // );
63 // classFactor: 6;
64 // stateTable: (
65 // idxsft: eIdxSft4bits;
66 // sftmsk: eSftMsk4bits;
67 // bitsft: eBitSft4bits;
68 // unitmsk: eUnitMsk4bits;
69 // data: @EUCJP_st;
70 // );
71 // charLenTable: @EUCJPCharLenTable;
72 // CharsetID: EUC_JP_CHARSET;
73 // );