|
1 #!/usr/local/bin/perl |
|
2 # This Source Code Form is subject to the terms of the Mozilla Public |
|
3 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 |
|
6 use strict; |
|
7 require "genverifier.pm"; |
|
8 use genverifier; |
|
9 |
|
10 |
|
11 my(@cp1252_cls); |
|
12 my(@cp1252_st); |
|
13 my($cp1252_ver); |
|
14 |
|
15 |
|
16 @cp1252_cls = ( |
|
17 [ 0x00 , 0x00 , 1 ], |
|
18 [ 0x0e , 0x0f , 0 ], |
|
19 [ 0x1b , 0x1b , 0 ], |
|
20 [ 0x81 , 0x81 , 0 ], |
|
21 [ 0x8d , 0x8d , 0 ], |
|
22 [ 0x8f , 0x8f , 0 ], |
|
23 [ 0x90 , 0x90 , 0 ], |
|
24 [ 0x9d , 0x9d , 0 ], |
|
25 [ 0xc0 , 0xd6 , 1 ], |
|
26 [ 0xd8 , 0xf6 , 1 ], |
|
27 [ 0xf8 , 0xff , 1 ], |
|
28 [ 0x8a , 0x8a , 1 ], |
|
29 [ 0x8c , 0x8c , 1 ], |
|
30 [ 0x8e , 0x8e , 1 ], |
|
31 [ 0x9a , 0x9a , 1 ], |
|
32 [ 0x9c , 0x9c , 1 ], |
|
33 [ 0x9e , 0x9e , 1 ], |
|
34 [ 0x9f , 0x9f , 1 ], |
|
35 [ 0x00 , 0xff , 2 ], |
|
36 ); |
|
37 |
|
38 package genverifier; |
|
39 @cp1252_st = ( |
|
40 # 0 1 2 |
|
41 1, 3, 0, # Start State - 0 |
|
42 1, 1, 1, # Error State - 1 |
|
43 2, 2, 2, # ItsMe State - 2 |
|
44 1, 4, 0, # State - 3 |
|
45 1, 5, 4, # State - 4 |
|
46 1, 1, 4, # State - 5 |
|
47 ); |
|
48 |
|
49 |
|
50 $cp1252_ver = genverifier::GenVerifier("CP1252", "windows-1252", |
|
51 \@cp1252_cls, 3, \@cp1252_st); |
|
52 print $cp1252_ver; |
|
53 |
|
54 |
|
55 |