Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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/.
6 use strict;
7 require "genverifier.pm";
8 use genverifier;
11 my(@iso2022kr_cls);
12 my(@iso2022kr_st);
13 my($iso2022kr_ver);
16 #
17 #
18 # ESC - 1
19 # > 0x80 - 2
20 # $ - 3
21 # ) - 4
22 # C - 5
23 #
24 @iso2022kr_cls = (
25 [ 0x01 , 0x1a , 0 ],
26 [ 0x24 , 0x24 , 3 ],
27 [ 0x29 , 0x29 , 4 ],
28 [ 0x43 , 0x43 , 5 ],
29 [ 0x1c , 0x7f , 0 ],
30 [ 0x1b , 0x1b , 1 ],
31 [ 0x00 , 0x00 , 2 ],
32 [ 0x80 , 0xff , 2 ]
33 );
36 #
37 # ESC$)C
38 #
39 package genverifier;
40 @iso2022kr_st = (
41 # 0 1 2 3 4 5
42 0, 3, 1, 0, 0, 0, # Start State - 0
43 1, 1, 1, 1, 1, 1, # Error State - 1
44 2, 2, 2, 2, 2, 2, # ItsMe State - 2
45 1, 1, 1, 4, 1, 1, # state 3 - got ESC
46 1, 1, 1, 1, 5, 1, # state 4 - got ESC $
47 1, 1, 1, 1, 1, 2, # state 5 - got ESC $ )
48 );
50 $iso2022kr_ver = genverifier::GenVerifier("ISO2022KR", "ISO-2022-KR",
51 \@iso2022kr_cls, 6, \@iso2022kr_st);
52 print $iso2022kr_ver;