Bug 461810 - Video content menu should operate on .currentSrc, not .src. r=gavin
[wine-gecko.git] / intl / chardet / tools / gengb18030.pl
blob2218d289044a67e4446fdda10f699e7c984199b0
1 #!/usr/local/bin/perl
2 use strict;
3 require "genverifier.pm";
4 use genverifier;
7 my(@gb18030_cls);
8 my(@gb18030_st);
9 my($gb18030_ver);
12 @gb18030_cls = (
13 [ 0x0e , 0x0f , 0 ],
14 [ 0x1b , 0x1b , 0 ],
15 [ 0x30 , 0x39 , 3 ],
16 [ 0x00 , 0x3f , 1 ],
17 [ 0x40 , 0x7e , 2 ],
18 [ 0x7f , 0x7f , 4 ],
19 [ 0x80 , 0x80 , 5 ],
20 [ 0x81 , 0xfe , 6 ],
21 [ 0xff , 0xff , 0 ],
24 package genverifier;
25 @gb18030_st = (
26 # 0 1 2 3 4 5 6
27 1, 0, 0, 0, 0, 0, 3, # state 0
28 1, 1, 1, 1, 1, 1, 1, # Error State - 1
29 2, 2, 2, 2, 2, 2, 2, # ItsMe State - 2
30 1, 1, 0, 4, 1, 0, 0, # state 3, multibytes, 1st byte identified
31 1, 1, 1, 1, 1, 1, 5, # state 4, multibytes, 2nd byte identified
32 1, 1, 1, 2, 1, 1, 1, # state 5, multibytes, 3rd byte identified
36 $gb18030_ver = genverifier::GenVerifier("gb18030", "gb18030", \@gb18030_cls, 7, \@gb18030_st);
37 print $gb18030_ver;