Debian Codegraph @

components/chsdet/src/mbclass/EUCTWLangModel.inc

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