#!perl
#
# for Unicode::Normalize.xs. (cf. Makefile.PL)
#
# Usage: <perl mkheader> in command line
# or <do 'mkheader'> in perl
#
use 5.006;
use strict;
use warnings;
use Carp;
BEGIN {
}
}
|| do "unicode/CombiningClass.pl"
|| croak "$PACKAGE: CombiningClass.pl not found";
|| do "unicode/Decomposition.pl"
|| croak "$PACKAGE: Decomposition.pl not found";
# after _U_stringify(), ($codepoint => $hexstring) for %Canon and %Compat
########## definition of Hangul constants ##########
sub decomposeHangul {
my @ret = (
);
# any element in @ret greater than 0xFF, so no need of u2n conversion.
}
########## getting full decomposion ##########
{
$f = undef;
}
croak "$PACKAGE: neither unicore/CompositionExclusions.txt "
next if /^#/ or /^$/;
s/#.*//;
}
}
##
## converts string "hhhh hhhh hhhh" to a numeric list
##
} else {
}
}
my $listname =
# %04x is bad since it'd place _3046 after _1d157.
} else {
}
} else {
}
}
} else {
$NonStD{ $u } = 1;
} else {
}
$Single{ $u } = 1;
} else {
}
}
}
}
}
# modern HANGUL JUNGSEONG and HANGUL JONGSEONG jamo
foreach my $j (0x1161..0x1175, 0x11A8..0x11C2) {
$Comp2nd{$j} = 1;
}
sub getCanonList {
my @src = @_;
} @src;
# condition @src == @dec is not ok.
}
sub getCompatList {
my @src = @_;
} @src;
# condition @src == @dec is not ok.
}
# exhaustive decomposition
}
# exhaustive decomposition
}
sub _pack_U {
}
sub _U_stringify {
}
}
}
########## writing header files ##########
my @boolfunc = (
{
type => "bool",
hash => \%Exclus,
},
{
type => "bool",
hash => \%Single,
},
{
type => "bool",
hash => \%NonStD,
},
{
type => "bool",
hash => \%Comp2nd,
},
);
print << 'EOF';
/*
*/
}
} else {
}
}
print "\n\t? TRUE : FALSE;\n}\n\n";
}
####################################
my $compinit =
}
my @tripletable = (
{
type => "STDCHAR",
hash => \%Combin,
null => 0,
},
{
type => "char*",
hash => \%Canon,
},
{
type => "char*",
hash => \%Compat,
},
{
hash => \%Comp1st,
},
);
my %val;
/*
*/
}
next if ! $val{ $p };
for (my $r = 0; $r < 256; $r++) {
for (my $c = 0; $c < 256; $c++) {
: $null;
print ',' if $c != 255;
print "\n" if $c % 8 == 7;
}
print "};\n\n";
}
}
next if ! $val{ $p };
for (my $r = 0; $r < 256; $r++) {
: "NULL";
print ',' if $r != 255;
}
print "};\n\n";
}
for (my $p = 0; $p <= 0x10; $p++) {
print ',' if $p != 0x10;
print "\n";
}
print "};\n\n";
}