repo.or.cz
/
wine-gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 454376 add -lCrun -lCstd for Solaris OS_LIBS, r=bsmedberg
[wine-gecko.git]
/
intl
/
chardet
/
tools
/
genbig5.pl
blob
ffad3cc2f013cbc90cd0451fd58dc8d870b68dd5
1
#!/usr/local/bin/perl
2
use
strict
;
3
require
"genverifier.pm"
;
4
use
genverifier
;
5
6
7
my
(
@big5_cls
);
8
my
(
@big5_st
);
9
my
(
$big5_ver
);
10
11
12
@big5_cls
= (
13
[
0x00
,
0x00
,
1
],
14
[
0x0e
,
0x0f
,
0
],
15
[
0x1b
,
0x1b
,
0
],
16
[
0x01
,
0x3f
,
1
],
17
[
0x40
,
0x7e
,
2
],
18
[
0x7f
,
0x7f
,
1
],
19
[
0xff
,
0xff
,
0
],
20
[
0x80
,
0xa0
,
4
],
21
[
0xa1
,
0xfe
,
3
],
22
);
23
24
package
genverifier
;
25
@big5_st
= (
26
# 0 1 2 3 4
27
1
,
0
,
0
,
3
,
1
,
# state 0
28
1
,
1
,
1
,
1
,
1
,
# Error State - 1
29
2
,
2
,
2
,
2
,
2
,
# ItsMe State - 2
30
1
,
1
,
0
,
0
,
0
,
# state 3
31
);
32
33
34
$big5_ver
=
genverifier
::
GenVerifier
(
"BIG5"
,
"Big5"
,
\
@big5_cls
,
5
,
\
@big5_st
);
35
print
$big5_ver
;
36
37
38