Bug 461810 - Video content menu should operate on .currentSrc, not .src. r=gavin
[wine-gecko.git] / intl / chardet / tools / geniso2022cn.pl
blob73ad18f8955bc2eb502d3b1185bc335da72e9c18
1 #!/usr/local/bin/perl
2 use strict;
3 require "genverifier.pm";
4 use genverifier;
7 my(@iso2022cn_cls);
8 my(@iso2022cn_st);
9 my($iso2022cn_ver);
14 # ESC - 1
15 # > 0x80 - 2
16 # $ - 3
17 # ) - 4
18 # * - 5
19 # A G - 6
20 # H - 7
21 # N O - 8
23 @iso2022cn_cls = (
24 [ 0x01 , 0x1a , 0 ],
25 [ 0x29 , 0x29 , 3 ],
26 [ 0x43 , 0x43 , 4 ],
27 [ 0x1c , 0x7f , 0 ],
28 [ 0x1b , 0x1b , 1 ],
29 [ 0x00 , 0x00 , 2 ],
30 [ 0x80 , 0xff , 2 ]
35 # ESC$((([)][AG])|([*]H))|[NO])
37 package genverifier;
38 @iso2022cn_st = (
39 # 0 1 2 3 4 5 6 7 8
40 0, 3, 1, 0, 0, 0, 0, 0, 0, # Start State - 0
41 1, 1, 1, 1, 1, 1, 1, 1, 1, # Error State - 1
42 2, 2, 2, 2, 2, 2, 2, 2, 2, # ItsMe State - 2
43 1, 1, 1, 4, 1, 1, 1, 1, 2, # state 3 - got ESC
44 1, 1, 1, 1, 5, 6, 1, 1, 1, # state 4 - got ESC $
45 1, 1, 1, 1, 1, 1, 2, 1, 1, # state 5 - got ESC $ )
46 1, 1, 1, 1, 1, 1, 1, 2, 1, # state 6 - got ESC $ *
49 $iso2022cn_ver = genverifier::GenVerifier("ISO2022CN", "ISO-2022-CN",
50 \@iso2022cn_cls, 9, \@iso2022cn_st);
51 print $iso2022cn_ver;