1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Use radix tree for character encoding conversions.

Replace the mapping tables used to convert between UTF-8 and other
character encodings with new radix tree-based maps. Looking up an entry in
a radix tree is much faster than a binary search in the old maps. As a
bonus, the radix tree representation is also more compact, making the
binaries slightly smaller.

The "combined" maps work the same as before, with binary search. They are
much smaller than the main tables, so it doesn't matter so much. However,
the "combined" maps are now stored in the same .map files as the main
tables. This seems more clear, since they're always used together, and
generated from the same source files.

Patch by Kyotaro Horiguchi, with lot of hacking by me at various stages.
Reviewed by Michael Paquier and Daniel Gustafsson.

Discussion: https://www.postgresql.org/message-id/20170306.171609.204324917.horiguchi.kyotaro%40lab.ntt.co.jp
This commit is contained in:
Heikki Linnakangas
2017-03-13 20:46:39 +02:00
parent 84892692fd
commit aeed17d000
111 changed files with 147837 additions and 367441 deletions

View File

@ -52,10 +52,8 @@ SPECIALMAPS = euc_cn_to_utf8.map utf8_to_euc_cn.map \
big5_to_utf8.map utf8_to_big5.map \
johab_to_utf8.map utf8_to_johab.map \
uhc_to_utf8.map utf8_to_uhc.map \
euc_jis_2004_to_utf8.map euc_jis_2004_to_utf8_combined.map \
utf8_to_euc_jis_2004.map utf8_to_euc_jis_2004_combined.map \
shift_jis_2004_to_utf8.map shift_jis_2004_to_utf8_combined.map \
utf8_to_shift_jis_2004.map utf8_to_shift_jis_2004_combined.map
euc_jis_2004_to_utf8.map utf8_to_euc_jis_2004.map \
shift_jis_2004_to_utf8.map utf8_to_shift_jis_2004.map
MAPS = $(GENERICMAPS) $(SPECIALMAPS)
@ -104,10 +102,10 @@ gb18030_to_utf8.map utf8_to_gb18030.map: UCS_to_GB18030.pl gb-18030-2000.xml
big5_to_utf8.map utf8_to_big5.map: UCS_to_BIG5.pl BIG5.TXT CP950.TXT
$(PERL) $<
euc_jis_2004_to_utf8.map euc_jis_2004_to_utf8_combined.map utf8_to_euc_jis_2004.map utf8_to_euc_jis_2004_combined.map: UCS_to_EUC_JIS_2004.pl euc-jis-2004-std.txt
euc_jis_2004_to_utf8.map utf8_to_euc_jis_2004.map: UCS_to_EUC_JIS_2004.pl euc-jis-2004-std.txt
$(PERL) $<
shift_jis_2004_to_utf8.map shift_jis_2004_to_utf8_combined.map utf8_to_shift_jis_2004.map utf8_to_shift_jis_2004_combined.map: UCS_to_SHIFT_JIS_2004.pl sjis-0213-2004-std.txt
shift_jis_2004_to_utf8.map utf8_to_shift_jis_2004.map: UCS_to_SHIFT_JIS_2004.pl sjis-0213-2004-std.txt
$(PERL) $<
distclean: clean

View File

@ -25,7 +25,9 @@
# # and Unicode name (not used in this script)
use strict;
require convutils;
use convutils;
my $this_script = $0;
# Load BIG5.TXT
my $all = &read_source("BIG5.TXT");
@ -47,7 +49,9 @@ foreach my $i (@$cp950txt) {
push @$all, {code => $code,
ucs => $ucs,
comment => $i->{comment},
direction => "both"};
direction => BOTH,
f => $i->{f},
l => $i->{l} };
}
}
@ -60,9 +64,9 @@ foreach my $i (@$all) {
# but for historical reasons, we map the first one of them.
if ($i->{ucs} == 0xFFFD && $i->{code} != 0xA15A)
{
$i->{direction} = "to_unicode";
$i->{direction} = TO_UNICODE;
}
}
# Output
print_tables("BIG5", $all);
print_conversion_tables($this_script, "BIG5", $all);

View File

@ -14,7 +14,9 @@
# and the "b" field is the hex byte sequence for GB18030
use strict;
require convutils;
use convutils;
my $this_script = $0;
# Read the input
@ -68,9 +70,11 @@ while (<$in>)
push @mapping, {
ucs => $ucs,
code => $code,
direction => 'both'
direction => BOTH,
f => $in_file,
l => $.
};
}
close($in);
print_tables("EUC_CN", \@mapping);
print_conversion_tables($this_script, "EUC_CN", \@mapping);

View File

@ -8,7 +8,9 @@
# "euc-jis-2004-std.txt" (http://x0213.org)
use strict;
require convutils;
use convutils;
my $this_script = $0;
# first generate UTF-8 --> EUC_JIS_2004 table
@ -29,12 +31,14 @@ while (my $line = <$in>)
my $ucs1 = hex($u1);
my $ucs2 = hex($u2);
push @all, { direction => 'both',
push @all, { direction => BOTH,
ucs => $ucs1,
ucs_second => $ucs2,
code => $code,
comment => $rest };
next;
comment => $rest,
f => $in_file,
l => $.
};
}
elsif ($line =~ /^0x(.*)[ \t]*U\+(.*)[ \t]*#(.*)$/)
{
@ -45,9 +49,15 @@ while (my $line = <$in>)
next if ($code < 0x80 && $ucs < 0x80);
push @all, { direction => 'both', ucs => $ucs, code => $code, comment => $rest };
push @all, { direction => BOTH,
ucs => $ucs,
code => $code,
comment => $rest,
f => $in_file,
l => $.
};
}
}
close($in);
print_tables("EUC_JIS_2004", \@all, 1);
print_conversion_tables($this_script, "EUC_JIS_2004", \@all);

View File

@ -12,7 +12,9 @@
# organization's ftp site.
use strict;
require convutils;
use convutils;
my $this_script = $0;
# Load JIS0212.TXT
my $jis0212 = &read_source("JIS0212.TXT");
@ -23,12 +25,12 @@ foreach my $i (@$jis0212) {
# We have a different mapping for this in the EUC_JP to UTF-8 direction.
if ($i->{code} == 0x2243)
{
$i->{direction} = "from_unicode";
$i->{direction} = FROM_UNICODE;
}
if ($i->{code} == 0x2271)
{
$i->{direction} = "to_unicode";
$i->{direction} = TO_UNICODE;
}
if ($i->{ucs} >= 0x080)
@ -79,14 +81,14 @@ foreach my $i (@mapping) {
$sjis >= 0xfa54 && $sjis <= 0xfa56 ||
$sjis >= 0xfa58 && $sjis <= 0xfc4b)
{
$i->{direction} = "none";
$i->{direction} = NONE;
next;
}
# These SJIS characters are only in the UTF-8 to EUC_JP table
if ($sjis == 0xeefa || $sjis == 0xeefb || $sjis == 0xeefc)
{
$i->{direction} = "from_unicode";
$i->{direction} = FROM_UNICODE;
next;
}
@ -95,103 +97,104 @@ foreach my $i (@mapping) {
$sjis == 0x879a || $sjis == 0x879b || $sjis == 0x879c ||
($sjis >= 0xfa4a && $sjis <= 0xfa53))
{
$i->{direction} = "to_unicode";
$i->{direction} = TO_UNICODE;
next;
}
}
push @mapping, (
{direction => 'both', ucs => 0x4efc, code => 0x8ff4af, comment => '# CJK(4EFC)'},
{direction => 'both', ucs => 0x50f4, code => 0x8ff4b0, comment => '# CJK(50F4)'},
{direction => 'both', ucs => 0x51EC, code => 0x8ff4b1, comment => '# CJK(51EC)'},
{direction => 'both', ucs => 0x5307, code => 0x8ff4b2, comment => '# CJK(5307)'},
{direction => 'both', ucs => 0x5324, code => 0x8ff4b3, comment => '# CJK(5324)'},
{direction => 'both', ucs => 0x548A, code => 0x8ff4b5, comment => '# CJK(548A)'},
{direction => 'both', ucs => 0x5759, code => 0x8ff4b6, comment => '# CJK(5759)'},
{direction => 'both', ucs => 0x589E, code => 0x8ff4b9, comment => '# CJK(589E)'},
{direction => 'both', ucs => 0x5BEC, code => 0x8ff4ba, comment => '# CJK(5BEC)'},
{direction => 'both', ucs => 0x5CF5, code => 0x8ff4bb, comment => '# CJK(5CF5)'},
{direction => 'both', ucs => 0x5D53, code => 0x8ff4bc, comment => '# CJK(5D53)'},
{direction => 'both', ucs => 0x5FB7, code => 0x8ff4be, comment => '# CJK(5FB7)'},
{direction => 'both', ucs => 0x6085, code => 0x8ff4bf, comment => '# CJK(6085)'},
{direction => 'both', ucs => 0x6120, code => 0x8ff4c0, comment => '# CJK(6120)'},
{direction => 'both', ucs => 0x654E, code => 0x8ff4c1, comment => '# CJK(654E)'},
{direction => 'both', ucs => 0x663B, code => 0x8ff4c2, comment => '# CJK(663B)'},
{direction => 'both', ucs => 0x6665, code => 0x8ff4c3, comment => '# CJK(6665)'},
{direction => 'both', ucs => 0x6801, code => 0x8ff4c6, comment => '# CJK(6801)'},
{direction => 'both', ucs => 0x6A6B, code => 0x8ff4c9, comment => '# CJK(6A6B)'},
{direction => 'both', ucs => 0x6AE2, code => 0x8ff4ca, comment => '# CJK(6AE2)'},
{direction => 'both', ucs => 0x6DF2, code => 0x8ff4cc, comment => '# CJK(6DF2)'},
{direction => 'both', ucs => 0x6DF8, code => 0x8ff4cb, comment => '# CJK(6DF8)'},
{direction => 'both', ucs => 0x7028, code => 0x8ff4cd, comment => '# CJK(7028)'},
{direction => 'both', ucs => 0x70BB, code => 0x8ff4ae, comment => '# CJK(70BB)'},
{direction => 'both', ucs => 0x7501, code => 0x8ff4d0, comment => '# CJK(7501)'},
{direction => 'both', ucs => 0x7682, code => 0x8ff4d1, comment => '# CJK(7682)'},
{direction => 'both', ucs => 0x769E, code => 0x8ff4d2, comment => '# CJK(769E)'},
{direction => 'both', ucs => 0x7930, code => 0x8ff4d4, comment => '# CJK(7930)'},
{direction => 'both', ucs => 0x7AE7, code => 0x8ff4d9, comment => '# CJK(7AE7)'},
{direction => 'both', ucs => 0x7DA0, code => 0x8ff4dc, comment => '# CJK(7DA0)'},
{direction => 'both', ucs => 0x7DD6, code => 0x8ff4dd, comment => '# CJK(7DD6)'},
{direction => 'both', ucs => 0x8362, code => 0x8ff4df, comment => '# CJK(8362)'},
{direction => 'both', ucs => 0x85B0, code => 0x8ff4e1, comment => '# CJK(85B0)'},
{direction => 'both', ucs => 0x8807, code => 0x8ff4e4, comment => '# CJK(8807)'},
{direction => 'both', ucs => 0x8B7F, code => 0x8ff4e6, comment => '# CJK(8B7F)'},
{direction => 'both', ucs => 0x8CF4, code => 0x8ff4e7, comment => '# CJK(8CF4)'},
{direction => 'both', ucs => 0x8D76, code => 0x8ff4e8, comment => '# CJK(8D76)'},
{direction => 'both', ucs => 0x90DE, code => 0x8ff4ec, comment => '# CJK(90DE)'},
{direction => 'both', ucs => 0x9115, code => 0x8ff4ee, comment => '# CJK(9115)'},
{direction => 'both', ucs => 0x9592, code => 0x8ff4f1, comment => '# CJK(9592)'},
{direction => 'both', ucs => 0x973B, code => 0x8ff4f4, comment => '# CJK(973B)'},
{direction => 'both', ucs => 0x974D, code => 0x8ff4f5, comment => '# CJK(974D)'},
{direction => 'both', ucs => 0x9751, code => 0x8ff4f6, comment => '# CJK(9751)'},
{direction => 'both', ucs => 0x999E, code => 0x8ff4fa, comment => '# CJK(999E)'},
{direction => 'both', ucs => 0x9AD9, code => 0x8ff4fb, comment => '# CJK(9AD9)'},
{direction => 'both', ucs => 0x9B72, code => 0x8ff4fc, comment => '# CJK(9B72)'},
{direction => 'both', ucs => 0x9ED1, code => 0x8ff4fe, comment => '# CJK(9ED1)'},
{direction => 'both', ucs => 0xF929, code => 0x8ff4c5, comment => '# CJK COMPATIBILITY IDEOGRAPH-F929'},
{direction => 'both', ucs => 0xF9DC, code => 0x8ff4f2, comment => '# CJK COMPATIBILITY IDEOGRAPH-F9DC'},
{direction => 'both', ucs => 0xFA0E, code => 0x8ff4b4, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA0E'},
{direction => 'both', ucs => 0xFA0F, code => 0x8ff4b7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA0F'},
{direction => 'both', ucs => 0xFA10, code => 0x8ff4b8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA10'},
{direction => 'both', ucs => 0xFA11, code => 0x8ff4bd, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA11'},
{direction => 'both', ucs => 0xFA12, code => 0x8ff4c4, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA12'},
{direction => 'both', ucs => 0xFA13, code => 0x8ff4c7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA13'},
{direction => 'both', ucs => 0xFA14, code => 0x8ff4c8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA14'},
{direction => 'both', ucs => 0xFA15, code => 0x8ff4ce, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA15'},
{direction => 'both', ucs => 0xFA16, code => 0x8ff4cf, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA16'},
{direction => 'both', ucs => 0xFA17, code => 0x8ff4d3, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA17'},
{direction => 'both', ucs => 0xFA18, code => 0x8ff4d5, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA18'},
{direction => 'both', ucs => 0xFA19, code => 0x8ff4d6, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA19'},
{direction => 'both', ucs => 0xFA1A, code => 0x8ff4d7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1A'},
{direction => 'both', ucs => 0xFA1B, code => 0x8ff4d8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1B'},
{direction => 'both', ucs => 0xFA1C, code => 0x8ff4da, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1C'},
{direction => 'both', ucs => 0xFA1D, code => 0x8ff4db, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1D'},
{direction => 'both', ucs => 0xFA1E, code => 0x8ff4de, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1E'},
{direction => 'both', ucs => 0xFA1F, code => 0x8ff4e0, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1F'},
{direction => 'both', ucs => 0xFA20, code => 0x8ff4e2, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA20'},
{direction => 'both', ucs => 0xFA21, code => 0x8ff4e3, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA21'},
{direction => 'both', ucs => 0xFA22, code => 0x8ff4e5, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA22'},
{direction => 'both', ucs => 0xFA23, code => 0x8ff4e9, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA23'},
{direction => 'both', ucs => 0xFA24, code => 0x8ff4ea, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA24'},
{direction => 'both', ucs => 0xFA25, code => 0x8ff4eb, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA25'},
{direction => 'both', ucs => 0xFA26, code => 0x8ff4ed, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA26'},
{direction => 'both', ucs => 0xFA27, code => 0x8ff4ef, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA27'},
{direction => 'both', ucs => 0xFA28, code => 0x8ff4f0, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA28'},
{direction => 'both', ucs => 0xFA29, code => 0x8ff4f3, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA29'},
{direction => 'both', ucs => 0xFA2A, code => 0x8ff4f7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2A'},
{direction => 'both', ucs => 0xFA2B, code => 0x8ff4f8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2B'},
{direction => 'both', ucs => 0xFA2C, code => 0x8ff4f9, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2C'},
{direction => 'both', ucs => 0xFA2D, code => 0x8ff4fd, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2D'},
{direction => 'both', ucs => 0xFF07, code => 0x8ff4a9, comment => '# FULLWIDTH APOSTROPHE'},
{direction => 'both', ucs => 0xFFE4, code => 0x8fa2c3, comment => '# FULLWIDTH BROKEN BAR'},
{direction => BOTH, ucs => 0x4efc, code => 0x8ff4af, comment => '# CJK(4EFC)'},
{direction => BOTH, ucs => 0x50f4, code => 0x8ff4b0, comment => '# CJK(50F4)'},
{direction => BOTH, ucs => 0x51EC, code => 0x8ff4b1, comment => '# CJK(51EC)'},
{direction => BOTH, ucs => 0x5307, code => 0x8ff4b2, comment => '# CJK(5307)'},
{direction => BOTH, ucs => 0x5324, code => 0x8ff4b3, comment => '# CJK(5324)'},
{direction => BOTH, ucs => 0x548A, code => 0x8ff4b5, comment => '# CJK(548A)'},
{direction => BOTH, ucs => 0x5759, code => 0x8ff4b6, comment => '# CJK(5759)'},
{direction => BOTH, ucs => 0x589E, code => 0x8ff4b9, comment => '# CJK(589E)'},
{direction => BOTH, ucs => 0x5BEC, code => 0x8ff4ba, comment => '# CJK(5BEC)'},
{direction => BOTH, ucs => 0x5CF5, code => 0x8ff4bb, comment => '# CJK(5CF5)'},
{direction => BOTH, ucs => 0x5D53, code => 0x8ff4bc, comment => '# CJK(5D53)'},
{direction => BOTH, ucs => 0x5FB7, code => 0x8ff4be, comment => '# CJK(5FB7)'},
{direction => BOTH, ucs => 0x6085, code => 0x8ff4bf, comment => '# CJK(6085)'},
{direction => BOTH, ucs => 0x6120, code => 0x8ff4c0, comment => '# CJK(6120)'},
{direction => BOTH, ucs => 0x654E, code => 0x8ff4c1, comment => '# CJK(654E)'},
{direction => BOTH, ucs => 0x663B, code => 0x8ff4c2, comment => '# CJK(663B)'},
{direction => BOTH, ucs => 0x6665, code => 0x8ff4c3, comment => '# CJK(6665)'},
{direction => BOTH, ucs => 0x6801, code => 0x8ff4c6, comment => '# CJK(6801)'},
{direction => BOTH, ucs => 0x6A6B, code => 0x8ff4c9, comment => '# CJK(6A6B)'},
{direction => BOTH, ucs => 0x6AE2, code => 0x8ff4ca, comment => '# CJK(6AE2)'},
{direction => BOTH, ucs => 0x6DF2, code => 0x8ff4cc, comment => '# CJK(6DF2)'},
{direction => BOTH, ucs => 0x6DF8, code => 0x8ff4cb, comment => '# CJK(6DF8)'},
{direction => BOTH, ucs => 0x7028, code => 0x8ff4cd, comment => '# CJK(7028)'},
{direction => BOTH, ucs => 0x70BB, code => 0x8ff4ae, comment => '# CJK(70BB)'},
{direction => BOTH, ucs => 0x7501, code => 0x8ff4d0, comment => '# CJK(7501)'},
{direction => BOTH, ucs => 0x7682, code => 0x8ff4d1, comment => '# CJK(7682)'},
{direction => BOTH, ucs => 0x769E, code => 0x8ff4d2, comment => '# CJK(769E)'},
{direction => BOTH, ucs => 0x7930, code => 0x8ff4d4, comment => '# CJK(7930)'},
{direction => BOTH, ucs => 0x7AE7, code => 0x8ff4d9, comment => '# CJK(7AE7)'},
{direction => BOTH, ucs => 0x7DA0, code => 0x8ff4dc, comment => '# CJK(7DA0)'},
{direction => BOTH, ucs => 0x7DD6, code => 0x8ff4dd, comment => '# CJK(7DD6)'},
{direction => BOTH, ucs => 0x8362, code => 0x8ff4df, comment => '# CJK(8362)'},
{direction => BOTH, ucs => 0x85B0, code => 0x8ff4e1, comment => '# CJK(85B0)'},
{direction => BOTH, ucs => 0x8807, code => 0x8ff4e4, comment => '# CJK(8807)'},
{direction => BOTH, ucs => 0x8B7F, code => 0x8ff4e6, comment => '# CJK(8B7F)'},
{direction => BOTH, ucs => 0x8CF4, code => 0x8ff4e7, comment => '# CJK(8CF4)'},
{direction => BOTH, ucs => 0x8D76, code => 0x8ff4e8, comment => '# CJK(8D76)'},
{direction => BOTH, ucs => 0x90DE, code => 0x8ff4ec, comment => '# CJK(90DE)'},
{direction => BOTH, ucs => 0x9115, code => 0x8ff4ee, comment => '# CJK(9115)'},
{direction => BOTH, ucs => 0x9592, code => 0x8ff4f1, comment => '# CJK(9592)'},
{direction => BOTH, ucs => 0x973B, code => 0x8ff4f4, comment => '# CJK(973B)'},
{direction => BOTH, ucs => 0x974D, code => 0x8ff4f5, comment => '# CJK(974D)'},
{direction => BOTH, ucs => 0x9751, code => 0x8ff4f6, comment => '# CJK(9751)'},
{direction => BOTH, ucs => 0x999E, code => 0x8ff4fa, comment => '# CJK(999E)'},
{direction => BOTH, ucs => 0x9AD9, code => 0x8ff4fb, comment => '# CJK(9AD9)'},
{direction => BOTH, ucs => 0x9B72, code => 0x8ff4fc, comment => '# CJK(9B72)'},
{direction => BOTH, ucs => 0x9ED1, code => 0x8ff4fe, comment => '# CJK(9ED1)'},
{direction => BOTH, ucs => 0xF929, code => 0x8ff4c5, comment => '# CJK COMPATIBILITY IDEOGRAPH-F929'},
{direction => BOTH, ucs => 0xF9DC, code => 0x8ff4f2, comment => '# CJK COMPATIBILITY IDEOGRAPH-F9DC'},
{direction => BOTH, ucs => 0xFA0E, code => 0x8ff4b4, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA0E'},
{direction => BOTH, ucs => 0xFA0F, code => 0x8ff4b7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA0F'},
{direction => BOTH, ucs => 0xFA10, code => 0x8ff4b8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA10'},
{direction => BOTH, ucs => 0xFA11, code => 0x8ff4bd, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA11'},
{direction => BOTH, ucs => 0xFA12, code => 0x8ff4c4, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA12'},
{direction => BOTH, ucs => 0xFA13, code => 0x8ff4c7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA13'},
{direction => BOTH, ucs => 0xFA14, code => 0x8ff4c8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA14'},
{direction => BOTH, ucs => 0xFA15, code => 0x8ff4ce, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA15'},
{direction => BOTH, ucs => 0xFA16, code => 0x8ff4cf, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA16'},
{direction => BOTH, ucs => 0xFA17, code => 0x8ff4d3, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA17'},
{direction => BOTH, ucs => 0xFA18, code => 0x8ff4d5, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA18'},
{direction => BOTH, ucs => 0xFA19, code => 0x8ff4d6, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA19'},
{direction => BOTH, ucs => 0xFA1A, code => 0x8ff4d7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1A'},
{direction => BOTH, ucs => 0xFA1B, code => 0x8ff4d8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1B'},
{direction => BOTH, ucs => 0xFA1C, code => 0x8ff4da, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1C'},
{direction => BOTH, ucs => 0xFA1D, code => 0x8ff4db, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1D'},
{direction => BOTH, ucs => 0xFA1E, code => 0x8ff4de, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1E'},
{direction => BOTH, ucs => 0xFA1F, code => 0x8ff4e0, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA1F'},
{direction => BOTH, ucs => 0xFA20, code => 0x8ff4e2, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA20'},
{direction => BOTH, ucs => 0xFA21, code => 0x8ff4e3, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA21'},
{direction => BOTH, ucs => 0xFA22, code => 0x8ff4e5, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA22'},
{direction => BOTH, ucs => 0xFA23, code => 0x8ff4e9, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA23'},
{direction => BOTH, ucs => 0xFA24, code => 0x8ff4ea, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA24'},
{direction => BOTH, ucs => 0xFA25, code => 0x8ff4eb, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA25'},
{direction => BOTH, ucs => 0xFA26, code => 0x8ff4ed, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA26'},
{direction => BOTH, ucs => 0xFA27, code => 0x8ff4ef, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA27'},
{direction => BOTH, ucs => 0xFA28, code => 0x8ff4f0, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA28'},
{direction => BOTH, ucs => 0xFA29, code => 0x8ff4f3, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA29'},
{direction => BOTH, ucs => 0xFA2A, code => 0x8ff4f7, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2A'},
{direction => BOTH, ucs => 0xFA2B, code => 0x8ff4f8, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2B'},
{direction => BOTH, ucs => 0xFA2C, code => 0x8ff4f9, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2C'},
{direction => BOTH, ucs => 0xFA2D, code => 0x8ff4fd, comment => '# CJK COMPATIBILITY IDEOGRAPH-FA2D'},
{direction => BOTH, ucs => 0xFF07, code => 0x8ff4a9, comment => '# FULLWIDTH APOSTROPHE'},
{direction => BOTH, ucs => 0xFFE4, code => 0x8fa2c3, comment => '# FULLWIDTH BROKEN BAR'},
# additional conversions for EUC_JP -> UTF-8 conversion
{direction => 'to_unicode', ucs => 0x2116, code => 0x8ff4ac, comment => '# NUMERO SIGN'},
{direction => 'to_unicode', ucs => 0x2121, code => 0x8ff4ad, comment => '# TELEPHONE SIGN'},
{direction => 'to_unicode', ucs => 0x3231, code => 0x8ff4ab, comment => '# PARENTHESIZED IDEOGRAPH STOCK'}
{direction => TO_UNICODE, ucs => 0x2116, code => 0x8ff4ac, comment => '# NUMERO SIGN'},
{direction => TO_UNICODE, ucs => 0x2121, code => 0x8ff4ad, comment => '# TELEPHONE SIGN'},
{direction => TO_UNICODE, ucs => 0x3231, code => 0x8ff4ab, comment => '# PARENTHESIZED IDEOGRAPH STOCK'}
);
print_tables("EUC_JP", \@mapping);
print_conversion_tables($this_script, "EUC_JP", \@mapping);
#######################################################################
# sjis2jis ; SJIS => JIS conversion

View File

@ -17,7 +17,9 @@
# # and Unicode name (not used in this script)
use strict;
require convutils;
use convutils;
my $this_script = $0;
# Load the source file.
@ -29,10 +31,10 @@ foreach my $i (@$mapping)
}
# Some extra characters that are not in KSX1001.TXT
push @$mapping, (
{direction => 'both', ucs => 0x20AC, code => 0xa2e6, comment => '# EURO SIGN'},
{direction => 'both', ucs => 0x00AE, code => 0xa2e7, comment => '# REGISTERED SIGN'},
{direction => 'both', ucs => 0x327E, code => 0xa2e8, comment => '# CIRCLED HANGUL IEUNG U'}
push @$mapping,(
{direction => BOTH, ucs => 0x20AC, code => 0xa2e6, comment => '# EURO SIGN', f => $this_script, l => __LINE__},
{direction => BOTH, ucs => 0x00AE, code => 0xa2e7, comment => '# REGISTERED SIGN', f => $this_script, l => __LINE__ },
{direction => BOTH, ucs => 0x327E, code => 0xa2e8, comment => '# CIRCLED HANGUL IEUNG U', f => $this_script, l => __LINE__ }
);
print_tables("EUC_KR", $mapping);
print_conversion_tables($this_script, "EUC_KR", $mapping);

View File

@ -18,7 +18,9 @@
# # and Unicode name (not used in this script)
use strict;
require convutils;
use convutils;
my $this_script = $0;
my $mapping = &read_source("CNS11643.TXT");
@ -54,11 +56,13 @@ foreach my $i (@$mapping)
ucs => $i->{ucs},
code => ($i->{code} + 0x8ea10000),
rest => $i->{rest},
direction => 'to_unicode'
direction => TO_UNICODE,
f => $i->{f},
l => $i->{l}
};
}
}
push @$mapping, @extras;
print_tables("EUC_TW", $mapping);
print_conversion_tables($this_script, "EUC_TW", $mapping);

View File

@ -14,7 +14,9 @@
# and the "b" field is the hex byte sequence for GB18030
use strict;
require convutils;
use convutils;
my $this_script = $0;
# Read the input
@ -36,10 +38,12 @@ while (<$in>)
push @mapping, {
ucs => $ucs,
code => $code,
direction => 'both'
direction => BOTH,
f => $in_file,
l => $.
};
}
}
close($in);
print_tables("GB18030", \@mapping);
print_conversion_tables($this_script, "GB18030", \@mapping);

View File

@ -16,7 +16,9 @@
# # and Unicode name (not used in this script)
use strict;
require convutils;
use convutils;
my $this_script = $0;
# Load the source file.
@ -24,9 +26,9 @@ my $mapping = &read_source("JOHAB.TXT");
# Some extra characters that are not in JOHAB.TXT
push @$mapping, (
{direction => 'both', ucs => 0x20AC, code => 0xd9e6, comment => '# EURO SIGN'},
{direction => 'both', ucs => 0x00AE, code => 0xd9e7, comment => '# REGISTERED SIGN'},
{direction => 'both', ucs => 0x327E, code => 0xd9e8, comment => '# CIRCLED HANGUL IEUNG U'}
{direction => BOTH, ucs => 0x20AC, code => 0xd9e6, comment => '# EURO SIGN', f => $this_script, l => __LINE__ },
{direction => BOTH, ucs => 0x00AE, code => 0xd9e7, comment => '# REGISTERED SIGN', f => $this_script, l => __LINE__ },
{direction => BOTH, ucs => 0x327E, code => 0xd9e8, comment => '# CIRCLED HANGUL IEUNG U', f => $this_script, l => __LINE__ }
);
print_tables("JOHAB", $mapping);
print_conversion_tables($this_script, "JOHAB", $mapping);

View File

@ -8,10 +8,12 @@
# "sjis-0213-2004-std.txt" (http://x0213.org)
use strict;
require convutils;
use convutils;
# first generate UTF-8 --> SHIFT_JIS_2004 table
my $this_script = $0;
my $in_file = "sjis-0213-2004-std.txt";
open(my $in, '<', $in_file) || die("cannot open $in_file");
@ -34,9 +36,10 @@ while (my $line = <$in>)
ucs => $ucs1,
ucs_second => $ucs2,
comment => $rest,
direction => 'both'
direction => BOTH,
f => $in_file,
l => $.
};
next;
}
elsif ($line =~ /^0x(.*)[ \t]*U\+(.*)[ \t]*#(.*)$/)
{
@ -52,25 +55,27 @@ while (my $line = <$in>)
}
elsif ($code < 0x80)
{
$direction = 'from_unicode';
$direction = FROM_UNICODE;
}
elsif ($ucs < 0x80)
{
$direction = 'to_unicode';
$direction = TO_UNICODE;
}
else
{
$direction = 'both';
$direction = BOTH;
}
push @mapping, {
code => $code,
ucs => $ucs,
comment => $rest,
direction => $direction
direction => $direction,
f => $in_file,
l => $.
};
}
}
close($in);
print_tables("SHIFT_JIS_2004", \@mapping, 1);
print_conversion_tables($this_script, "SHIFT_JIS_2004", \@mapping);

View File

@ -11,9 +11,11 @@
# ftp site.
use strict;
require convutils;
use convutils;
my $charset = read_source("CP932.TXT");
my $this_script = $0;
my $mapping = read_source("CP932.TXT");
# Drop these SJIS codes from the source for UTF8=>SJIS conversion
my @reject_sjis =(
@ -22,27 +24,27 @@ my @reject_sjis =(
0x879a..0x879c
);
foreach my $i (@$charset)
foreach my $i (@$mapping)
{
my $code = $i->{code};
my $ucs = $i->{ucs};
if (grep {$code == $_} @reject_sjis)
{
$i->{direction} = "to_unicode";
$i->{direction} = TO_UNICODE;
}
}
# Add these UTF8->SJIS pairs to the table.
push @$charset, (
{direction => "from_unicode", ucs => 0x00a2, code => 0x8191, comment => '# CENT SIGN'},
{direction => "from_unicode", ucs => 0x00a3, code => 0x8192, comment => '# POUND SIGN'},
{direction => "from_unicode", ucs => 0x00a5, code => 0x5c, comment => '# YEN SIGN'},
{direction => "from_unicode", ucs => 0x00ac, code => 0x81ca, comment => '# NOT SIGN'},
{direction => "from_unicode", ucs => 0x2016, code => 0x8161, comment => '# DOUBLE VERTICAL LINE'},
{direction => "from_unicode", ucs => 0x203e, code => 0x7e, comment => '# OVERLINE'},
{direction => "from_unicode", ucs => 0x2212, code => 0x817c, comment => '# MINUS SIGN'},
{direction => "from_unicode", ucs => 0x301c, code => 0x8160, comment => '# WAVE DASH'}
);
push @$mapping, (
{direction => FROM_UNICODE, ucs => 0x00a2, code => 0x8191, comment => '# CENT SIGN', f => $this_script, l => __LINE__ },
{direction => FROM_UNICODE, ucs => 0x00a3, code => 0x8192, comment => '# POUND SIGN', f => $this_script, l => __LINE__ },
{direction => FROM_UNICODE, ucs => 0x00a5, code => 0x5c, comment => '# YEN SIGN', f => $this_script, l => __LINE__ },
{direction => FROM_UNICODE, ucs => 0x00ac, code => 0x81ca, comment => '# NOT SIGN', f => $this_script, l => __LINE__ },
{direction => FROM_UNICODE, ucs => 0x2016, code => 0x8161, comment => '# DOUBLE VERTICAL LINE', f => $this_script, l => __LINE__ },
{direction => FROM_UNICODE, ucs => 0x203e, code => 0x7e, comment => '# OVERLINE', f => $this_script, l => __LINE__ },
{direction => FROM_UNICODE, ucs => 0x2212, code => 0x817c, comment => '# MINUS SIGN', f => $this_script, l => __LINE__ },
{direction => FROM_UNICODE, ucs => 0x301c, code => 0x8160, comment => '# WAVE DASH', f => $this_script, l => __LINE__ }
);
print_tables("SJIS", $charset);
print_conversion_tables($this_script, "SJIS", $mapping);

View File

@ -14,7 +14,9 @@
# and the "b" field is the hex byte sequence for UHC
use strict;
require convutils;
use convutils;
my $this_script = $0;
# Read the input
@ -39,13 +41,15 @@ while (<$in>)
push @mapping, {
ucs => $ucs,
code => $code,
direction => 'both'
direction => BOTH,
f => $in_file,
l => $.
};
}
}
close($in);
# One extra character that's not in the source file.
push @mapping, { direction => 'both', code => 0xa2e8, ucs => 0x327e, comment => 'CIRCLED HANGUL IEUNG U' };
push @mapping, { direction => BOTH, code => 0xa2e8, ucs => 0x327e, comment => 'CIRCLED HANGUL IEUNG U', f => $this_script, l => __LINE__ };
print_tables("UHC", \@mapping);
print_conversion_tables($this_script, "UHC", \@mapping);

View File

@ -16,7 +16,9 @@
# # and Unicode name (not used in this script)
use strict;
require convutils;
use convutils;
my $this_script = $0;
my %filename = (
'WIN866' => 'CP866.TXT',
@ -54,5 +56,5 @@ foreach my $charset (@charsets)
{
my $mapping = &read_source($filename{$charset});
print_tables($charset, $mapping);
print_conversion_tables($this_script, $charset, $mapping);
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
/* src/backend/utils/mb/Unicode/euc_jis_2004_to_utf8_combined.map */
static const pg_local_to_utf_combined LUmapEUC_JIS_2004_combined[ 25 ] = { /* */
{0xa4f7, 0x00e3818b, 0x00e3829a}, /* U+304B+309A [2000] */
{0xa4f8, 0x00e3818d, 0x00e3829a}, /* U+304D+309A [2000] */
{0xa4f9, 0x00e3818f, 0x00e3829a}, /* U+304F+309A [2000] */
{0xa4fa, 0x00e38191, 0x00e3829a}, /* U+3051+309A [2000] */
{0xa4fb, 0x00e38193, 0x00e3829a}, /* U+3053+309A [2000] */
{0xa5f7, 0x00e382ab, 0x00e3829a}, /* U+30AB+309A [2000] */
{0xa5f8, 0x00e382ad, 0x00e3829a}, /* U+30AD+309A [2000] */
{0xa5f9, 0x00e382af, 0x00e3829a}, /* U+30AF+309A [2000] */
{0xa5fa, 0x00e382b1, 0x00e3829a}, /* U+30B1+309A [2000] */
{0xa5fb, 0x00e382b3, 0x00e3829a}, /* U+30B3+309A [2000] */
{0xa5fc, 0x00e382bb, 0x00e3829a}, /* U+30BB+309A [2000] */
{0xa5fd, 0x00e38384, 0x00e3829a}, /* U+30C4+309A [2000] */
{0xa5fe, 0x00e38388, 0x00e3829a}, /* U+30C8+309A [2000] */
{0xa6f8, 0x00e387b7, 0x00e3829a}, /* U+31F7+309A [2000] */
{0xabc4, 0x0000c3a6, 0x0000cc80}, /* U+00E6+0300 [2000] */
{0xabc8, 0x0000c994, 0x0000cc80}, /* U+0254+0300 [2000] */
{0xabc9, 0x0000c994, 0x0000cc81}, /* U+0254+0301 [2000] */
{0xabca, 0x0000ca8c, 0x0000cc80}, /* U+028C+0300 [2000] */
{0xabcb, 0x0000ca8c, 0x0000cc81}, /* U+028C+0301 [2000] */
{0xabcc, 0x0000c999, 0x0000cc80}, /* U+0259+0300 [2000] */
{0xabcd, 0x0000c999, 0x0000cc81}, /* U+0259+0301 [2000] */
{0xabce, 0x0000c99a, 0x0000cc80}, /* U+025A+0300 [2000] */
{0xabcf, 0x0000c99a, 0x0000cc81}, /* U+025A+0301 [2000] */
{0xabe5, 0x0000cba9, 0x0000cba5}, /* U+02E9+02E5 [2000] */
{0xabe6, 0x0000cba5, 0x0000cba9} /* U+02E5+02E9 [2000] */
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_10_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_10[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xc484},
{0x00a2, 0xc492},
{0x00a3, 0xc4a2},
{0x00a4, 0xc4aa},
{0x00a5, 0xc4a8},
{0x00a6, 0xc4b6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc4bb},
{0x00a9, 0xc490},
{0x00aa, 0xc5a0},
{0x00ab, 0xc5a6},
{0x00ac, 0xc5bd},
{0x00ad, 0xc2ad},
{0x00ae, 0xc5aa},
{0x00af, 0xc58a},
{0x00b0, 0xc2b0},
{0x00b1, 0xc485},
{0x00b2, 0xc493},
{0x00b3, 0xc4a3},
{0x00b4, 0xc4ab},
{0x00b5, 0xc4a9},
{0x00b6, 0xc4b7},
{0x00b7, 0xc2b7},
{0x00b8, 0xc4bc},
{0x00b9, 0xc491},
{0x00ba, 0xc5a1},
{0x00bb, 0xc5a7},
{0x00bc, 0xc5be},
{0x00bd, 0xe28095},
{0x00be, 0xc5ab},
{0x00bf, 0xc58b},
{0x00c0, 0xc480},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc383},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc4ae},
{0x00c8, 0xc48c},
{0x00c9, 0xc389},
{0x00ca, 0xc498},
{0x00cb, 0xc38b},
{0x00cc, 0xc496},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc390},
{0x00d1, 0xc585},
{0x00d2, 0xc58c},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc5a8},
{0x00d8, 0xc398},
{0x00d9, 0xc5b2},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc39d},
{0x00de, 0xc39e},
{0x00df, 0xc39f},
{0x00e0, 0xc481},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc3a3},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc4af},
{0x00e8, 0xc48d},
{0x00e9, 0xc3a9},
{0x00ea, 0xc499},
{0x00eb, 0xc3ab},
{0x00ec, 0xc497},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc3b0},
{0x00f1, 0xc586},
{0x00f2, 0xc58d},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc5a9},
{0x00f8, 0xc3b8},
{0x00f9, 0xc5b3},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc3bd},
{0x00fe, 0xc3be},
{0x00ff, 0xc4b8}
static const uint32 iso8859_10_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_10_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_10_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_10_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0x00c484, 0x00c492, 0x00c4a2,
/* a4 */ 0x00c4aa, 0x00c4a8, 0x00c4b6, 0x00c2a7,
/* a8 */ 0x00c4bb, 0x00c490, 0x00c5a0, 0x00c5a6,
/* ac */ 0x00c5bd, 0x00c2ad, 0x00c5aa, 0x00c58a,
/* b0 */ 0x00c2b0, 0x00c485, 0x00c493, 0x00c4a3,
/* b4 */ 0x00c4ab, 0x00c4a9, 0x00c4b7, 0x00c2b7,
/* b8 */ 0x00c4bc, 0x00c491, 0x00c5a1, 0x00c5a7,
/* bc */ 0x00c5be, 0xe28095, 0x00c5ab, 0x00c58b,
/* c0 */ 0x00c480, 0x00c381, 0x00c382, 0x00c383,
/* c4 */ 0x00c384, 0x00c385, 0x00c386, 0x00c4ae,
/* c8 */ 0x00c48c, 0x00c389, 0x00c498, 0x00c38b,
/* cc */ 0x00c496, 0x00c38d, 0x00c38e, 0x00c38f,
/* d0 */ 0x00c390, 0x00c585, 0x00c58c, 0x00c393,
/* d4 */ 0x00c394, 0x00c395, 0x00c396, 0x00c5a8,
/* d8 */ 0x00c398, 0x00c5b2, 0x00c39a, 0x00c39b,
/* dc */ 0x00c39c, 0x00c39d, 0x00c39e, 0x00c39f,
/* e0 */ 0x00c481, 0x00c3a1, 0x00c3a2, 0x00c3a3,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c3a6, 0x00c4af,
/* e8 */ 0x00c48d, 0x00c3a9, 0x00c499, 0x00c3ab,
/* ec */ 0x00c497, 0x00c3ad, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00c3b0, 0x00c586, 0x00c58d, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c3b5, 0x00c3b6, 0x00c5a9,
/* f8 */ 0x00c3b8, 0x00c5b3, 0x00c3ba, 0x00c3bb,
/* fc */ 0x00c3bc, 0x00c3bd, 0x00c3be, 0x00c4b8
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_13_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_13[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xe2809d},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xe2809e},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc398},
{0x00a9, 0xc2a9},
{0x00aa, 0xc596},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc386},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xe2809c},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc3b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc597},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xc3a6},
{0x00c0, 0xc484},
{0x00c1, 0xc4ae},
{0x00c2, 0xc480},
{0x00c3, 0xc486},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc498},
{0x00c7, 0xc492},
{0x00c8, 0xc48c},
{0x00c9, 0xc389},
{0x00ca, 0xc5b9},
{0x00cb, 0xc496},
{0x00cc, 0xc4a2},
{0x00cd, 0xc4b6},
{0x00ce, 0xc4aa},
{0x00cf, 0xc4bb},
{0x00d0, 0xc5a0},
{0x00d1, 0xc583},
{0x00d2, 0xc585},
{0x00d3, 0xc393},
{0x00d4, 0xc58c},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc5b2},
{0x00d9, 0xc581},
{0x00da, 0xc59a},
{0x00db, 0xc5aa},
{0x00dc, 0xc39c},
{0x00dd, 0xc5bb},
{0x00de, 0xc5bd},
{0x00df, 0xc39f},
{0x00e0, 0xc485},
{0x00e1, 0xc4af},
{0x00e2, 0xc481},
{0x00e3, 0xc487},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc499},
{0x00e7, 0xc493},
{0x00e8, 0xc48d},
{0x00e9, 0xc3a9},
{0x00ea, 0xc5ba},
{0x00eb, 0xc497},
{0x00ec, 0xc4a3},
{0x00ed, 0xc4b7},
{0x00ee, 0xc4ab},
{0x00ef, 0xc4bc},
{0x00f0, 0xc5a1},
{0x00f1, 0xc584},
{0x00f2, 0xc586},
{0x00f3, 0xc3b3},
{0x00f4, 0xc58d},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc5b3},
{0x00f9, 0xc582},
{0x00fa, 0xc59b},
{0x00fb, 0xc5ab},
{0x00fc, 0xc3bc},
{0x00fd, 0xc5bc},
{0x00fe, 0xc5be},
{0x00ff, 0xe28099}
static const uint32 iso8859_13_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_13_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_13_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_13_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0xe2809d, 0x00c2a2, 0x00c2a3,
/* a4 */ 0x00c2a4, 0xe2809e, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c398, 0x00c2a9, 0x00c596, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c386,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0xe2809c, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c3b8, 0x00c2b9, 0x00c597, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x00c3a6,
/* c0 */ 0x00c484, 0x00c4ae, 0x00c480, 0x00c486,
/* c4 */ 0x00c384, 0x00c385, 0x00c498, 0x00c492,
/* c8 */ 0x00c48c, 0x00c389, 0x00c5b9, 0x00c496,
/* cc */ 0x00c4a2, 0x00c4b6, 0x00c4aa, 0x00c4bb,
/* d0 */ 0x00c5a0, 0x00c583, 0x00c585, 0x00c393,
/* d4 */ 0x00c58c, 0x00c395, 0x00c396, 0x00c397,
/* d8 */ 0x00c5b2, 0x00c581, 0x00c59a, 0x00c5aa,
/* dc */ 0x00c39c, 0x00c5bb, 0x00c5bd, 0x00c39f,
/* e0 */ 0x00c485, 0x00c4af, 0x00c481, 0x00c487,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c499, 0x00c493,
/* e8 */ 0x00c48d, 0x00c3a9, 0x00c5ba, 0x00c497,
/* ec */ 0x00c4a3, 0x00c4b7, 0x00c4ab, 0x00c4bc,
/* f0 */ 0x00c5a1, 0x00c584, 0x00c586, 0x00c3b3,
/* f4 */ 0x00c58d, 0x00c3b5, 0x00c3b6, 0x00c3b7,
/* f8 */ 0x00c5b3, 0x00c582, 0x00c59b, 0x00c5ab,
/* fc */ 0x00c3bc, 0x00c5bc, 0x00c5be, 0xe28099
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_14_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_14[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xe1b882},
{0x00a2, 0xe1b883},
{0x00a3, 0xc2a3},
{0x00a4, 0xc48a},
{0x00a5, 0xc48b},
{0x00a6, 0xe1b88a},
{0x00a7, 0xc2a7},
{0x00a8, 0xe1ba80},
{0x00a9, 0xc2a9},
{0x00aa, 0xe1ba82},
{0x00ab, 0xe1b88b},
{0x00ac, 0xe1bbb2},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc5b8},
{0x00b0, 0xe1b89e},
{0x00b1, 0xe1b89f},
{0x00b2, 0xc4a0},
{0x00b3, 0xc4a1},
{0x00b4, 0xe1b980},
{0x00b5, 0xe1b981},
{0x00b6, 0xc2b6},
{0x00b7, 0xe1b996},
{0x00b8, 0xe1ba81},
{0x00b9, 0xe1b997},
{0x00ba, 0xe1ba83},
{0x00bb, 0xe1b9a0},
{0x00bc, 0xe1bbb3},
{0x00bd, 0xe1ba84},
{0x00be, 0xe1ba85},
{0x00bf, 0xe1b9a1},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc383},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xc38c},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc5b4},
{0x00d1, 0xc391},
{0x00d2, 0xc392},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xe1b9aa},
{0x00d8, 0xc398},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc39d},
{0x00de, 0xc5b6},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc3a3},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xc3ac},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc5b5},
{0x00f1, 0xc3b1},
{0x00f2, 0xc3b2},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xe1b9ab},
{0x00f8, 0xc3b8},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc3bd},
{0x00fe, 0xc5b7},
{0x00ff, 0xc3bf}
static const uint32 iso8859_14_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_14_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_14_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_14_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0xe1b882, 0xe1b883, 0x00c2a3,
/* a4 */ 0x00c48a, 0x00c48b, 0xe1b88a, 0x00c2a7,
/* a8 */ 0xe1ba80, 0x00c2a9, 0xe1ba82, 0xe1b88b,
/* ac */ 0xe1bbb2, 0x00c2ad, 0x00c2ae, 0x00c5b8,
/* b0 */ 0xe1b89e, 0xe1b89f, 0x00c4a0, 0x00c4a1,
/* b4 */ 0xe1b980, 0xe1b981, 0x00c2b6, 0xe1b996,
/* b8 */ 0xe1ba81, 0xe1b997, 0xe1ba83, 0xe1b9a0,
/* bc */ 0xe1bbb3, 0xe1ba84, 0xe1ba85, 0xe1b9a1,
/* c0 */ 0x00c380, 0x00c381, 0x00c382, 0x00c383,
/* c4 */ 0x00c384, 0x00c385, 0x00c386, 0x00c387,
/* c8 */ 0x00c388, 0x00c389, 0x00c38a, 0x00c38b,
/* cc */ 0x00c38c, 0x00c38d, 0x00c38e, 0x00c38f,
/* d0 */ 0x00c5b4, 0x00c391, 0x00c392, 0x00c393,
/* d4 */ 0x00c394, 0x00c395, 0x00c396, 0xe1b9aa,
/* d8 */ 0x00c398, 0x00c399, 0x00c39a, 0x00c39b,
/* dc */ 0x00c39c, 0x00c39d, 0x00c5b6, 0x00c39f,
/* e0 */ 0x00c3a0, 0x00c3a1, 0x00c3a2, 0x00c3a3,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c3a6, 0x00c3a7,
/* e8 */ 0x00c3a8, 0x00c3a9, 0x00c3aa, 0x00c3ab,
/* ec */ 0x00c3ac, 0x00c3ad, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00c5b5, 0x00c3b1, 0x00c3b2, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c3b5, 0x00c3b6, 0xe1b9ab,
/* f8 */ 0x00c3b8, 0x00c3b9, 0x00c3ba, 0x00c3bb,
/* fc */ 0x00c3bc, 0x00c3bd, 0x00c5b7, 0x00c3bf
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_15_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_15[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xc2a1},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xe282ac},
{0x00a5, 0xc2a5},
{0x00a6, 0xc5a0},
{0x00a7, 0xc2a7},
{0x00a8, 0xc5a1},
{0x00a9, 0xc2a9},
{0x00aa, 0xc2aa},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc5bd},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc5be},
{0x00b9, 0xc2b9},
{0x00ba, 0xc2ba},
{0x00bb, 0xc2bb},
{0x00bc, 0xc592},
{0x00bd, 0xc593},
{0x00be, 0xc5b8},
{0x00bf, 0xc2bf},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc383},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xc38c},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc390},
{0x00d1, 0xc391},
{0x00d2, 0xc392},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc398},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc39d},
{0x00de, 0xc39e},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc3a3},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xc3ac},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc3b0},
{0x00f1, 0xc3b1},
{0x00f2, 0xc3b2},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc3b8},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc3bd},
{0x00fe, 0xc3be},
{0x00ff, 0xc3bf}
static const uint32 iso8859_15_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_15_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_15_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_15_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0x00c2a1, 0x00c2a2, 0x00c2a3,
/* a4 */ 0xe282ac, 0x00c2a5, 0x00c5a0, 0x00c2a7,
/* a8 */ 0x00c5a1, 0x00c2a9, 0x00c2aa, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c2af,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c5bd, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c5be, 0x00c2b9, 0x00c2ba, 0x00c2bb,
/* bc */ 0x00c592, 0x00c593, 0x00c5b8, 0x00c2bf,
/* c0 */ 0x00c380, 0x00c381, 0x00c382, 0x00c383,
/* c4 */ 0x00c384, 0x00c385, 0x00c386, 0x00c387,
/* c8 */ 0x00c388, 0x00c389, 0x00c38a, 0x00c38b,
/* cc */ 0x00c38c, 0x00c38d, 0x00c38e, 0x00c38f,
/* d0 */ 0x00c390, 0x00c391, 0x00c392, 0x00c393,
/* d4 */ 0x00c394, 0x00c395, 0x00c396, 0x00c397,
/* d8 */ 0x00c398, 0x00c399, 0x00c39a, 0x00c39b,
/* dc */ 0x00c39c, 0x00c39d, 0x00c39e, 0x00c39f,
/* e0 */ 0x00c3a0, 0x00c3a1, 0x00c3a2, 0x00c3a3,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c3a6, 0x00c3a7,
/* e8 */ 0x00c3a8, 0x00c3a9, 0x00c3aa, 0x00c3ab,
/* ec */ 0x00c3ac, 0x00c3ad, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00c3b0, 0x00c3b1, 0x00c3b2, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c3b5, 0x00c3b6, 0x00c3b7,
/* f8 */ 0x00c3b8, 0x00c3b9, 0x00c3ba, 0x00c3bb,
/* fc */ 0x00c3bc, 0x00c3bd, 0x00c3be, 0x00c3bf
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_16_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_16[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xc484},
{0x00a2, 0xc485},
{0x00a3, 0xc581},
{0x00a4, 0xe282ac},
{0x00a5, 0xe2809e},
{0x00a6, 0xc5a0},
{0x00a7, 0xc2a7},
{0x00a8, 0xc5a1},
{0x00a9, 0xc2a9},
{0x00aa, 0xc898},
{0x00ab, 0xc2ab},
{0x00ac, 0xc5b9},
{0x00ad, 0xc2ad},
{0x00ae, 0xc5ba},
{0x00af, 0xc5bb},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc48c},
{0x00b3, 0xc582},
{0x00b4, 0xc5bd},
{0x00b5, 0xe2809d},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc5be},
{0x00b9, 0xc48d},
{0x00ba, 0xc899},
{0x00bb, 0xc2bb},
{0x00bc, 0xc592},
{0x00bd, 0xc593},
{0x00be, 0xc5b8},
{0x00bf, 0xc5bc},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc482},
{0x00c4, 0xc384},
{0x00c5, 0xc486},
{0x00c6, 0xc386},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xc38c},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc490},
{0x00d1, 0xc583},
{0x00d2, 0xc392},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc590},
{0x00d6, 0xc396},
{0x00d7, 0xc59a},
{0x00d8, 0xc5b0},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc498},
{0x00de, 0xc89a},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc483},
{0x00e4, 0xc3a4},
{0x00e5, 0xc487},
{0x00e6, 0xc3a6},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xc3ac},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc491},
{0x00f1, 0xc584},
{0x00f2, 0xc3b2},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc591},
{0x00f6, 0xc3b6},
{0x00f7, 0xc59b},
{0x00f8, 0xc5b1},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc499},
{0x00fe, 0xc89b},
{0x00ff, 0xc3bf}
static const uint32 iso8859_16_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_16_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_16_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_16_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0x00c484, 0x00c485, 0x00c581,
/* a4 */ 0xe282ac, 0xe2809e, 0x00c5a0, 0x00c2a7,
/* a8 */ 0x00c5a1, 0x00c2a9, 0x00c898, 0x00c2ab,
/* ac */ 0x00c5b9, 0x00c2ad, 0x00c5ba, 0x00c5bb,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c48c, 0x00c582,
/* b4 */ 0x00c5bd, 0xe2809d, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c5be, 0x00c48d, 0x00c899, 0x00c2bb,
/* bc */ 0x00c592, 0x00c593, 0x00c5b8, 0x00c5bc,
/* c0 */ 0x00c380, 0x00c381, 0x00c382, 0x00c482,
/* c4 */ 0x00c384, 0x00c486, 0x00c386, 0x00c387,
/* c8 */ 0x00c388, 0x00c389, 0x00c38a, 0x00c38b,
/* cc */ 0x00c38c, 0x00c38d, 0x00c38e, 0x00c38f,
/* d0 */ 0x00c490, 0x00c583, 0x00c392, 0x00c393,
/* d4 */ 0x00c394, 0x00c590, 0x00c396, 0x00c59a,
/* d8 */ 0x00c5b0, 0x00c399, 0x00c39a, 0x00c39b,
/* dc */ 0x00c39c, 0x00c498, 0x00c89a, 0x00c39f,
/* e0 */ 0x00c3a0, 0x00c3a1, 0x00c3a2, 0x00c483,
/* e4 */ 0x00c3a4, 0x00c487, 0x00c3a6, 0x00c3a7,
/* e8 */ 0x00c3a8, 0x00c3a9, 0x00c3aa, 0x00c3ab,
/* ec */ 0x00c3ac, 0x00c3ad, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00c491, 0x00c584, 0x00c3b2, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c591, 0x00c3b6, 0x00c59b,
/* f8 */ 0x00c5b1, 0x00c3b9, 0x00c3ba, 0x00c3bb,
/* fc */ 0x00c3bc, 0x00c499, 0x00c89b, 0x00c3bf
};

View File

@ -1,132 +1,79 @@
/* src/backend/utils/mb/Unicode/iso8859_2_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_2[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xc484},
{0x00a2, 0xcb98},
{0x00a3, 0xc581},
{0x00a4, 0xc2a4},
{0x00a5, 0xc4bd},
{0x00a6, 0xc59a},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc5a0},
{0x00aa, 0xc59e},
{0x00ab, 0xc5a4},
{0x00ac, 0xc5b9},
{0x00ad, 0xc2ad},
{0x00ae, 0xc5bd},
{0x00af, 0xc5bb},
{0x00b0, 0xc2b0},
{0x00b1, 0xc485},
{0x00b2, 0xcb9b},
{0x00b3, 0xc582},
{0x00b4, 0xc2b4},
{0x00b5, 0xc4be},
{0x00b6, 0xc59b},
{0x00b7, 0xcb87},
{0x00b8, 0xc2b8},
{0x00b9, 0xc5a1},
{0x00ba, 0xc59f},
{0x00bb, 0xc5a5},
{0x00bc, 0xc5ba},
{0x00bd, 0xcb9d},
{0x00be, 0xc5be},
{0x00bf, 0xc5bc},
{0x00c0, 0xc594},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc482},
{0x00c4, 0xc384},
{0x00c5, 0xc4b9},
{0x00c6, 0xc486},
{0x00c7, 0xc387},
{0x00c8, 0xc48c},
{0x00c9, 0xc389},
{0x00ca, 0xc498},
{0x00cb, 0xc38b},
{0x00cc, 0xc49a},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc48e},
{0x00d0, 0xc490},
{0x00d1, 0xc583},
{0x00d2, 0xc587},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc590},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc598},
{0x00d9, 0xc5ae},
{0x00da, 0xc39a},
{0x00db, 0xc5b0},
{0x00dc, 0xc39c},
{0x00dd, 0xc39d},
{0x00de, 0xc5a2},
{0x00df, 0xc39f},
{0x00e0, 0xc595},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc483},
{0x00e4, 0xc3a4},
{0x00e5, 0xc4ba},
{0x00e6, 0xc487},
{0x00e7, 0xc3a7},
{0x00e8, 0xc48d},
{0x00e9, 0xc3a9},
{0x00ea, 0xc499},
{0x00eb, 0xc3ab},
{0x00ec, 0xc49b},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc48f},
{0x00f0, 0xc491},
{0x00f1, 0xc584},
{0x00f2, 0xc588},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc591},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc599},
{0x00f9, 0xc5af},
{0x00fa, 0xc3ba},
{0x00fb, 0xc5b1},
{0x00fc, 0xc3bc},
{0x00fd, 0xc3bd},
{0x00fe, 0xc5a3},
{0x00ff, 0xcb99}
static const uint16 iso8859_2_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_2_to_unicode_tree =
{
iso8859_2_to_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_2_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 40 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 48 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 50 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 58 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 60 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 68 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 70 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 78 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xc280, 0xc281, 0xc282, 0xc283, 0xc284, 0xc285, 0xc286, 0xc287,
/* 88 */ 0xc288, 0xc289, 0xc28a, 0xc28b, 0xc28c, 0xc28d, 0xc28e, 0xc28f,
/* 90 */ 0xc290, 0xc291, 0xc292, 0xc293, 0xc294, 0xc295, 0xc296, 0xc297,
/* 98 */ 0xc298, 0xc299, 0xc29a, 0xc29b, 0xc29c, 0xc29d, 0xc29e, 0xc29f,
/* a0 */ 0xc2a0, 0xc484, 0xcb98, 0xc581, 0xc2a4, 0xc4bd, 0xc59a, 0xc2a7,
/* a8 */ 0xc2a8, 0xc5a0, 0xc59e, 0xc5a4, 0xc5b9, 0xc2ad, 0xc5bd, 0xc5bb,
/* b0 */ 0xc2b0, 0xc485, 0xcb9b, 0xc582, 0xc2b4, 0xc4be, 0xc59b, 0xcb87,
/* b8 */ 0xc2b8, 0xc5a1, 0xc59f, 0xc5a5, 0xc5ba, 0xcb9d, 0xc5be, 0xc5bc,
/* c0 */ 0xc594, 0xc381, 0xc382, 0xc482, 0xc384, 0xc4b9, 0xc486, 0xc387,
/* c8 */ 0xc48c, 0xc389, 0xc498, 0xc38b, 0xc49a, 0xc38d, 0xc38e, 0xc48e,
/* d0 */ 0xc490, 0xc583, 0xc587, 0xc393, 0xc394, 0xc590, 0xc396, 0xc397,
/* d8 */ 0xc598, 0xc5ae, 0xc39a, 0xc5b0, 0xc39c, 0xc39d, 0xc5a2, 0xc39f,
/* e0 */ 0xc595, 0xc3a1, 0xc3a2, 0xc483, 0xc3a4, 0xc4ba, 0xc487, 0xc3a7,
/* e8 */ 0xc48d, 0xc3a9, 0xc499, 0xc3ab, 0xc49b, 0xc3ad, 0xc3ae, 0xc48f,
/* f0 */ 0xc491, 0xc584, 0xc588, 0xc3b3, 0xc3b4, 0xc591, 0xc3b6, 0xc3b7,
/* f8 */ 0xc599, 0xc5af, 0xc3ba, 0xc5b1, 0xc3bc, 0xc3bd, 0xc5a3, 0xcb99
};

View File

@ -1,125 +1,79 @@
/* src/backend/utils/mb/Unicode/iso8859_3_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_3[ 121 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xc4a6},
{0x00a2, 0xcb98},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a6, 0xc4a4},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc4b0},
{0x00aa, 0xc59e},
{0x00ab, 0xc49e},
{0x00ac, 0xc4b4},
{0x00ad, 0xc2ad},
{0x00af, 0xc5bb},
{0x00b0, 0xc2b0},
{0x00b1, 0xc4a7},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc4a5},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc4b1},
{0x00ba, 0xc59f},
{0x00bb, 0xc49f},
{0x00bc, 0xc4b5},
{0x00bd, 0xc2bd},
{0x00bf, 0xc5bc},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c4, 0xc384},
{0x00c5, 0xc48a},
{0x00c6, 0xc488},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xc38c},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d1, 0xc391},
{0x00d2, 0xc392},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc4a0},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc49c},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc5ac},
{0x00de, 0xc59c},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e4, 0xc3a4},
{0x00e5, 0xc48b},
{0x00e6, 0xc489},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xc3ac},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f1, 0xc3b1},
{0x00f2, 0xc3b2},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc4a1},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc49d},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc5ad},
{0x00fe, 0xc59d},
{0x00ff, 0xcb99}
static const uint16 iso8859_3_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_3_to_unicode_tree =
{
iso8859_3_to_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_3_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 40 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 48 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 50 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 58 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 60 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 68 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 70 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 78 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xc280, 0xc281, 0xc282, 0xc283, 0xc284, 0xc285, 0xc286, 0xc287,
/* 88 */ 0xc288, 0xc289, 0xc28a, 0xc28b, 0xc28c, 0xc28d, 0xc28e, 0xc28f,
/* 90 */ 0xc290, 0xc291, 0xc292, 0xc293, 0xc294, 0xc295, 0xc296, 0xc297,
/* 98 */ 0xc298, 0xc299, 0xc29a, 0xc29b, 0xc29c, 0xc29d, 0xc29e, 0xc29f,
/* a0 */ 0xc2a0, 0xc4a6, 0xcb98, 0xc2a3, 0xc2a4, 0x0000, 0xc4a4, 0xc2a7,
/* a8 */ 0xc2a8, 0xc4b0, 0xc59e, 0xc49e, 0xc4b4, 0xc2ad, 0x0000, 0xc5bb,
/* b0 */ 0xc2b0, 0xc4a7, 0xc2b2, 0xc2b3, 0xc2b4, 0xc2b5, 0xc4a5, 0xc2b7,
/* b8 */ 0xc2b8, 0xc4b1, 0xc59f, 0xc49f, 0xc4b5, 0xc2bd, 0x0000, 0xc5bc,
/* c0 */ 0xc380, 0xc381, 0xc382, 0x0000, 0xc384, 0xc48a, 0xc488, 0xc387,
/* c8 */ 0xc388, 0xc389, 0xc38a, 0xc38b, 0xc38c, 0xc38d, 0xc38e, 0xc38f,
/* d0 */ 0x0000, 0xc391, 0xc392, 0xc393, 0xc394, 0xc4a0, 0xc396, 0xc397,
/* d8 */ 0xc49c, 0xc399, 0xc39a, 0xc39b, 0xc39c, 0xc5ac, 0xc59c, 0xc39f,
/* e0 */ 0xc3a0, 0xc3a1, 0xc3a2, 0x0000, 0xc3a4, 0xc48b, 0xc489, 0xc3a7,
/* e8 */ 0xc3a8, 0xc3a9, 0xc3aa, 0xc3ab, 0xc3ac, 0xc3ad, 0xc3ae, 0xc3af,
/* f0 */ 0x0000, 0xc3b1, 0xc3b2, 0xc3b3, 0xc3b4, 0xc4a1, 0xc3b6, 0xc3b7,
/* f8 */ 0xc49d, 0xc3b9, 0xc3ba, 0xc3bb, 0xc3bc, 0xc5ad, 0xc59d, 0xcb99
};

View File

@ -1,132 +1,79 @@
/* src/backend/utils/mb/Unicode/iso8859_4_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_4[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xc484},
{0x00a2, 0xc4b8},
{0x00a3, 0xc596},
{0x00a4, 0xc2a4},
{0x00a5, 0xc4a8},
{0x00a6, 0xc4bb},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc5a0},
{0x00aa, 0xc492},
{0x00ab, 0xc4a2},
{0x00ac, 0xc5a6},
{0x00ad, 0xc2ad},
{0x00ae, 0xc5bd},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc485},
{0x00b2, 0xcb9b},
{0x00b3, 0xc597},
{0x00b4, 0xc2b4},
{0x00b5, 0xc4a9},
{0x00b6, 0xc4bc},
{0x00b7, 0xcb87},
{0x00b8, 0xc2b8},
{0x00b9, 0xc5a1},
{0x00ba, 0xc493},
{0x00bb, 0xc4a3},
{0x00bc, 0xc5a7},
{0x00bd, 0xc58a},
{0x00be, 0xc5be},
{0x00bf, 0xc58b},
{0x00c0, 0xc480},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc383},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc4ae},
{0x00c8, 0xc48c},
{0x00c9, 0xc389},
{0x00ca, 0xc498},
{0x00cb, 0xc38b},
{0x00cc, 0xc496},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc4aa},
{0x00d0, 0xc490},
{0x00d1, 0xc585},
{0x00d2, 0xc58c},
{0x00d3, 0xc4b6},
{0x00d4, 0xc394},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc398},
{0x00d9, 0xc5b2},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc5a8},
{0x00de, 0xc5aa},
{0x00df, 0xc39f},
{0x00e0, 0xc481},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc3a3},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc4af},
{0x00e8, 0xc48d},
{0x00e9, 0xc3a9},
{0x00ea, 0xc499},
{0x00eb, 0xc3ab},
{0x00ec, 0xc497},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc4ab},
{0x00f0, 0xc491},
{0x00f1, 0xc586},
{0x00f2, 0xc58d},
{0x00f3, 0xc4b7},
{0x00f4, 0xc3b4},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc3b8},
{0x00f9, 0xc5b3},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc5a9},
{0x00fe, 0xc5ab},
{0x00ff, 0xcb99}
static const uint16 iso8859_4_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_4_to_unicode_tree =
{
iso8859_4_to_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_4_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 40 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 48 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 50 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 58 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 60 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 68 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 70 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 78 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xc280, 0xc281, 0xc282, 0xc283, 0xc284, 0xc285, 0xc286, 0xc287,
/* 88 */ 0xc288, 0xc289, 0xc28a, 0xc28b, 0xc28c, 0xc28d, 0xc28e, 0xc28f,
/* 90 */ 0xc290, 0xc291, 0xc292, 0xc293, 0xc294, 0xc295, 0xc296, 0xc297,
/* 98 */ 0xc298, 0xc299, 0xc29a, 0xc29b, 0xc29c, 0xc29d, 0xc29e, 0xc29f,
/* a0 */ 0xc2a0, 0xc484, 0xc4b8, 0xc596, 0xc2a4, 0xc4a8, 0xc4bb, 0xc2a7,
/* a8 */ 0xc2a8, 0xc5a0, 0xc492, 0xc4a2, 0xc5a6, 0xc2ad, 0xc5bd, 0xc2af,
/* b0 */ 0xc2b0, 0xc485, 0xcb9b, 0xc597, 0xc2b4, 0xc4a9, 0xc4bc, 0xcb87,
/* b8 */ 0xc2b8, 0xc5a1, 0xc493, 0xc4a3, 0xc5a7, 0xc58a, 0xc5be, 0xc58b,
/* c0 */ 0xc480, 0xc381, 0xc382, 0xc383, 0xc384, 0xc385, 0xc386, 0xc4ae,
/* c8 */ 0xc48c, 0xc389, 0xc498, 0xc38b, 0xc496, 0xc38d, 0xc38e, 0xc4aa,
/* d0 */ 0xc490, 0xc585, 0xc58c, 0xc4b6, 0xc394, 0xc395, 0xc396, 0xc397,
/* d8 */ 0xc398, 0xc5b2, 0xc39a, 0xc39b, 0xc39c, 0xc5a8, 0xc5aa, 0xc39f,
/* e0 */ 0xc481, 0xc3a1, 0xc3a2, 0xc3a3, 0xc3a4, 0xc3a5, 0xc3a6, 0xc4af,
/* e8 */ 0xc48d, 0xc3a9, 0xc499, 0xc3ab, 0xc497, 0xc3ad, 0xc3ae, 0xc4ab,
/* f0 */ 0xc491, 0xc586, 0xc58d, 0xc4b7, 0xc3b4, 0xc3b5, 0xc3b6, 0xc3b7,
/* f8 */ 0xc3b8, 0xc5b3, 0xc3ba, 0xc3bb, 0xc3bc, 0xc5a9, 0xc5ab, 0xcb99
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_5_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_5[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xd081},
{0x00a2, 0xd082},
{0x00a3, 0xd083},
{0x00a4, 0xd084},
{0x00a5, 0xd085},
{0x00a6, 0xd086},
{0x00a7, 0xd087},
{0x00a8, 0xd088},
{0x00a9, 0xd089},
{0x00aa, 0xd08a},
{0x00ab, 0xd08b},
{0x00ac, 0xd08c},
{0x00ad, 0xc2ad},
{0x00ae, 0xd08e},
{0x00af, 0xd08f},
{0x00b0, 0xd090},
{0x00b1, 0xd091},
{0x00b2, 0xd092},
{0x00b3, 0xd093},
{0x00b4, 0xd094},
{0x00b5, 0xd095},
{0x00b6, 0xd096},
{0x00b7, 0xd097},
{0x00b8, 0xd098},
{0x00b9, 0xd099},
{0x00ba, 0xd09a},
{0x00bb, 0xd09b},
{0x00bc, 0xd09c},
{0x00bd, 0xd09d},
{0x00be, 0xd09e},
{0x00bf, 0xd09f},
{0x00c0, 0xd0a0},
{0x00c1, 0xd0a1},
{0x00c2, 0xd0a2},
{0x00c3, 0xd0a3},
{0x00c4, 0xd0a4},
{0x00c5, 0xd0a5},
{0x00c6, 0xd0a6},
{0x00c7, 0xd0a7},
{0x00c8, 0xd0a8},
{0x00c9, 0xd0a9},
{0x00ca, 0xd0aa},
{0x00cb, 0xd0ab},
{0x00cc, 0xd0ac},
{0x00cd, 0xd0ad},
{0x00ce, 0xd0ae},
{0x00cf, 0xd0af},
{0x00d0, 0xd0b0},
{0x00d1, 0xd0b1},
{0x00d2, 0xd0b2},
{0x00d3, 0xd0b3},
{0x00d4, 0xd0b4},
{0x00d5, 0xd0b5},
{0x00d6, 0xd0b6},
{0x00d7, 0xd0b7},
{0x00d8, 0xd0b8},
{0x00d9, 0xd0b9},
{0x00da, 0xd0ba},
{0x00db, 0xd0bb},
{0x00dc, 0xd0bc},
{0x00dd, 0xd0bd},
{0x00de, 0xd0be},
{0x00df, 0xd0bf},
{0x00e0, 0xd180},
{0x00e1, 0xd181},
{0x00e2, 0xd182},
{0x00e3, 0xd183},
{0x00e4, 0xd184},
{0x00e5, 0xd185},
{0x00e6, 0xd186},
{0x00e7, 0xd187},
{0x00e8, 0xd188},
{0x00e9, 0xd189},
{0x00ea, 0xd18a},
{0x00eb, 0xd18b},
{0x00ec, 0xd18c},
{0x00ed, 0xd18d},
{0x00ee, 0xd18e},
{0x00ef, 0xd18f},
{0x00f0, 0xe28496},
{0x00f1, 0xd191},
{0x00f2, 0xd192},
{0x00f3, 0xd193},
{0x00f4, 0xd194},
{0x00f5, 0xd195},
{0x00f6, 0xd196},
{0x00f7, 0xd197},
{0x00f8, 0xd198},
{0x00f9, 0xd199},
{0x00fa, 0xd19a},
{0x00fb, 0xd19b},
{0x00fc, 0xd19c},
{0x00fd, 0xc2a7},
{0x00fe, 0xd19e},
{0x00ff, 0xd19f}
static const uint32 iso8859_5_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_5_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_5_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_5_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0x00d081, 0x00d082, 0x00d083,
/* a4 */ 0x00d084, 0x00d085, 0x00d086, 0x00d087,
/* a8 */ 0x00d088, 0x00d089, 0x00d08a, 0x00d08b,
/* ac */ 0x00d08c, 0x00c2ad, 0x00d08e, 0x00d08f,
/* b0 */ 0x00d090, 0x00d091, 0x00d092, 0x00d093,
/* b4 */ 0x00d094, 0x00d095, 0x00d096, 0x00d097,
/* b8 */ 0x00d098, 0x00d099, 0x00d09a, 0x00d09b,
/* bc */ 0x00d09c, 0x00d09d, 0x00d09e, 0x00d09f,
/* c0 */ 0x00d0a0, 0x00d0a1, 0x00d0a2, 0x00d0a3,
/* c4 */ 0x00d0a4, 0x00d0a5, 0x00d0a6, 0x00d0a7,
/* c8 */ 0x00d0a8, 0x00d0a9, 0x00d0aa, 0x00d0ab,
/* cc */ 0x00d0ac, 0x00d0ad, 0x00d0ae, 0x00d0af,
/* d0 */ 0x00d0b0, 0x00d0b1, 0x00d0b2, 0x00d0b3,
/* d4 */ 0x00d0b4, 0x00d0b5, 0x00d0b6, 0x00d0b7,
/* d8 */ 0x00d0b8, 0x00d0b9, 0x00d0ba, 0x00d0bb,
/* dc */ 0x00d0bc, 0x00d0bd, 0x00d0be, 0x00d0bf,
/* e0 */ 0x00d180, 0x00d181, 0x00d182, 0x00d183,
/* e4 */ 0x00d184, 0x00d185, 0x00d186, 0x00d187,
/* e8 */ 0x00d188, 0x00d189, 0x00d18a, 0x00d18b,
/* ec */ 0x00d18c, 0x00d18d, 0x00d18e, 0x00d18f,
/* f0 */ 0xe28496, 0x00d191, 0x00d192, 0x00d193,
/* f4 */ 0x00d194, 0x00d195, 0x00d196, 0x00d197,
/* f8 */ 0x00d198, 0x00d199, 0x00d19a, 0x00d19b,
/* fc */ 0x00d19c, 0x00c2a7, 0x00d19e, 0x00d19f
};

View File

@ -1,87 +1,77 @@
/* src/backend/utils/mb/Unicode/iso8859_6_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_6[ 83 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a4, 0xc2a4},
{0x00ac, 0xd88c},
{0x00ad, 0xc2ad},
{0x00bb, 0xd89b},
{0x00bf, 0xd89f},
{0x00c1, 0xd8a1},
{0x00c2, 0xd8a2},
{0x00c3, 0xd8a3},
{0x00c4, 0xd8a4},
{0x00c5, 0xd8a5},
{0x00c6, 0xd8a6},
{0x00c7, 0xd8a7},
{0x00c8, 0xd8a8},
{0x00c9, 0xd8a9},
{0x00ca, 0xd8aa},
{0x00cb, 0xd8ab},
{0x00cc, 0xd8ac},
{0x00cd, 0xd8ad},
{0x00ce, 0xd8ae},
{0x00cf, 0xd8af},
{0x00d0, 0xd8b0},
{0x00d1, 0xd8b1},
{0x00d2, 0xd8b2},
{0x00d3, 0xd8b3},
{0x00d4, 0xd8b4},
{0x00d5, 0xd8b5},
{0x00d6, 0xd8b6},
{0x00d7, 0xd8b7},
{0x00d8, 0xd8b8},
{0x00d9, 0xd8b9},
{0x00da, 0xd8ba},
{0x00e0, 0xd980},
{0x00e1, 0xd981},
{0x00e2, 0xd982},
{0x00e3, 0xd983},
{0x00e4, 0xd984},
{0x00e5, 0xd985},
{0x00e6, 0xd986},
{0x00e7, 0xd987},
{0x00e8, 0xd988},
{0x00e9, 0xd989},
{0x00ea, 0xd98a},
{0x00eb, 0xd98b},
{0x00ec, 0xd98c},
{0x00ed, 0xd98d},
{0x00ee, 0xd98e},
{0x00ef, 0xd98f},
{0x00f0, 0xd990},
{0x00f1, 0xd991},
{0x00f2, 0xd992}
static const uint16 iso8859_6_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_6_to_unicode_tree =
{
iso8859_6_to_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0073, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xf2, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_6_to_unicode_tree_table[230] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 40 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 48 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 50 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 58 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 60 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 68 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 70 */ 0x0000, 0x0000, 0x0000,
/*** Single byte table, leaf: xx - offset 0x00073 ***/
/* 80 */ 0xc280, 0xc281, 0xc282, 0xc283, 0xc284, 0xc285, 0xc286, 0xc287,
/* 88 */ 0xc288, 0xc289, 0xc28a, 0xc28b, 0xc28c, 0xc28d, 0xc28e, 0xc28f,
/* 90 */ 0xc290, 0xc291, 0xc292, 0xc293, 0xc294, 0xc295, 0xc296, 0xc297,
/* 98 */ 0xc298, 0xc299, 0xc29a, 0xc29b, 0xc29c, 0xc29d, 0xc29e, 0xc29f,
/* a0 */ 0xc2a0, 0x0000, 0x0000, 0x0000, 0xc2a4, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0xd88c, 0xc2ad, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0xd89b, 0x0000, 0x0000, 0x0000, 0xd89f,
/* c0 */ 0x0000, 0xd8a1, 0xd8a2, 0xd8a3, 0xd8a4, 0xd8a5, 0xd8a6, 0xd8a7,
/* c8 */ 0xd8a8, 0xd8a9, 0xd8aa, 0xd8ab, 0xd8ac, 0xd8ad, 0xd8ae, 0xd8af,
/* d0 */ 0xd8b0, 0xd8b1, 0xd8b2, 0xd8b3, 0xd8b4, 0xd8b5, 0xd8b6, 0xd8b7,
/* d8 */ 0xd8b8, 0xd8b9, 0xd8ba, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* e0 */ 0xd980, 0xd981, 0xd982, 0xd983, 0xd984, 0xd985, 0xd986, 0xd987,
/* e8 */ 0xd988, 0xd989, 0xd98a, 0xd98b, 0xd98c, 0xd98d, 0xd98e, 0xd98f,
/* f0 */ 0xd990, 0xd991, 0xd992
};

View File

@ -1,129 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_7_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_7[ 125 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xe28098},
{0x00a2, 0xe28099},
{0x00a3, 0xc2a3},
{0x00a4, 0xe282ac},
{0x00a5, 0xe282af},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xcdba},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00af, 0xe28095},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xce84},
{0x00b5, 0xce85},
{0x00b6, 0xce86},
{0x00b7, 0xc2b7},
{0x00b8, 0xce88},
{0x00b9, 0xce89},
{0x00ba, 0xce8a},
{0x00bb, 0xc2bb},
{0x00bc, 0xce8c},
{0x00bd, 0xc2bd},
{0x00be, 0xce8e},
{0x00bf, 0xce8f},
{0x00c0, 0xce90},
{0x00c1, 0xce91},
{0x00c2, 0xce92},
{0x00c3, 0xce93},
{0x00c4, 0xce94},
{0x00c5, 0xce95},
{0x00c6, 0xce96},
{0x00c7, 0xce97},
{0x00c8, 0xce98},
{0x00c9, 0xce99},
{0x00ca, 0xce9a},
{0x00cb, 0xce9b},
{0x00cc, 0xce9c},
{0x00cd, 0xce9d},
{0x00ce, 0xce9e},
{0x00cf, 0xce9f},
{0x00d0, 0xcea0},
{0x00d1, 0xcea1},
{0x00d3, 0xcea3},
{0x00d4, 0xcea4},
{0x00d5, 0xcea5},
{0x00d6, 0xcea6},
{0x00d7, 0xcea7},
{0x00d8, 0xcea8},
{0x00d9, 0xcea9},
{0x00da, 0xceaa},
{0x00db, 0xceab},
{0x00dc, 0xceac},
{0x00dd, 0xcead},
{0x00de, 0xceae},
{0x00df, 0xceaf},
{0x00e0, 0xceb0},
{0x00e1, 0xceb1},
{0x00e2, 0xceb2},
{0x00e3, 0xceb3},
{0x00e4, 0xceb4},
{0x00e5, 0xceb5},
{0x00e6, 0xceb6},
{0x00e7, 0xceb7},
{0x00e8, 0xceb8},
{0x00e9, 0xceb9},
{0x00ea, 0xceba},
{0x00eb, 0xcebb},
{0x00ec, 0xcebc},
{0x00ed, 0xcebd},
{0x00ee, 0xcebe},
{0x00ef, 0xcebf},
{0x00f0, 0xcf80},
{0x00f1, 0xcf81},
{0x00f2, 0xcf82},
{0x00f3, 0xcf83},
{0x00f4, 0xcf84},
{0x00f5, 0xcf85},
{0x00f6, 0xcf86},
{0x00f7, 0xcf87},
{0x00f8, 0xcf88},
{0x00f9, 0xcf89},
{0x00fa, 0xcf8a},
{0x00fb, 0xcf8b},
{0x00fc, 0xcf8c},
{0x00fd, 0xcf8d},
{0x00fe, 0xcf8e}
static const uint32 iso8859_7_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_7_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_7_to_unicode_tree_table,
0x007f, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xfe, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_7_to_unicode_tree_table[254] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x0007f ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0xe28098, 0xe28099, 0x00c2a3,
/* a4 */ 0xe282ac, 0xe282af, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00cdba, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x000000, 0xe28095,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00ce84, 0x00ce85, 0x00ce86, 0x00c2b7,
/* b8 */ 0x00ce88, 0x00ce89, 0x00ce8a, 0x00c2bb,
/* bc */ 0x00ce8c, 0x00c2bd, 0x00ce8e, 0x00ce8f,
/* c0 */ 0x00ce90, 0x00ce91, 0x00ce92, 0x00ce93,
/* c4 */ 0x00ce94, 0x00ce95, 0x00ce96, 0x00ce97,
/* c8 */ 0x00ce98, 0x00ce99, 0x00ce9a, 0x00ce9b,
/* cc */ 0x00ce9c, 0x00ce9d, 0x00ce9e, 0x00ce9f,
/* d0 */ 0x00cea0, 0x00cea1, 0x000000, 0x00cea3,
/* d4 */ 0x00cea4, 0x00cea5, 0x00cea6, 0x00cea7,
/* d8 */ 0x00cea8, 0x00cea9, 0x00ceaa, 0x00ceab,
/* dc */ 0x00ceac, 0x00cead, 0x00ceae, 0x00ceaf,
/* e0 */ 0x00ceb0, 0x00ceb1, 0x00ceb2, 0x00ceb3,
/* e4 */ 0x00ceb4, 0x00ceb5, 0x00ceb6, 0x00ceb7,
/* e8 */ 0x00ceb8, 0x00ceb9, 0x00ceba, 0x00cebb,
/* ec */ 0x00cebc, 0x00cebd, 0x00cebe, 0x00cebf,
/* f0 */ 0x00cf80, 0x00cf81, 0x00cf82, 0x00cf83,
/* f4 */ 0x00cf84, 0x00cf85, 0x00cf86, 0x00cf87,
/* f8 */ 0x00cf88, 0x00cf89, 0x00cf8a, 0x00cf8b,
/* fc */ 0x00cf8c, 0x00cf8d, 0x00cf8e
};

View File

@ -1,96 +1,111 @@
/* src/backend/utils/mb/Unicode/iso8859_8_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_8[ 92 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xc397},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc3b7},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00df, 0xe28097},
{0x00e0, 0xd790},
{0x00e1, 0xd791},
{0x00e2, 0xd792},
{0x00e3, 0xd793},
{0x00e4, 0xd794},
{0x00e5, 0xd795},
{0x00e6, 0xd796},
{0x00e7, 0xd797},
{0x00e8, 0xd798},
{0x00e9, 0xd799},
{0x00ea, 0xd79a},
{0x00eb, 0xd79b},
{0x00ec, 0xd79c},
{0x00ed, 0xd79d},
{0x00ee, 0xd79e},
{0x00ef, 0xd79f},
{0x00f0, 0xd7a0},
{0x00f1, 0xd7a1},
{0x00f2, 0xd7a2},
{0x00f3, 0xd7a3},
{0x00f4, 0xd7a4},
{0x00f5, 0xd7a5},
{0x00f6, 0xd7a6},
{0x00f7, 0xd7a7},
{0x00f8, 0xd7a8},
{0x00f9, 0xd7a9},
{0x00fa, 0xd7aa},
{0x00fd, 0xe2808e},
{0x00fe, 0xe2808f}
static const uint32 iso8859_8_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_8_to_unicode_tree =
{
NULL, /* 16-bit table not used */
iso8859_8_to_unicode_tree_table,
0x007f, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xfe, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 iso8859_8_to_unicode_tree_table[254] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x0007f ***/
/* 80 */ 0x00c280, 0x00c281, 0x00c282, 0x00c283,
/* 84 */ 0x00c284, 0x00c285, 0x00c286, 0x00c287,
/* 88 */ 0x00c288, 0x00c289, 0x00c28a, 0x00c28b,
/* 8c */ 0x00c28c, 0x00c28d, 0x00c28e, 0x00c28f,
/* 90 */ 0x00c290, 0x00c291, 0x00c292, 0x00c293,
/* 94 */ 0x00c294, 0x00c295, 0x00c296, 0x00c297,
/* 98 */ 0x00c298, 0x00c299, 0x00c29a, 0x00c29b,
/* 9c */ 0x00c29c, 0x00c29d, 0x00c29e, 0x00c29f,
/* a0 */ 0x00c2a0, 0x000000, 0x00c2a2, 0x00c2a3,
/* a4 */ 0x00c2a4, 0x00c2a5, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00c397, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c2af,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c2b8, 0x00c2b9, 0x00c3b7, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x000000,
/* c0 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* c4 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* c8 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* cc */ 0x000000, 0x000000, 0x000000, 0x000000,
/* d0 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* d4 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* d8 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* dc */ 0x000000, 0x000000, 0x000000, 0xe28097,
/* e0 */ 0x00d790, 0x00d791, 0x00d792, 0x00d793,
/* e4 */ 0x00d794, 0x00d795, 0x00d796, 0x00d797,
/* e8 */ 0x00d798, 0x00d799, 0x00d79a, 0x00d79b,
/* ec */ 0x00d79c, 0x00d79d, 0x00d79e, 0x00d79f,
/* f0 */ 0x00d7a0, 0x00d7a1, 0x00d7a2, 0x00d7a3,
/* f4 */ 0x00d7a4, 0x00d7a5, 0x00d7a6, 0x00d7a7,
/* f8 */ 0x00d7a8, 0x00d7a9, 0x00d7aa, 0x000000,
/* fc */ 0x000000, 0xe2808e, 0xe2808f
};

View File

@ -1,132 +1,79 @@
/* src/backend/utils/mb/Unicode/iso8859_9_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapISO8859_9[ 128 ] = {
{0x0080, 0xc280},
{0x0081, 0xc281},
{0x0082, 0xc282},
{0x0083, 0xc283},
{0x0084, 0xc284},
{0x0085, 0xc285},
{0x0086, 0xc286},
{0x0087, 0xc287},
{0x0088, 0xc288},
{0x0089, 0xc289},
{0x008a, 0xc28a},
{0x008b, 0xc28b},
{0x008c, 0xc28c},
{0x008d, 0xc28d},
{0x008e, 0xc28e},
{0x008f, 0xc28f},
{0x0090, 0xc290},
{0x0091, 0xc291},
{0x0092, 0xc292},
{0x0093, 0xc293},
{0x0094, 0xc294},
{0x0095, 0xc295},
{0x0096, 0xc296},
{0x0097, 0xc297},
{0x0098, 0xc298},
{0x0099, 0xc299},
{0x009a, 0xc29a},
{0x009b, 0xc29b},
{0x009c, 0xc29c},
{0x009d, 0xc29d},
{0x009e, 0xc29e},
{0x009f, 0xc29f},
{0x00a0, 0xc2a0},
{0x00a1, 0xc2a1},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xc2aa},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc2ba},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xc2bf},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc383},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xc38c},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc49e},
{0x00d1, 0xc391},
{0x00d2, 0xc392},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc398},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc4b0},
{0x00de, 0xc59e},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc3a3},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xc3ac},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc49f},
{0x00f1, 0xc3b1},
{0x00f2, 0xc3b2},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc3b8},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc4b1},
{0x00fe, 0xc59f},
{0x00ff, 0xc3bf}
static const uint16 iso8859_9_to_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_9_to_unicode_tree =
{
iso8859_9_to_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_9_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 40 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 48 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 50 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 58 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 60 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 68 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 70 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 78 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xc280, 0xc281, 0xc282, 0xc283, 0xc284, 0xc285, 0xc286, 0xc287,
/* 88 */ 0xc288, 0xc289, 0xc28a, 0xc28b, 0xc28c, 0xc28d, 0xc28e, 0xc28f,
/* 90 */ 0xc290, 0xc291, 0xc292, 0xc293, 0xc294, 0xc295, 0xc296, 0xc297,
/* 98 */ 0xc298, 0xc299, 0xc29a, 0xc29b, 0xc29c, 0xc29d, 0xc29e, 0xc29f,
/* a0 */ 0xc2a0, 0xc2a1, 0xc2a2, 0xc2a3, 0xc2a4, 0xc2a5, 0xc2a6, 0xc2a7,
/* a8 */ 0xc2a8, 0xc2a9, 0xc2aa, 0xc2ab, 0xc2ac, 0xc2ad, 0xc2ae, 0xc2af,
/* b0 */ 0xc2b0, 0xc2b1, 0xc2b2, 0xc2b3, 0xc2b4, 0xc2b5, 0xc2b6, 0xc2b7,
/* b8 */ 0xc2b8, 0xc2b9, 0xc2ba, 0xc2bb, 0xc2bc, 0xc2bd, 0xc2be, 0xc2bf,
/* c0 */ 0xc380, 0xc381, 0xc382, 0xc383, 0xc384, 0xc385, 0xc386, 0xc387,
/* c8 */ 0xc388, 0xc389, 0xc38a, 0xc38b, 0xc38c, 0xc38d, 0xc38e, 0xc38f,
/* d0 */ 0xc49e, 0xc391, 0xc392, 0xc393, 0xc394, 0xc395, 0xc396, 0xc397,
/* d8 */ 0xc398, 0xc399, 0xc39a, 0xc39b, 0xc39c, 0xc4b0, 0xc59e, 0xc39f,
/* e0 */ 0xc3a0, 0xc3a1, 0xc3a2, 0xc3a3, 0xc3a4, 0xc3a5, 0xc3a6, 0xc3a7,
/* e8 */ 0xc3a8, 0xc3a9, 0xc3aa, 0xc3ab, 0xc3ac, 0xc3ad, 0xc3ae, 0xc3af,
/* f0 */ 0xc49f, 0xc3b1, 0xc3b2, 0xc3b3, 0xc3b4, 0xc3b5, 0xc3b6, 0xc3b7,
/* f8 */ 0xc3b8, 0xc3b9, 0xc3ba, 0xc3bb, 0xc3bc, 0xc4b1, 0xc59f, 0xc3bf
};

File diff suppressed because it is too large Load Diff

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/koi8r_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapKOI8R[ 128 ] = {
{0x0080, 0xe29480},
{0x0081, 0xe29482},
{0x0082, 0xe2948c},
{0x0083, 0xe29490},
{0x0084, 0xe29494},
{0x0085, 0xe29498},
{0x0086, 0xe2949c},
{0x0087, 0xe294a4},
{0x0088, 0xe294ac},
{0x0089, 0xe294b4},
{0x008a, 0xe294bc},
{0x008b, 0xe29680},
{0x008c, 0xe29684},
{0x008d, 0xe29688},
{0x008e, 0xe2968c},
{0x008f, 0xe29690},
{0x0090, 0xe29691},
{0x0091, 0xe29692},
{0x0092, 0xe29693},
{0x0093, 0xe28ca0},
{0x0094, 0xe296a0},
{0x0095, 0xe28899},
{0x0096, 0xe2889a},
{0x0097, 0xe28988},
{0x0098, 0xe289a4},
{0x0099, 0xe289a5},
{0x009a, 0xc2a0},
{0x009b, 0xe28ca1},
{0x009c, 0xc2b0},
{0x009d, 0xc2b2},
{0x009e, 0xc2b7},
{0x009f, 0xc3b7},
{0x00a0, 0xe29590},
{0x00a1, 0xe29591},
{0x00a2, 0xe29592},
{0x00a3, 0xd191},
{0x00a4, 0xe29593},
{0x00a5, 0xe29594},
{0x00a6, 0xe29595},
{0x00a7, 0xe29596},
{0x00a8, 0xe29597},
{0x00a9, 0xe29598},
{0x00aa, 0xe29599},
{0x00ab, 0xe2959a},
{0x00ac, 0xe2959b},
{0x00ad, 0xe2959c},
{0x00ae, 0xe2959d},
{0x00af, 0xe2959e},
{0x00b0, 0xe2959f},
{0x00b1, 0xe295a0},
{0x00b2, 0xe295a1},
{0x00b3, 0xd081},
{0x00b4, 0xe295a2},
{0x00b5, 0xe295a3},
{0x00b6, 0xe295a4},
{0x00b7, 0xe295a5},
{0x00b8, 0xe295a6},
{0x00b9, 0xe295a7},
{0x00ba, 0xe295a8},
{0x00bb, 0xe295a9},
{0x00bc, 0xe295aa},
{0x00bd, 0xe295ab},
{0x00be, 0xe295ac},
{0x00bf, 0xc2a9},
{0x00c0, 0xd18e},
{0x00c1, 0xd0b0},
{0x00c2, 0xd0b1},
{0x00c3, 0xd186},
{0x00c4, 0xd0b4},
{0x00c5, 0xd0b5},
{0x00c6, 0xd184},
{0x00c7, 0xd0b3},
{0x00c8, 0xd185},
{0x00c9, 0xd0b8},
{0x00ca, 0xd0b9},
{0x00cb, 0xd0ba},
{0x00cc, 0xd0bb},
{0x00cd, 0xd0bc},
{0x00ce, 0xd0bd},
{0x00cf, 0xd0be},
{0x00d0, 0xd0bf},
{0x00d1, 0xd18f},
{0x00d2, 0xd180},
{0x00d3, 0xd181},
{0x00d4, 0xd182},
{0x00d5, 0xd183},
{0x00d6, 0xd0b6},
{0x00d7, 0xd0b2},
{0x00d8, 0xd18c},
{0x00d9, 0xd18b},
{0x00da, 0xd0b7},
{0x00db, 0xd188},
{0x00dc, 0xd18d},
{0x00dd, 0xd189},
{0x00de, 0xd187},
{0x00df, 0xd18a},
{0x00e0, 0xd0ae},
{0x00e1, 0xd090},
{0x00e2, 0xd091},
{0x00e3, 0xd0a6},
{0x00e4, 0xd094},
{0x00e5, 0xd095},
{0x00e6, 0xd0a4},
{0x00e7, 0xd093},
{0x00e8, 0xd0a5},
{0x00e9, 0xd098},
{0x00ea, 0xd099},
{0x00eb, 0xd09a},
{0x00ec, 0xd09b},
{0x00ed, 0xd09c},
{0x00ee, 0xd09d},
{0x00ef, 0xd09e},
{0x00f0, 0xd09f},
{0x00f1, 0xd0af},
{0x00f2, 0xd0a0},
{0x00f3, 0xd0a1},
{0x00f4, 0xd0a2},
{0x00f5, 0xd0a3},
{0x00f6, 0xd096},
{0x00f7, 0xd092},
{0x00f8, 0xd0ac},
{0x00f9, 0xd0ab},
{0x00fa, 0xd097},
{0x00fb, 0xd0a8},
{0x00fc, 0xd0ad},
{0x00fd, 0xd0a9},
{0x00fe, 0xd0a7},
{0x00ff, 0xd0aa}
static const uint32 koi8r_to_unicode_tree_table[];
static const pg_mb_radix_tree koi8r_to_unicode_tree =
{
NULL, /* 16-bit table not used */
koi8r_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 koi8r_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe29480, 0xe29482, 0xe2948c, 0xe29490,
/* 84 */ 0xe29494, 0xe29498, 0xe2949c, 0xe294a4,
/* 88 */ 0xe294ac, 0xe294b4, 0xe294bc, 0xe29680,
/* 8c */ 0xe29684, 0xe29688, 0xe2968c, 0xe29690,
/* 90 */ 0xe29691, 0xe29692, 0xe29693, 0xe28ca0,
/* 94 */ 0xe296a0, 0xe28899, 0xe2889a, 0xe28988,
/* 98 */ 0xe289a4, 0xe289a5, 0x00c2a0, 0xe28ca1,
/* 9c */ 0x00c2b0, 0x00c2b2, 0x00c2b7, 0x00c3b7,
/* a0 */ 0xe29590, 0xe29591, 0xe29592, 0x00d191,
/* a4 */ 0xe29593, 0xe29594, 0xe29595, 0xe29596,
/* a8 */ 0xe29597, 0xe29598, 0xe29599, 0xe2959a,
/* ac */ 0xe2959b, 0xe2959c, 0xe2959d, 0xe2959e,
/* b0 */ 0xe2959f, 0xe295a0, 0xe295a1, 0x00d081,
/* b4 */ 0xe295a2, 0xe295a3, 0xe295a4, 0xe295a5,
/* b8 */ 0xe295a6, 0xe295a7, 0xe295a8, 0xe295a9,
/* bc */ 0xe295aa, 0xe295ab, 0xe295ac, 0x00c2a9,
/* c0 */ 0x00d18e, 0x00d0b0, 0x00d0b1, 0x00d186,
/* c4 */ 0x00d0b4, 0x00d0b5, 0x00d184, 0x00d0b3,
/* c8 */ 0x00d185, 0x00d0b8, 0x00d0b9, 0x00d0ba,
/* cc */ 0x00d0bb, 0x00d0bc, 0x00d0bd, 0x00d0be,
/* d0 */ 0x00d0bf, 0x00d18f, 0x00d180, 0x00d181,
/* d4 */ 0x00d182, 0x00d183, 0x00d0b6, 0x00d0b2,
/* d8 */ 0x00d18c, 0x00d18b, 0x00d0b7, 0x00d188,
/* dc */ 0x00d18d, 0x00d189, 0x00d187, 0x00d18a,
/* e0 */ 0x00d0ae, 0x00d090, 0x00d091, 0x00d0a6,
/* e4 */ 0x00d094, 0x00d095, 0x00d0a4, 0x00d093,
/* e8 */ 0x00d0a5, 0x00d098, 0x00d099, 0x00d09a,
/* ec */ 0x00d09b, 0x00d09c, 0x00d09d, 0x00d09e,
/* f0 */ 0x00d09f, 0x00d0af, 0x00d0a0, 0x00d0a1,
/* f4 */ 0x00d0a2, 0x00d0a3, 0x00d096, 0x00d092,
/* f8 */ 0x00d0ac, 0x00d0ab, 0x00d097, 0x00d0a8,
/* fc */ 0x00d0ad, 0x00d0a9, 0x00d0a7, 0x00d0aa
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/koi8u_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapKOI8U[ 128 ] = {
{0x0080, 0xe29480},
{0x0081, 0xe29482},
{0x0082, 0xe2948c},
{0x0083, 0xe29490},
{0x0084, 0xe29494},
{0x0085, 0xe29498},
{0x0086, 0xe2949c},
{0x0087, 0xe294a4},
{0x0088, 0xe294ac},
{0x0089, 0xe294b4},
{0x008a, 0xe294bc},
{0x008b, 0xe29680},
{0x008c, 0xe29684},
{0x008d, 0xe29688},
{0x008e, 0xe2968c},
{0x008f, 0xe29690},
{0x0090, 0xe29691},
{0x0091, 0xe29692},
{0x0092, 0xe29693},
{0x0093, 0xe28ca0},
{0x0094, 0xe296a0},
{0x0095, 0xe28899},
{0x0096, 0xe2889a},
{0x0097, 0xe28988},
{0x0098, 0xe289a4},
{0x0099, 0xe289a5},
{0x009a, 0xc2a0},
{0x009b, 0xe28ca1},
{0x009c, 0xc2b0},
{0x009d, 0xc2b2},
{0x009e, 0xc2b7},
{0x009f, 0xc3b7},
{0x00a0, 0xe29590},
{0x00a1, 0xe29591},
{0x00a2, 0xe29592},
{0x00a3, 0xd191},
{0x00a4, 0xd194},
{0x00a5, 0xe29594},
{0x00a6, 0xd196},
{0x00a7, 0xd197},
{0x00a8, 0xe29597},
{0x00a9, 0xe29598},
{0x00aa, 0xe29599},
{0x00ab, 0xe2959a},
{0x00ac, 0xe2959b},
{0x00ad, 0xd291},
{0x00ae, 0xe2959d},
{0x00af, 0xe2959e},
{0x00b0, 0xe2959f},
{0x00b1, 0xe295a0},
{0x00b2, 0xe295a1},
{0x00b3, 0xd081},
{0x00b4, 0xd084},
{0x00b5, 0xe295a3},
{0x00b6, 0xd086},
{0x00b7, 0xd087},
{0x00b8, 0xe295a6},
{0x00b9, 0xe295a7},
{0x00ba, 0xe295a8},
{0x00bb, 0xe295a9},
{0x00bc, 0xe295aa},
{0x00bd, 0xd290},
{0x00be, 0xe295ac},
{0x00bf, 0xc2a9},
{0x00c0, 0xd18e},
{0x00c1, 0xd0b0},
{0x00c2, 0xd0b1},
{0x00c3, 0xd186},
{0x00c4, 0xd0b4},
{0x00c5, 0xd0b5},
{0x00c6, 0xd184},
{0x00c7, 0xd0b3},
{0x00c8, 0xd185},
{0x00c9, 0xd0b8},
{0x00ca, 0xd0b9},
{0x00cb, 0xd0ba},
{0x00cc, 0xd0bb},
{0x00cd, 0xd0bc},
{0x00ce, 0xd0bd},
{0x00cf, 0xd0be},
{0x00d0, 0xd0bf},
{0x00d1, 0xd18f},
{0x00d2, 0xd180},
{0x00d3, 0xd181},
{0x00d4, 0xd182},
{0x00d5, 0xd183},
{0x00d6, 0xd0b6},
{0x00d7, 0xd0b2},
{0x00d8, 0xd18c},
{0x00d9, 0xd18b},
{0x00da, 0xd0b7},
{0x00db, 0xd188},
{0x00dc, 0xd18d},
{0x00dd, 0xd189},
{0x00de, 0xd187},
{0x00df, 0xd18a},
{0x00e0, 0xd0ae},
{0x00e1, 0xd090},
{0x00e2, 0xd091},
{0x00e3, 0xd0a6},
{0x00e4, 0xd094},
{0x00e5, 0xd095},
{0x00e6, 0xd0a4},
{0x00e7, 0xd093},
{0x00e8, 0xd0a5},
{0x00e9, 0xd098},
{0x00ea, 0xd099},
{0x00eb, 0xd09a},
{0x00ec, 0xd09b},
{0x00ed, 0xd09c},
{0x00ee, 0xd09d},
{0x00ef, 0xd09e},
{0x00f0, 0xd09f},
{0x00f1, 0xd0af},
{0x00f2, 0xd0a0},
{0x00f3, 0xd0a1},
{0x00f4, 0xd0a2},
{0x00f5, 0xd0a3},
{0x00f6, 0xd096},
{0x00f7, 0xd092},
{0x00f8, 0xd0ac},
{0x00f9, 0xd0ab},
{0x00fa, 0xd097},
{0x00fb, 0xd0a8},
{0x00fc, 0xd0ad},
{0x00fd, 0xd0a9},
{0x00fe, 0xd0a7},
{0x00ff, 0xd0aa}
static const uint32 koi8u_to_unicode_tree_table[];
static const pg_mb_radix_tree koi8u_to_unicode_tree =
{
NULL, /* 16-bit table not used */
koi8u_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 koi8u_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe29480, 0xe29482, 0xe2948c, 0xe29490,
/* 84 */ 0xe29494, 0xe29498, 0xe2949c, 0xe294a4,
/* 88 */ 0xe294ac, 0xe294b4, 0xe294bc, 0xe29680,
/* 8c */ 0xe29684, 0xe29688, 0xe2968c, 0xe29690,
/* 90 */ 0xe29691, 0xe29692, 0xe29693, 0xe28ca0,
/* 94 */ 0xe296a0, 0xe28899, 0xe2889a, 0xe28988,
/* 98 */ 0xe289a4, 0xe289a5, 0x00c2a0, 0xe28ca1,
/* 9c */ 0x00c2b0, 0x00c2b2, 0x00c2b7, 0x00c3b7,
/* a0 */ 0xe29590, 0xe29591, 0xe29592, 0x00d191,
/* a4 */ 0x00d194, 0xe29594, 0x00d196, 0x00d197,
/* a8 */ 0xe29597, 0xe29598, 0xe29599, 0xe2959a,
/* ac */ 0xe2959b, 0x00d291, 0xe2959d, 0xe2959e,
/* b0 */ 0xe2959f, 0xe295a0, 0xe295a1, 0x00d081,
/* b4 */ 0x00d084, 0xe295a3, 0x00d086, 0x00d087,
/* b8 */ 0xe295a6, 0xe295a7, 0xe295a8, 0xe295a9,
/* bc */ 0xe295aa, 0x00d290, 0xe295ac, 0x00c2a9,
/* c0 */ 0x00d18e, 0x00d0b0, 0x00d0b1, 0x00d186,
/* c4 */ 0x00d0b4, 0x00d0b5, 0x00d184, 0x00d0b3,
/* c8 */ 0x00d185, 0x00d0b8, 0x00d0b9, 0x00d0ba,
/* cc */ 0x00d0bb, 0x00d0bc, 0x00d0bd, 0x00d0be,
/* d0 */ 0x00d0bf, 0x00d18f, 0x00d180, 0x00d181,
/* d4 */ 0x00d182, 0x00d183, 0x00d0b6, 0x00d0b2,
/* d8 */ 0x00d18c, 0x00d18b, 0x00d0b7, 0x00d188,
/* dc */ 0x00d18d, 0x00d189, 0x00d187, 0x00d18a,
/* e0 */ 0x00d0ae, 0x00d090, 0x00d091, 0x00d0a6,
/* e4 */ 0x00d094, 0x00d095, 0x00d0a4, 0x00d093,
/* e8 */ 0x00d0a5, 0x00d098, 0x00d099, 0x00d09a,
/* ec */ 0x00d09b, 0x00d09c, 0x00d09d, 0x00d09e,
/* f0 */ 0x00d09f, 0x00d0af, 0x00d0a0, 0x00d0a1,
/* f4 */ 0x00d0a2, 0x00d0a3, 0x00d096, 0x00d092,
/* f8 */ 0x00d0ac, 0x00d0ab, 0x00d097, 0x00d0a8,
/* fc */ 0x00d0ad, 0x00d0a9, 0x00d0a7, 0x00d0aa
};

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
/* src/backend/utils/mb/Unicode/shift_jis_2004_to_utf8_combined.map */
static const pg_local_to_utf_combined LUmapSHIFT_JIS_2004_combined[ 25 ] = { /* */
{0x82f5, 0x00e3818b, 0x00e3829a}, /* U+304B+309A [2000] */
{0x82f6, 0x00e3818d, 0x00e3829a}, /* U+304D+309A [2000] */
{0x82f7, 0x00e3818f, 0x00e3829a}, /* U+304F+309A [2000] */
{0x82f8, 0x00e38191, 0x00e3829a}, /* U+3051+309A [2000] */
{0x82f9, 0x00e38193, 0x00e3829a}, /* U+3053+309A [2000] */
{0x8397, 0x00e382ab, 0x00e3829a}, /* U+30AB+309A [2000] */
{0x8398, 0x00e382ad, 0x00e3829a}, /* U+30AD+309A [2000] */
{0x8399, 0x00e382af, 0x00e3829a}, /* U+30AF+309A [2000] */
{0x839a, 0x00e382b1, 0x00e3829a}, /* U+30B1+309A [2000] */
{0x839b, 0x00e382b3, 0x00e3829a}, /* U+30B3+309A [2000] */
{0x839c, 0x00e382bb, 0x00e3829a}, /* U+30BB+309A [2000] */
{0x839d, 0x00e38384, 0x00e3829a}, /* U+30C4+309A [2000] */
{0x839e, 0x00e38388, 0x00e3829a}, /* U+30C8+309A [2000] */
{0x83f6, 0x00e387b7, 0x00e3829a}, /* U+31F7+309A [2000] */
{0x8663, 0x0000c3a6, 0x0000cc80}, /* U+00E6+0300 [2000] */
{0x8667, 0x0000c994, 0x0000cc80}, /* U+0254+0300 [2000] */
{0x8668, 0x0000c994, 0x0000cc81}, /* U+0254+0301 [2000] */
{0x8669, 0x0000ca8c, 0x0000cc80}, /* U+028C+0300 [2000] */
{0x866a, 0x0000ca8c, 0x0000cc81}, /* U+028C+0301 [2000] */
{0x866b, 0x0000c999, 0x0000cc80}, /* U+0259+0300 [2000] */
{0x866c, 0x0000c999, 0x0000cc81}, /* U+0259+0301 [2000] */
{0x866d, 0x0000c99a, 0x0000cc80}, /* U+025A+0300 [2000] */
{0x866e, 0x0000c99a, 0x0000cc81}, /* U+025A+0301 [2000] */
{0x8685, 0x0000cba9, 0x0000cba5}, /* U+02E9+02E5 [2000] */
{0x8686, 0x0000cba5, 0x0000cba9} /* U+02E5+02E9 [2000] */
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
/* src/backend/utils/mb/Unicode/utf8_to_euc_jis_2004_combined.map */
static const pg_utf_to_local_combined ULmapEUC_JIS_2004_combined[ 25 ] = { /* */
{0x0000c3a6, 0x0000cc80, 0xabc4}, /* U+00E6+0300 [2000] */
{0x0000c994, 0x0000cc80, 0xabc8}, /* U+0254+0300 [2000] */
{0x0000c994, 0x0000cc81, 0xabc9}, /* U+0254+0301 [2000] */
{0x0000c999, 0x0000cc80, 0xabcc}, /* U+0259+0300 [2000] */
{0x0000c999, 0x0000cc81, 0xabcd}, /* U+0259+0301 [2000] */
{0x0000c99a, 0x0000cc80, 0xabce}, /* U+025A+0300 [2000] */
{0x0000c99a, 0x0000cc81, 0xabcf}, /* U+025A+0301 [2000] */
{0x0000ca8c, 0x0000cc80, 0xabca}, /* U+028C+0300 [2000] */
{0x0000ca8c, 0x0000cc81, 0xabcb}, /* U+028C+0301 [2000] */
{0x0000cba5, 0x0000cba9, 0xabe6}, /* U+02E5+02E9 [2000] */
{0x0000cba9, 0x0000cba5, 0xabe5}, /* U+02E9+02E5 [2000] */
{0x00e3818b, 0x00e3829a, 0xa4f7}, /* U+304B+309A [2000] */
{0x00e3818d, 0x00e3829a, 0xa4f8}, /* U+304D+309A [2000] */
{0x00e3818f, 0x00e3829a, 0xa4f9}, /* U+304F+309A [2000] */
{0x00e38191, 0x00e3829a, 0xa4fa}, /* U+3051+309A [2000] */
{0x00e38193, 0x00e3829a, 0xa4fb}, /* U+3053+309A [2000] */
{0x00e382ab, 0x00e3829a, 0xa5f7}, /* U+30AB+309A [2000] */
{0x00e382ad, 0x00e3829a, 0xa5f8}, /* U+30AD+309A [2000] */
{0x00e382af, 0x00e3829a, 0xa5f9}, /* U+30AF+309A [2000] */
{0x00e382b1, 0x00e3829a, 0xa5fa}, /* U+30B1+309A [2000] */
{0x00e382b3, 0x00e3829a, 0xa5fb}, /* U+30B3+309A [2000] */
{0x00e382bb, 0x00e3829a, 0xa5fc}, /* U+30BB+309A [2000] */
{0x00e38384, 0x00e3829a, 0xa5fd}, /* U+30C4+309A [2000] */
{0x00e38388, 0x00e3829a, 0xa5fe}, /* U+30C8+309A [2000] */
{0x00e387b7, 0x00e3829a, 0xa6f8} /* U+31F7+309A [2000] */
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,132 +1,114 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_10.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_10[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a7, 0x00a7},
{0xc2ad, 0x00ad},
{0xc2b0, 0x00b0},
{0xc2b7, 0x00b7},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc383, 0x00c3},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc389, 0x00c9},
{0xc38b, 0x00cb},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc390, 0x00d0},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc398, 0x00d8},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39d, 0x00dd},
{0xc39e, 0x00de},
{0xc39f, 0x00df},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a3, 0x00e3},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a9, 0x00e9},
{0xc3ab, 0x00eb},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b0, 0x00f0},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b8, 0x00f8},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bd, 0x00fd},
{0xc3be, 0x00fe},
{0xc480, 0x00c0},
{0xc481, 0x00e0},
{0xc484, 0x00a1},
{0xc485, 0x00b1},
{0xc48c, 0x00c8},
{0xc48d, 0x00e8},
{0xc490, 0x00a9},
{0xc491, 0x00b9},
{0xc492, 0x00a2},
{0xc493, 0x00b2},
{0xc496, 0x00cc},
{0xc497, 0x00ec},
{0xc498, 0x00ca},
{0xc499, 0x00ea},
{0xc4a2, 0x00a3},
{0xc4a3, 0x00b3},
{0xc4a8, 0x00a5},
{0xc4a9, 0x00b5},
{0xc4aa, 0x00a4},
{0xc4ab, 0x00b4},
{0xc4ae, 0x00c7},
{0xc4af, 0x00e7},
{0xc4b6, 0x00a6},
{0xc4b7, 0x00b6},
{0xc4b8, 0x00ff},
{0xc4bb, 0x00a8},
{0xc4bc, 0x00b8},
{0xc585, 0x00d1},
{0xc586, 0x00f1},
{0xc58a, 0x00af},
{0xc58b, 0x00bf},
{0xc58c, 0x00d2},
{0xc58d, 0x00f2},
{0xc5a0, 0x00aa},
{0xc5a1, 0x00ba},
{0xc5a6, 0x00ab},
{0xc5a7, 0x00bb},
{0xc5a8, 0x00d7},
{0xc5a9, 0x00f7},
{0xc5aa, 0x00ae},
{0xc5ab, 0x00be},
{0xc5b2, 0x00d9},
{0xc5b3, 0x00f9},
{0xc5bd, 0x00ac},
{0xc5be, 0x00bc},
{0xe28095, 0x00bd}
static const uint16 iso8859_10_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_10_from_unicode_tree =
{
iso8859_10_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003f, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xc5, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x013c, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x80, /* b3_2_upper */
0x95, /* b3_3_lower */
0x95, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_10_from_unicode_tree_table[319] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003f ***/
/* c2 */ 0x0043, 0x0081, 0x00c0, 0x00fd,
/*** Two byte table, leaf: c2xx - offset 0x00043 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a7,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ad, 0x0000, 0x0000,
/* b0 */ 0x00b0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b7,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c3xx - offset 0x00081 ***/
/* 80 */ 0x0000, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x0000,
/* 88 */ 0x0000, 0x00c9, 0x0000, 0x00cb, 0x0000, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x00d0, 0x0000, 0x0000, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x0000,
/* 98 */ 0x00d8, 0x0000, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
/* a0 */ 0x0000, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x0000,
/* a8 */ 0x0000, 0x00e9, 0x0000, 0x00eb, 0x0000, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x00f0, 0x0000, 0x0000, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x0000,
/* b8 */ 0x00f8, 0x0000, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe,
/*** Two byte table, leaf: c4xx - offset 0x000c0 ***/
/* 80 */ 0x00c0, 0x00e0, 0x0000, 0x0000, 0x00a1, 0x00b1, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c8, 0x00e8, 0x0000, 0x0000,
/* 90 */ 0x00a9, 0x00b9, 0x00a2, 0x00b2, 0x0000, 0x0000, 0x00cc, 0x00ec,
/* 98 */ 0x00ca, 0x00ea, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x00a3, 0x00b3, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x00a5, 0x00b5, 0x00a4, 0x00b4, 0x0000, 0x0000, 0x00c7, 0x00e7,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a6, 0x00b6,
/* b8 */ 0x00ff, 0x0000, 0x0000, 0x00a8, 0x00b8,
/* 2 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x000fd ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d1, 0x00f1, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x00af, 0x00bf, 0x00d2, 0x00f2, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00aa, 0x00ba, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ab, 0x00bb,
/* a8 */ 0x00d7, 0x00f7, 0x00ae, 0x00be, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x00d9, 0x00f9, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ac, 0x00bc,
/*** Three byte table, byte #1: xx - offset 0x0013c ***/
/* e2 */ 0x013d,
/*** Three byte table, byte #2: e2xx - offset 0x0013d ***/
/* 80 */ 0x013e,
/*** Three byte table, leaf: e280xx - offset 0x0013e ***/
/* 95 */ 0x00bd
};

View File

@ -1,132 +1,113 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_13.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_13[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b9, 0x00b9},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00af},
{0xc389, 0x00c9},
{0xc393, 0x00d3},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00a8},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00bf},
{0xc3a9, 0x00e9},
{0xc3b3, 0x00f3},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00b8},
{0xc3bc, 0x00fc},
{0xc480, 0x00c2},
{0xc481, 0x00e2},
{0xc484, 0x00c0},
{0xc485, 0x00e0},
{0xc486, 0x00c3},
{0xc487, 0x00e3},
{0xc48c, 0x00c8},
{0xc48d, 0x00e8},
{0xc492, 0x00c7},
{0xc493, 0x00e7},
{0xc496, 0x00cb},
{0xc497, 0x00eb},
{0xc498, 0x00c6},
{0xc499, 0x00e6},
{0xc4a2, 0x00cc},
{0xc4a3, 0x00ec},
{0xc4aa, 0x00ce},
{0xc4ab, 0x00ee},
{0xc4ae, 0x00c1},
{0xc4af, 0x00e1},
{0xc4b6, 0x00cd},
{0xc4b7, 0x00ed},
{0xc4bb, 0x00cf},
{0xc4bc, 0x00ef},
{0xc581, 0x00d9},
{0xc582, 0x00f9},
{0xc583, 0x00d1},
{0xc584, 0x00f1},
{0xc585, 0x00d2},
{0xc586, 0x00f2},
{0xc58c, 0x00d4},
{0xc58d, 0x00f4},
{0xc596, 0x00aa},
{0xc597, 0x00ba},
{0xc59a, 0x00da},
{0xc59b, 0x00fa},
{0xc5a0, 0x00d0},
{0xc5a1, 0x00f0},
{0xc5aa, 0x00db},
{0xc5ab, 0x00fb},
{0xc5b2, 0x00d8},
{0xc5b3, 0x00f8},
{0xc5b9, 0x00ca},
{0xc5ba, 0x00ea},
{0xc5bb, 0x00dd},
{0xc5bc, 0x00fd},
{0xc5bd, 0x00de},
{0xc5be, 0x00fe},
{0xe28099, 0x00ff},
{0xe2809c, 0x00b4},
{0xe2809d, 0x00a1},
{0xe2809e, 0x00a5}
static const uint16 iso8859_13_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_13_from_unicode_tree =
{
iso8859_13_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003f, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xc5, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x013e, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x80, /* b3_2_upper */
0x99, /* b3_3_lower */
0x9e, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_13_from_unicode_tree_table[326] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003f ***/
/* c2 */ 0x0043, 0x0082, 0x00c1, 0x00ff,
/*** Two byte table, leaf: c2xx - offset 0x00043 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x00a2, 0x00a3, 0x00a4, 0x0000, 0x00a6, 0x00a7,
/* a8 */ 0x0000, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x0000,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0000, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x0000, 0x00b9, 0x0000, 0x00bb, 0x00bc, 0x00bd, 0x00be,
/*** Two byte table, leaf: c3xx - offset 0x00082 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c4, 0x00c5, 0x00af, 0x0000,
/* 88 */ 0x0000, 0x00c9, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x00d3, 0x0000, 0x00d5, 0x00d6, 0x00d7,
/* 98 */ 0x00a8, 0x0000, 0x0000, 0x0000, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00e4, 0x00e5, 0x00bf, 0x0000,
/* a8 */ 0x0000, 0x00e9, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x00f3, 0x0000, 0x00f5, 0x00f6, 0x00f7,
/* b8 */ 0x00b8, 0x0000, 0x0000, 0x0000, 0x00fc, 0x0000, 0x0000,
/*** Two byte table, leaf: c4xx - offset 0x000c1 ***/
/* 80 */ 0x00c2, 0x00e2, 0x0000, 0x0000, 0x00c0, 0x00e0, 0x00c3, 0x00e3,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c8, 0x00e8, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x00c7, 0x00e7, 0x0000, 0x0000, 0x00cb, 0x00eb,
/* 98 */ 0x00c6, 0x00e6, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x00cc, 0x00ec, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x00ce, 0x00ee, 0x0000, 0x0000, 0x00c1, 0x00e1,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00cd, 0x00ed,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x00cf, 0x00ef, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x000ff ***/
/* 80 */ 0x0000, 0x00d9, 0x00f9, 0x00d1, 0x00f1, 0x00d2, 0x00f2, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00d4, 0x00f4, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00aa, 0x00ba,
/* 98 */ 0x0000, 0x0000, 0x00da, 0x00fa, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00d0, 0x00f0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x00db, 0x00fb, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x00d8, 0x00f8, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x00ca, 0x00ea, 0x00dd, 0x00fd, 0x00de, 0x00fe,
/*** Three byte table, byte #1: xx - offset 0x0013e ***/
/* e2 */ 0x013f,
/*** Three byte table, byte #2: e2xx - offset 0x0013f ***/
/* 80 */ 0x0140,
/*** Three byte table, leaf: e280xx - offset 0x00140 ***/
/* 99 */ 0x00ff, 0x0000, 0x0000, 0x00b4, 0x00a1, 0x00a5
};

View File

@ -1,132 +1,146 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_14.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_14[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a3, 0x00a3},
{0xc2a7, 0x00a7},
{0xc2a9, 0x00a9},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2b6, 0x00b6},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc383, 0x00c3},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38c, 0x00cc},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc391, 0x00d1},
{0xc392, 0x00d2},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc398, 0x00d8},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39d, 0x00dd},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a3, 0x00e3},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ac, 0x00ec},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b1, 0x00f1},
{0xc3b2, 0x00f2},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b8, 0x00f8},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bd, 0x00fd},
{0xc3bf, 0x00ff},
{0xc48a, 0x00a4},
{0xc48b, 0x00a5},
{0xc4a0, 0x00b2},
{0xc4a1, 0x00b3},
{0xc5b4, 0x00d0},
{0xc5b5, 0x00f0},
{0xc5b6, 0x00de},
{0xc5b7, 0x00fe},
{0xc5b8, 0x00af},
{0xe1b882, 0x00a1},
{0xe1b883, 0x00a2},
{0xe1b88a, 0x00a6},
{0xe1b88b, 0x00ab},
{0xe1b89e, 0x00b0},
{0xe1b89f, 0x00b1},
{0xe1b980, 0x00b4},
{0xe1b981, 0x00b5},
{0xe1b996, 0x00b7},
{0xe1b997, 0x00b9},
{0xe1b9a0, 0x00bb},
{0xe1b9a1, 0x00bf},
{0xe1b9aa, 0x00d7},
{0xe1b9ab, 0x00f7},
{0xe1ba80, 0x00a8},
{0xe1ba81, 0x00b8},
{0xe1ba82, 0x00aa},
{0xe1ba83, 0x00ba},
{0xe1ba84, 0x00bd},
{0xe1ba85, 0x00be},
{0xe1bbb2, 0x00ac},
{0xe1bbb3, 0x00bc}
static const uint16 iso8859_14_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_14_from_unicode_tree =
{
iso8859_14_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xc5, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0126, /* offset of table for 3-byte inputs */
0xe1, /* b3_1_lower */
0xe1, /* b3_1_upper */
0xb8, /* b3_2_lower */
0xbb, /* b3_2_upper */
0x80, /* b3_3_lower */
0xb3, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_14_from_unicode_tree_table[507] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0044, 0x0084, 0x00c4, 0x00e6,
/*** Two byte table, leaf: c2xx - offset 0x00044 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x00a3, 0x0000, 0x0000, 0x0000, 0x00a7,
/* a8 */ 0x0000, 0x00a9, 0x0000, 0x0000, 0x0000, 0x00ad, 0x00ae, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b6, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, leaf: c3xx - offset 0x00084 ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x0000, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x0000,
/* 98 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x0000, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x0000, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x0000,
/* b8 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x0000, 0x00ff,
/*** Two byte table, leaf: c4xx - offset 0x000c4 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x00a4, 0x00a5, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00b2, 0x00b3,
/* 30 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x000e6 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00d0, 0x00f0, 0x00de, 0x00fe,
/* b8 */ 0x00af, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00126 ***/
/* e1 */ 0x0127,
/*** Three byte table, byte #2: e1xx - offset 0x00127 ***/
/* b8 */ 0x012b, 0x015f, 0x0193, 0x01c7,
/*** Three byte table, leaf: e1b8xx - offset 0x0012b ***/
/* 80 */ 0x0000, 0x0000, 0x00a1, 0x00a2, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x00a6, 0x00ab, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b0, 0x00b1,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e1b9xx - offset 0x0015f ***/
/* 80 */ 0x00b4, 0x00b5, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b7, 0x00b9,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00bb, 0x00bf, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x00d7, 0x00f7, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e1baxx - offset 0x00193 ***/
/* 80 */ 0x00a8, 0x00b8, 0x00aa, 0x00ba, 0x00bd, 0x00be, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e1bbxx - offset 0x001c7 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x00ac, 0x00bc
};

View File

@ -1,132 +1,101 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_15.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_15[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a1, 0x00a1},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a5, 0x00a5},
{0xc2a7, 0x00a7},
{0xc2a9, 0x00a9},
{0xc2aa, 0x00aa},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b9, 0x00b9},
{0xc2ba, 0x00ba},
{0xc2bb, 0x00bb},
{0xc2bf, 0x00bf},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc383, 0x00c3},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38c, 0x00cc},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc390, 0x00d0},
{0xc391, 0x00d1},
{0xc392, 0x00d2},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00d8},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39d, 0x00dd},
{0xc39e, 0x00de},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a3, 0x00e3},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ac, 0x00ec},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b0, 0x00f0},
{0xc3b1, 0x00f1},
{0xc3b2, 0x00f2},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00f8},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bd, 0x00fd},
{0xc3be, 0x00fe},
{0xc3bf, 0x00ff},
{0xc592, 0x00bc},
{0xc593, 0x00bd},
{0xc5a0, 0x00a6},
{0xc5a1, 0x00a8},
{0xc5b8, 0x00be},
{0xc5bd, 0x00b4},
{0xc5be, 0x00b8},
{0xe282ac, 0x00a4}
static const uint16 iso8859_15_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_15_from_unicode_tree =
{
iso8859_15_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xc5, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0104, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x82, /* b3_2_lower */
0x82, /* b3_2_upper */
0xac, /* b3_3_lower */
0xac, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_15_from_unicode_tree_table[263] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0044, 0x0084, 0x0000, 0x00c4,
/*** Two byte table, leaf: c2xx - offset 0x00044 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x0000, 0x00a5, 0x0000, 0x00a7,
/* a8 */ 0x0000, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0000, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x0000, 0x00b9, 0x00ba, 0x00bb, 0x0000, 0x0000, 0x0000, 0x00bf,
/*** Two byte table, leaf: c3xx - offset 0x00084 ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* 98 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* b8 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff,
/*** Two byte table, leaf: c5xx - offset 0x000c4 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x00bc, 0x00bd, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a6, 0x00a8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x00be, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b4, 0x00b8, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00104 ***/
/* e2 */ 0x0105,
/*** Three byte table, byte #2: e2xx - offset 0x00105 ***/
/* 82 */ 0x0106,
/*** Three byte table, leaf: e282xx - offset 0x00106 ***/
/* ac */ 0x00a4
};

View File

@ -1,132 +1,131 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_16.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_16[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a7, 0x00a7},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ad, 0x00ad},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2bb, 0x00bb},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc384, 0x00c4},
{0xc386, 0x00c6},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38c, 0x00cc},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc392, 0x00d2},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc396, 0x00d6},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a4, 0x00e4},
{0xc3a6, 0x00e6},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ac, 0x00ec},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b2, 0x00f2},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b6, 0x00f6},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bf, 0x00ff},
{0xc482, 0x00c3},
{0xc483, 0x00e3},
{0xc484, 0x00a1},
{0xc485, 0x00a2},
{0xc486, 0x00c5},
{0xc487, 0x00e5},
{0xc48c, 0x00b2},
{0xc48d, 0x00b9},
{0xc490, 0x00d0},
{0xc491, 0x00f0},
{0xc498, 0x00dd},
{0xc499, 0x00fd},
{0xc581, 0x00a3},
{0xc582, 0x00b3},
{0xc583, 0x00d1},
{0xc584, 0x00f1},
{0xc590, 0x00d5},
{0xc591, 0x00f5},
{0xc592, 0x00bc},
{0xc593, 0x00bd},
{0xc59a, 0x00d7},
{0xc59b, 0x00f7},
{0xc5a0, 0x00a6},
{0xc5a1, 0x00a8},
{0xc5b0, 0x00d8},
{0xc5b1, 0x00f8},
{0xc5b8, 0x00be},
{0xc5b9, 0x00ac},
{0xc5ba, 0x00ae},
{0xc5bb, 0x00af},
{0xc5bc, 0x00bf},
{0xc5bd, 0x00b4},
{0xc5be, 0x00b8},
{0xc898, 0x00aa},
{0xc899, 0x00ba},
{0xc89a, 0x00de},
{0xc89b, 0x00fe},
{0xe2809d, 0x00b5},
{0xe2809e, 0x00a5},
{0xe282ac, 0x00a4}
static const uint16 iso8859_16_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_16_from_unicode_tree =
{
iso8859_16_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xc8, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0185, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x82, /* b3_2_upper */
0x9d, /* b3_3_lower */
0xac, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_16_from_unicode_tree_table[425] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0047, 0x0087, 0x00c7, 0x0106, 0x0000, 0x0000, 0x0145,
/*** Two byte table, leaf: c2xx - offset 0x00047 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a7,
/* a8 */ 0x0000, 0x00a9, 0x0000, 0x00ab, 0x0000, 0x00ad, 0x0000, 0x0000,
/* b0 */ 0x00b0, 0x00b1, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b6, 0x00b7,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x00bb, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, leaf: c3xx - offset 0x00087 ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x0000, 0x00c4, 0x0000, 0x00c6, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x0000, 0x0000, 0x00d2, 0x00d3, 0x00d4, 0x0000, 0x00d6, 0x0000,
/* 98 */ 0x0000, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x0000, 0x00e4, 0x0000, 0x00e6, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x0000, 0x0000, 0x00f2, 0x00f3, 0x00f4, 0x0000, 0x00f6, 0x0000,
/* b8 */ 0x0000, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0000, 0x0000, 0x00ff,
/*** Two byte table, leaf: c4xx - offset 0x000c7 ***/
/* 80 */ 0x0000, 0x0000, 0x00c3, 0x00e3, 0x00a1, 0x00a2, 0x00c5, 0x00e5,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00b2, 0x00b9, 0x0000, 0x0000,
/* 90 */ 0x00d0, 0x00f0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x00dd, 0x00fd, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x00106 ***/
/* 80 */ 0x0000, 0x00a3, 0x00b3, 0x00d1, 0x00f1, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00d5, 0x00f5, 0x00bc, 0x00bd, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x00d7, 0x00f7, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a6, 0x00a8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x00d8, 0x00f8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x00be, 0x00ac, 0x00ae, 0x00af, 0x00bf, 0x00b4, 0x00b8,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c8xx - offset 0x00145 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x00aa, 0x00ba, 0x00de, 0x00fe, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00185 ***/
/* e2 */ 0x0186,
/*** Three byte table, byte #2: e2xx - offset 0x00186 ***/
/* 80 */ 0x0189, 0x0000, 0x0199,
/*** Three byte table, leaf: e280xx - offset 0x00189 ***/
/* 9d */ 0x00b5, 0x00a5, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a5 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e282xx - offset 0x00199 ***/
/* 9d */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a5 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a4
};

View File

@ -1,132 +1,114 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_2.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_2[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a4, 0x00a4},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2ad, 0x00ad},
{0xc2b0, 0x00b0},
{0xc2b4, 0x00b4},
{0xc2b8, 0x00b8},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc384, 0x00c4},
{0xc387, 0x00c7},
{0xc389, 0x00c9},
{0xc38b, 0x00cb},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc39a, 0x00da},
{0xc39c, 0x00dc},
{0xc39d, 0x00dd},
{0xc39f, 0x00df},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a4, 0x00e4},
{0xc3a7, 0x00e7},
{0xc3a9, 0x00e9},
{0xc3ab, 0x00eb},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3ba, 0x00fa},
{0xc3bc, 0x00fc},
{0xc3bd, 0x00fd},
{0xc482, 0x00c3},
{0xc483, 0x00e3},
{0xc484, 0x00a1},
{0xc485, 0x00b1},
{0xc486, 0x00c6},
{0xc487, 0x00e6},
{0xc48c, 0x00c8},
{0xc48d, 0x00e8},
{0xc48e, 0x00cf},
{0xc48f, 0x00ef},
{0xc490, 0x00d0},
{0xc491, 0x00f0},
{0xc498, 0x00ca},
{0xc499, 0x00ea},
{0xc49a, 0x00cc},
{0xc49b, 0x00ec},
{0xc4b9, 0x00c5},
{0xc4ba, 0x00e5},
{0xc4bd, 0x00a5},
{0xc4be, 0x00b5},
{0xc581, 0x00a3},
{0xc582, 0x00b3},
{0xc583, 0x00d1},
{0xc584, 0x00f1},
{0xc587, 0x00d2},
{0xc588, 0x00f2},
{0xc590, 0x00d5},
{0xc591, 0x00f5},
{0xc594, 0x00c0},
{0xc595, 0x00e0},
{0xc598, 0x00d8},
{0xc599, 0x00f8},
{0xc59a, 0x00a6},
{0xc59b, 0x00b6},
{0xc59e, 0x00aa},
{0xc59f, 0x00ba},
{0xc5a0, 0x00a9},
{0xc5a1, 0x00b9},
{0xc5a2, 0x00de},
{0xc5a3, 0x00fe},
{0xc5a4, 0x00ab},
{0xc5a5, 0x00bb},
{0xc5ae, 0x00d9},
{0xc5af, 0x00f9},
{0xc5b0, 0x00db},
{0xc5b1, 0x00fb},
{0xc5b9, 0x00ac},
{0xc5ba, 0x00bc},
{0xc5bb, 0x00af},
{0xc5bc, 0x00bf},
{0xc5bd, 0x00ae},
{0xc5be, 0x00be},
{0xcb87, 0x00b7},
{0xcb98, 0x00a2},
{0xcb99, 0x00ff},
{0xcb9b, 0x00b2},
{0xcb9d, 0x00bd}
static const uint16 iso8859_2_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_2_from_unicode_tree =
{
iso8859_2_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003f, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcb, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_2_from_unicode_tree_table[386] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003f ***/
/* c2 */ 0x0049, 0x0087, 0x00c5, 0x0104, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0143,
/*** Two byte table, leaf: c2xx - offset 0x00049 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x0000, 0x00a4, 0x0000, 0x0000, 0x00a7,
/* a8 */ 0x00a8, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ad, 0x0000, 0x0000,
/* b0 */ 0x00b0, 0x0000, 0x0000, 0x0000, 0x00b4, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x00b8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c3xx - offset 0x00087 ***/
/* 80 */ 0x0000, 0x00c1, 0x00c2, 0x0000, 0x00c4, 0x0000, 0x0000, 0x00c7,
/* 88 */ 0x0000, 0x00c9, 0x0000, 0x00cb, 0x0000, 0x00cd, 0x00ce, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x00d3, 0x00d4, 0x0000, 0x00d6, 0x00d7,
/* 98 */ 0x0000, 0x0000, 0x00da, 0x0000, 0x00dc, 0x00dd, 0x0000, 0x00df,
/* a0 */ 0x0000, 0x00e1, 0x00e2, 0x0000, 0x00e4, 0x0000, 0x0000, 0x00e7,
/* a8 */ 0x0000, 0x00e9, 0x0000, 0x00eb, 0x0000, 0x00ed, 0x00ee, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x00f3, 0x00f4, 0x0000, 0x00f6, 0x00f7,
/* b8 */ 0x0000, 0x0000, 0x00fa, 0x0000, 0x00fc, 0x00fd,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c4xx - offset 0x000c5 ***/
/* 80 */ 0x0000, 0x0000, 0x00c3, 0x00e3, 0x00a1, 0x00b1, 0x00c6, 0x00e6,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c8, 0x00e8, 0x00cf, 0x00ef,
/* 90 */ 0x00d0, 0x00f0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x00ca, 0x00ea, 0x00cc, 0x00ec, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x00c5, 0x00e5, 0x0000, 0x0000, 0x00a5, 0x00b5,
/*** Two byte table, leaf: c5xx - offset 0x00104 ***/
/* 80 */ 0x0000, 0x00a3, 0x00b3, 0x00d1, 0x00f1, 0x0000, 0x0000, 0x00d2,
/* 88 */ 0x00f2, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00d5, 0x00f5, 0x0000, 0x0000, 0x00c0, 0x00e0, 0x0000, 0x0000,
/* 98 */ 0x00d8, 0x00f8, 0x00a6, 0x00b6, 0x0000, 0x0000, 0x00aa, 0x00ba,
/* a0 */ 0x00a9, 0x00b9, 0x00de, 0x00fe, 0x00ab, 0x00bb, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d9, 0x00f9,
/* b0 */ 0x00db, 0x00fb, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x00ac, 0x00bc, 0x00af, 0x00bf, 0x00ae, 0x00be,
/*** Two byte table, leaf: cbxx - offset 0x00143 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b7,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x00a2, 0x00ff, 0x0000, 0x00b2, 0x0000, 0x00bd, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,125 +1,113 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_3.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_3[ 121 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2ad, 0x00ad},
{0xc2b0, 0x00b0},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2bd, 0x00bd},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc384, 0x00c4},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38c, 0x00cc},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc391, 0x00d1},
{0xc392, 0x00d2},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a4, 0x00e4},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ac, 0x00ec},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b1, 0x00f1},
{0xc3b2, 0x00f2},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc488, 0x00c6},
{0xc489, 0x00e6},
{0xc48a, 0x00c5},
{0xc48b, 0x00e5},
{0xc49c, 0x00d8},
{0xc49d, 0x00f8},
{0xc49e, 0x00ab},
{0xc49f, 0x00bb},
{0xc4a0, 0x00d5},
{0xc4a1, 0x00f5},
{0xc4a4, 0x00a6},
{0xc4a5, 0x00b6},
{0xc4a6, 0x00a1},
{0xc4a7, 0x00b1},
{0xc4b0, 0x00a9},
{0xc4b1, 0x00b9},
{0xc4b4, 0x00ac},
{0xc4b5, 0x00bc},
{0xc59c, 0x00de},
{0xc59d, 0x00fe},
{0xc59e, 0x00aa},
{0xc59f, 0x00ba},
{0xc5ac, 0x00dd},
{0xc5ad, 0x00fd},
{0xc5bb, 0x00af},
{0xc5bc, 0x00bf},
{0xcb98, 0x00a2},
{0xcb99, 0x00ff}
static const uint16 iso8859_3_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_3_from_unicode_tree =
{
iso8859_3_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003e, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcb, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbd, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_3_from_unicode_tree_table[373] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003e ***/
/* c2 */ 0x0048, 0x0086, 0x00c3, 0x00f9, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0137,
/*** Two byte table, leaf: c2xx - offset 0x00048 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x00a3, 0x00a4, 0x0000, 0x0000, 0x00a7,
/* a8 */ 0x00a8, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ad, 0x0000, 0x0000,
/* b0 */ 0x00b0, 0x0000, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x0000, 0x00b7,
/* b8 */ 0x00b8, 0x0000, 0x0000, 0x0000, 0x0000, 0x00bd,
/*** Two byte table, leaf: c3xx - offset 0x00086 ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x0000, 0x00c4, 0x0000, 0x0000, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x0000, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x0000, 0x00d6, 0x00d7,
/* 98 */ 0x0000, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x0000, 0x00e4, 0x0000, 0x0000, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x0000, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x0000, 0x00f6, 0x00f7,
/* b8 */ 0x0000, 0x00f9, 0x00fa, 0x00fb, 0x00fc,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c4xx - offset 0x000c3 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x00c6, 0x00e6, 0x00c5, 0x00e5, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00d8, 0x00f8, 0x00ab, 0x00bb,
/* a0 */ 0x00d5, 0x00f5, 0x0000, 0x0000, 0x00a6, 0x00b6, 0x00a1, 0x00b1,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x00a9, 0x00b9, 0x0000, 0x0000, 0x00ac, 0x00bc,
/* 8 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x000f9 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00de, 0x00fe, 0x00aa, 0x00ba,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00dd, 0x00fd, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x00af, 0x00bf, 0x0000,
/*** Two byte table, leaf: cbxx - offset 0x00137 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x00a2, 0x00ff, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,132 +1,114 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_4.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_4[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a4, 0x00a4},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2ad, 0x00ad},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b4, 0x00b4},
{0xc2b8, 0x00b8},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc383, 0x00c3},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc389, 0x00c9},
{0xc38b, 0x00cb},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc394, 0x00d4},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00d8},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a3, 0x00e3},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a9, 0x00e9},
{0xc3ab, 0x00eb},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3b4, 0x00f4},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00f8},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc480, 0x00c0},
{0xc481, 0x00e0},
{0xc484, 0x00a1},
{0xc485, 0x00b1},
{0xc48c, 0x00c8},
{0xc48d, 0x00e8},
{0xc490, 0x00d0},
{0xc491, 0x00f0},
{0xc492, 0x00aa},
{0xc493, 0x00ba},
{0xc496, 0x00cc},
{0xc497, 0x00ec},
{0xc498, 0x00ca},
{0xc499, 0x00ea},
{0xc4a2, 0x00ab},
{0xc4a3, 0x00bb},
{0xc4a8, 0x00a5},
{0xc4a9, 0x00b5},
{0xc4aa, 0x00cf},
{0xc4ab, 0x00ef},
{0xc4ae, 0x00c7},
{0xc4af, 0x00e7},
{0xc4b6, 0x00d3},
{0xc4b7, 0x00f3},
{0xc4b8, 0x00a2},
{0xc4bb, 0x00a6},
{0xc4bc, 0x00b6},
{0xc585, 0x00d1},
{0xc586, 0x00f1},
{0xc58a, 0x00bd},
{0xc58b, 0x00bf},
{0xc58c, 0x00d2},
{0xc58d, 0x00f2},
{0xc596, 0x00a3},
{0xc597, 0x00b3},
{0xc5a0, 0x00a9},
{0xc5a1, 0x00b9},
{0xc5a6, 0x00ac},
{0xc5a7, 0x00bc},
{0xc5a8, 0x00dd},
{0xc5a9, 0x00fd},
{0xc5aa, 0x00de},
{0xc5ab, 0x00fe},
{0xc5b2, 0x00d9},
{0xc5b3, 0x00f9},
{0xc5bd, 0x00ae},
{0xc5be, 0x00be},
{0xcb87, 0x00b7},
{0xcb99, 0x00ff},
{0xcb9b, 0x00b2}
static const uint16 iso8859_4_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_4_from_unicode_tree =
{
iso8859_4_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003f, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcb, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_4_from_unicode_tree_table[385] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003f ***/
/* c2 */ 0x0049, 0x0087, 0x00c6, 0x0103, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0142,
/*** Two byte table, leaf: c2xx - offset 0x00049 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x0000, 0x00a4, 0x0000, 0x0000, 0x00a7,
/* a8 */ 0x00a8, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ad, 0x0000, 0x00af,
/* b0 */ 0x00b0, 0x0000, 0x0000, 0x0000, 0x00b4, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x00b8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c3xx - offset 0x00087 ***/
/* 80 */ 0x0000, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x0000,
/* 88 */ 0x0000, 0x00c9, 0x0000, 0x00cb, 0x0000, 0x00cd, 0x00ce, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* 98 */ 0x00d8, 0x0000, 0x00da, 0x00db, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x0000, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x0000,
/* a8 */ 0x0000, 0x00e9, 0x0000, 0x00eb, 0x0000, 0x00ed, 0x00ee, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* b8 */ 0x00f8, 0x0000, 0x00fa, 0x00fb, 0x00fc, 0x0000, 0x0000,
/*** Two byte table, leaf: c4xx - offset 0x000c6 ***/
/* 80 */ 0x00c0, 0x00e0, 0x0000, 0x0000, 0x00a1, 0x00b1, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c8, 0x00e8, 0x0000, 0x0000,
/* 90 */ 0x00d0, 0x00f0, 0x00aa, 0x00ba, 0x0000, 0x0000, 0x00cc, 0x00ec,
/* 98 */ 0x00ca, 0x00ea, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x00ab, 0x00bb, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x00a5, 0x00b5, 0x00cf, 0x00ef, 0x0000, 0x0000, 0x00c7, 0x00e7,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d3, 0x00f3,
/* b8 */ 0x00a2, 0x0000, 0x0000, 0x00a6, 0x00b6,
/* 2 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x00103 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d1, 0x00f1, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x00bd, 0x00bf, 0x00d2, 0x00f2, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a3, 0x00b3,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a9, 0x00b9, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ac, 0x00bc,
/* a8 */ 0x00dd, 0x00fd, 0x00de, 0x00fe, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x00d9, 0x00f9, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ae, 0x00be,
/*** Two byte table, leaf: cbxx - offset 0x00142 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00b7,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x00ff, 0x0000, 0x00b2, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,132 +1,103 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_5.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_5[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a7, 0x00fd},
{0xc2ad, 0x00ad},
{0xd081, 0x00a1},
{0xd082, 0x00a2},
{0xd083, 0x00a3},
{0xd084, 0x00a4},
{0xd085, 0x00a5},
{0xd086, 0x00a6},
{0xd087, 0x00a7},
{0xd088, 0x00a8},
{0xd089, 0x00a9},
{0xd08a, 0x00aa},
{0xd08b, 0x00ab},
{0xd08c, 0x00ac},
{0xd08e, 0x00ae},
{0xd08f, 0x00af},
{0xd090, 0x00b0},
{0xd091, 0x00b1},
{0xd092, 0x00b2},
{0xd093, 0x00b3},
{0xd094, 0x00b4},
{0xd095, 0x00b5},
{0xd096, 0x00b6},
{0xd097, 0x00b7},
{0xd098, 0x00b8},
{0xd099, 0x00b9},
{0xd09a, 0x00ba},
{0xd09b, 0x00bb},
{0xd09c, 0x00bc},
{0xd09d, 0x00bd},
{0xd09e, 0x00be},
{0xd09f, 0x00bf},
{0xd0a0, 0x00c0},
{0xd0a1, 0x00c1},
{0xd0a2, 0x00c2},
{0xd0a3, 0x00c3},
{0xd0a4, 0x00c4},
{0xd0a5, 0x00c5},
{0xd0a6, 0x00c6},
{0xd0a7, 0x00c7},
{0xd0a8, 0x00c8},
{0xd0a9, 0x00c9},
{0xd0aa, 0x00ca},
{0xd0ab, 0x00cb},
{0xd0ac, 0x00cc},
{0xd0ad, 0x00cd},
{0xd0ae, 0x00ce},
{0xd0af, 0x00cf},
{0xd0b0, 0x00d0},
{0xd0b1, 0x00d1},
{0xd0b2, 0x00d2},
{0xd0b3, 0x00d3},
{0xd0b4, 0x00d4},
{0xd0b5, 0x00d5},
{0xd0b6, 0x00d6},
{0xd0b7, 0x00d7},
{0xd0b8, 0x00d8},
{0xd0b9, 0x00d9},
{0xd0ba, 0x00da},
{0xd0bb, 0x00db},
{0xd0bc, 0x00dc},
{0xd0bd, 0x00dd},
{0xd0be, 0x00de},
{0xd0bf, 0x00df},
{0xd180, 0x00e0},
{0xd181, 0x00e1},
{0xd182, 0x00e2},
{0xd183, 0x00e3},
{0xd184, 0x00e4},
{0xd185, 0x00e5},
{0xd186, 0x00e6},
{0xd187, 0x00e7},
{0xd188, 0x00e8},
{0xd189, 0x00e9},
{0xd18a, 0x00ea},
{0xd18b, 0x00eb},
{0xd18c, 0x00ec},
{0xd18d, 0x00ed},
{0xd18e, 0x00ee},
{0xd18f, 0x00ef},
{0xd191, 0x00f1},
{0xd192, 0x00f2},
{0xd193, 0x00f3},
{0xd194, 0x00f4},
{0xd195, 0x00f5},
{0xd196, 0x00f6},
{0xd197, 0x00f7},
{0xd198, 0x00f8},
{0xd199, 0x00f9},
{0xd19a, 0x00fa},
{0xd19b, 0x00fb},
{0xd19c, 0x00fc},
{0xd19e, 0x00fe},
{0xd19f, 0x00ff},
{0xe28496, 0x00f0}
static const uint16 iso8859_5_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_5_from_unicode_tree =
{
iso8859_5_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd1, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x010f, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x84, /* b3_2_lower */
0x84, /* b3_2_upper */
0x96, /* b3_3_lower */
0x96, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_5_from_unicode_tree_table[274] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0050, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008f, 0x00cf,
/*** Two byte table, leaf: c2xx - offset 0x00050 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00fd,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ad, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: d0xx - offset 0x0008f ***/
/* 80 */ 0x0000, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* 88 */ 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x0000, 0x00ae, 0x00af,
/* 90 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* 98 */ 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
/* a0 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* a8 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* b0 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* b8 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
/*** Two byte table, leaf: d1xx - offset 0x000cf ***/
/* 80 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* 88 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* 90 */ 0x0000, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* 98 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0000, 0x00fe, 0x00ff,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x0010f ***/
/* e2 */ 0x0110,
/*** Three byte table, byte #2: e2xx - offset 0x00110 ***/
/* 84 */ 0x0111,
/*** Three byte table, leaf: e284xx - offset 0x00111 ***/
/* 96 */ 0x00f0
};

View File

@ -1,87 +1,90 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_6.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_6[ 83 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a4, 0x00a4},
{0xc2ad, 0x00ad},
{0xd88c, 0x00ac},
{0xd89b, 0x00bb},
{0xd89f, 0x00bf},
{0xd8a1, 0x00c1},
{0xd8a2, 0x00c2},
{0xd8a3, 0x00c3},
{0xd8a4, 0x00c4},
{0xd8a5, 0x00c5},
{0xd8a6, 0x00c6},
{0xd8a7, 0x00c7},
{0xd8a8, 0x00c8},
{0xd8a9, 0x00c9},
{0xd8aa, 0x00ca},
{0xd8ab, 0x00cb},
{0xd8ac, 0x00cc},
{0xd8ad, 0x00cd},
{0xd8ae, 0x00ce},
{0xd8af, 0x00cf},
{0xd8b0, 0x00d0},
{0xd8b1, 0x00d1},
{0xd8b2, 0x00d2},
{0xd8b3, 0x00d3},
{0xd8b4, 0x00d4},
{0xd8b5, 0x00d5},
{0xd8b6, 0x00d6},
{0xd8b7, 0x00d7},
{0xd8b8, 0x00d8},
{0xd8b9, 0x00d9},
{0xd8ba, 0x00da},
{0xd980, 0x00e0},
{0xd981, 0x00e1},
{0xd982, 0x00e2},
{0xd983, 0x00e3},
{0xd984, 0x00e4},
{0xd985, 0x00e5},
{0xd986, 0x00e6},
{0xd987, 0x00e7},
{0xd988, 0x00e8},
{0xd989, 0x00e9},
{0xd98a, 0x00ea},
{0xd98b, 0x00eb},
{0xd98c, 0x00ec},
{0xd98d, 0x00ed},
{0xd98e, 0x00ee},
{0xd98f, 0x00ef},
{0xd990, 0x00f0},
{0xd991, 0x00f1},
{0xd992, 0x00f2}
static const uint16 iso8859_6_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_6_from_unicode_tree =
{
iso8859_6_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003b, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd9, /* b2_1_upper */
0x80, /* b2_2_lower */
0xba, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_6_from_unicode_tree_table[248] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003b ***/
/* c2 */ 0x0053, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* d2 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0082, 0x00bd,
/*** Two byte table, leaf: c2xx - offset 0x00053 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x0000, 0x00a4, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ad, 0x0000,
/* 12 trailing zero values shared with next segment */
/*** Two byte table, leaf: d8xx - offset 0x00082 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00ac, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x00bb, 0x0000, 0x0000, 0x0000, 0x00bf,
/* a0 */ 0x0000, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* a8 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* b0 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* b8 */ 0x00d8, 0x00d9, 0x00da,
/*** Two byte table, leaf: d9xx - offset 0x000bd ***/
/* 80 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* 88 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* 90 */ 0x00f0, 0x00f1, 0x00f2, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000
};

View File

@ -1,129 +1,125 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_7.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_7[ 125 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a3, 0x00a3},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b7, 0x00b7},
{0xc2bb, 0x00bb},
{0xc2bd, 0x00bd},
{0xcdba, 0x00aa},
{0xce84, 0x00b4},
{0xce85, 0x00b5},
{0xce86, 0x00b6},
{0xce88, 0x00b8},
{0xce89, 0x00b9},
{0xce8a, 0x00ba},
{0xce8c, 0x00bc},
{0xce8e, 0x00be},
{0xce8f, 0x00bf},
{0xce90, 0x00c0},
{0xce91, 0x00c1},
{0xce92, 0x00c2},
{0xce93, 0x00c3},
{0xce94, 0x00c4},
{0xce95, 0x00c5},
{0xce96, 0x00c6},
{0xce97, 0x00c7},
{0xce98, 0x00c8},
{0xce99, 0x00c9},
{0xce9a, 0x00ca},
{0xce9b, 0x00cb},
{0xce9c, 0x00cc},
{0xce9d, 0x00cd},
{0xce9e, 0x00ce},
{0xce9f, 0x00cf},
{0xcea0, 0x00d0},
{0xcea1, 0x00d1},
{0xcea3, 0x00d3},
{0xcea4, 0x00d4},
{0xcea5, 0x00d5},
{0xcea6, 0x00d6},
{0xcea7, 0x00d7},
{0xcea8, 0x00d8},
{0xcea9, 0x00d9},
{0xceaa, 0x00da},
{0xceab, 0x00db},
{0xceac, 0x00dc},
{0xcead, 0x00dd},
{0xceae, 0x00de},
{0xceaf, 0x00df},
{0xceb0, 0x00e0},
{0xceb1, 0x00e1},
{0xceb2, 0x00e2},
{0xceb3, 0x00e3},
{0xceb4, 0x00e4},
{0xceb5, 0x00e5},
{0xceb6, 0x00e6},
{0xceb7, 0x00e7},
{0xceb8, 0x00e8},
{0xceb9, 0x00e9},
{0xceba, 0x00ea},
{0xcebb, 0x00eb},
{0xcebc, 0x00ec},
{0xcebd, 0x00ed},
{0xcebe, 0x00ee},
{0xcebf, 0x00ef},
{0xcf80, 0x00f0},
{0xcf81, 0x00f1},
{0xcf82, 0x00f2},
{0xcf83, 0x00f3},
{0xcf84, 0x00f4},
{0xcf85, 0x00f5},
{0xcf86, 0x00f6},
{0xcf87, 0x00f7},
{0xcf88, 0x00f8},
{0xcf89, 0x00f9},
{0xcf8a, 0x00fa},
{0xcf8b, 0x00fb},
{0xcf8c, 0x00fc},
{0xcf8d, 0x00fd},
{0xcf8e, 0x00fe},
{0xe28095, 0x00af},
{0xe28098, 0x00a1},
{0xe28099, 0x00a2},
{0xe282ac, 0x00a4},
{0xe282af, 0x00a5}
static const uint16 iso8859_7_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_7_from_unicode_tree =
{
iso8859_7_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcf, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0148, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x82, /* b3_2_upper */
0x95, /* b3_3_lower */
0xaf, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_7_from_unicode_tree_table[386] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x004e, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x008c, 0x00c8, 0x0108,
/*** Two byte table, leaf: c2xx - offset 0x0004e ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x00a3, 0x0000, 0x0000, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x0000, 0x0000,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0000, 0x0000, 0x0000, 0x00b7,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x00bb, 0x0000, 0x00bd,
/* 2 trailing zero values shared with next segment */
/*** Two byte table, leaf: cdxx - offset 0x0008c ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x00aa, 0x0000,
/* 4 trailing zero values shared with next segment */
/*** Two byte table, leaf: cexx - offset 0x000c8 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00b4, 0x00b5, 0x00b6, 0x0000,
/* 88 */ 0x00b8, 0x00b9, 0x00ba, 0x0000, 0x00bc, 0x0000, 0x00be, 0x00bf,
/* 90 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 98 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* a0 */ 0x00d0, 0x00d1, 0x0000, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* a8 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
/* b0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* b8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/*** Two byte table, leaf: cfxx - offset 0x00108 ***/
/* 80 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* 88 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00148 ***/
/* e2 */ 0x0149,
/*** Three byte table, byte #2: e2xx - offset 0x00149 ***/
/* 80 */ 0x014c, 0x0000, 0x0167,
/*** Three byte table, leaf: e280xx - offset 0x0014c ***/
/* 95 */ 0x00af, 0x0000, 0x0000, 0x00a1, 0x00a2, 0x0000, 0x0000, 0x0000,
/* 9d */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a5 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ad */ 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e282xx - offset 0x00167 ***/
/* 95 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9d */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a5 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a4,
/* ad */ 0x0000, 0x0000, 0x00a5
};

View File

@ -1,96 +1,104 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_8[ 92 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2b9, 0x00b9},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc397, 0x00aa},
{0xc3b7, 0x00ba},
{0xd790, 0x00e0},
{0xd791, 0x00e1},
{0xd792, 0x00e2},
{0xd793, 0x00e3},
{0xd794, 0x00e4},
{0xd795, 0x00e5},
{0xd796, 0x00e6},
{0xd797, 0x00e7},
{0xd798, 0x00e8},
{0xd799, 0x00e9},
{0xd79a, 0x00ea},
{0xd79b, 0x00eb},
{0xd79c, 0x00ec},
{0xd79d, 0x00ed},
{0xd79e, 0x00ee},
{0xd79f, 0x00ef},
{0xd7a0, 0x00f0},
{0xd7a1, 0x00f1},
{0xd7a2, 0x00f2},
{0xd7a3, 0x00f3},
{0xd7a4, 0x00f4},
{0xd7a5, 0x00f5},
{0xd7a6, 0x00f6},
{0xd7a7, 0x00f7},
{0xd7a8, 0x00f8},
{0xd7a9, 0x00f9},
{0xd7aa, 0x00fa},
{0xe2808e, 0x00fd},
{0xe2808f, 0x00fe},
{0xe28097, 0x00df}
static const uint16 iso8859_8_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_8_from_unicode_tree =
{
iso8859_8_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003f, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd7, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x010b, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x80, /* b3_2_upper */
0x8e, /* b3_3_lower */
0x97, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_8_from_unicode_tree_table[279] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003f ***/
/* c2 */ 0x0055, 0x0094, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* d2 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00cc,
/*** Two byte table, leaf: c2xx - offset 0x00055 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x0000, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x00b8, 0x00b9, 0x0000, 0x00bb, 0x00bc, 0x00bd, 0x00be,
/*** Two byte table, leaf: c3xx - offset 0x00094 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00aa,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ba,
/* 7 trailing zero values shared with next segment */
/*** Two byte table, leaf: d7xx - offset 0x000cc ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* 98 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* a0 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* a8 */ 0x00f8, 0x00f9, 0x00fa, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x0010b ***/
/* e2 */ 0x010c,
/*** Three byte table, byte #2: e2xx - offset 0x0010c ***/
/* 80 */ 0x010d,
/*** Three byte table, leaf: e280xx - offset 0x0010d ***/
/* 8e */ 0x00fd, 0x00fe, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 96 */ 0x0000, 0x00df
};

View File

@ -1,132 +1,100 @@
/* src/backend/utils/mb/Unicode/utf8_to_iso8859_9.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapISO8859_9[ 128 ] = {
{0xc280, 0x0080},
{0xc281, 0x0081},
{0xc282, 0x0082},
{0xc283, 0x0083},
{0xc284, 0x0084},
{0xc285, 0x0085},
{0xc286, 0x0086},
{0xc287, 0x0087},
{0xc288, 0x0088},
{0xc289, 0x0089},
{0xc28a, 0x008a},
{0xc28b, 0x008b},
{0xc28c, 0x008c},
{0xc28d, 0x008d},
{0xc28e, 0x008e},
{0xc28f, 0x008f},
{0xc290, 0x0090},
{0xc291, 0x0091},
{0xc292, 0x0092},
{0xc293, 0x0093},
{0xc294, 0x0094},
{0xc295, 0x0095},
{0xc296, 0x0096},
{0xc297, 0x0097},
{0xc298, 0x0098},
{0xc299, 0x0099},
{0xc29a, 0x009a},
{0xc29b, 0x009b},
{0xc29c, 0x009c},
{0xc29d, 0x009d},
{0xc29e, 0x009e},
{0xc29f, 0x009f},
{0xc2a0, 0x00a0},
{0xc2a1, 0x00a1},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2aa, 0x00aa},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2b9, 0x00b9},
{0xc2ba, 0x00ba},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc2bf, 0x00bf},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc383, 0x00c3},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38c, 0x00cc},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc391, 0x00d1},
{0xc392, 0x00d2},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00d8},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a3, 0x00e3},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ac, 0x00ec},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b1, 0x00f1},
{0xc3b2, 0x00f2},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00f8},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bf, 0x00ff},
{0xc49e, 0x00d0},
{0xc49f, 0x00f0},
{0xc4b0, 0x00dd},
{0xc4b1, 0x00fd},
{0xc59e, 0x00de},
{0xc59f, 0x00fe}
static const uint16 iso8859_9_from_unicode_tree_table[];
static const pg_mb_radix_tree iso8859_9_from_unicode_tree =
{
iso8859_9_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xc5, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 iso8859_9_from_unicode_tree_table[324] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0044, 0x0084, 0x00c4, 0x0104,
/*** Two byte table, leaf: c2xx - offset 0x00044 ***/
/* 80 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 88 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* 90 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* 98 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* a0 */ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
/*** Two byte table, leaf: c3xx - offset 0x00084 ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x0000, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* 98 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x0000, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* b8 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0000, 0x0000, 0x00ff,
/*** Two byte table, leaf: c4xx - offset 0x000c4 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d0, 0x00f0,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x00dd, 0x00fd, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, leaf: c5xx - offset 0x00104 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00de, 0x00fe,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

File diff suppressed because it is too large Load Diff

View File

@ -1,132 +1,175 @@
/* src/backend/utils/mb/Unicode/utf8_to_koi8r.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapKOI8R[ 128 ] = {
{0xc2a0, 0x009a},
{0xc2a9, 0x00bf},
{0xc2b0, 0x009c},
{0xc2b2, 0x009d},
{0xc2b7, 0x009e},
{0xc3b7, 0x009f},
{0xd081, 0x00b3},
{0xd090, 0x00e1},
{0xd091, 0x00e2},
{0xd092, 0x00f7},
{0xd093, 0x00e7},
{0xd094, 0x00e4},
{0xd095, 0x00e5},
{0xd096, 0x00f6},
{0xd097, 0x00fa},
{0xd098, 0x00e9},
{0xd099, 0x00ea},
{0xd09a, 0x00eb},
{0xd09b, 0x00ec},
{0xd09c, 0x00ed},
{0xd09d, 0x00ee},
{0xd09e, 0x00ef},
{0xd09f, 0x00f0},
{0xd0a0, 0x00f2},
{0xd0a1, 0x00f3},
{0xd0a2, 0x00f4},
{0xd0a3, 0x00f5},
{0xd0a4, 0x00e6},
{0xd0a5, 0x00e8},
{0xd0a6, 0x00e3},
{0xd0a7, 0x00fe},
{0xd0a8, 0x00fb},
{0xd0a9, 0x00fd},
{0xd0aa, 0x00ff},
{0xd0ab, 0x00f9},
{0xd0ac, 0x00f8},
{0xd0ad, 0x00fc},
{0xd0ae, 0x00e0},
{0xd0af, 0x00f1},
{0xd0b0, 0x00c1},
{0xd0b1, 0x00c2},
{0xd0b2, 0x00d7},
{0xd0b3, 0x00c7},
{0xd0b4, 0x00c4},
{0xd0b5, 0x00c5},
{0xd0b6, 0x00d6},
{0xd0b7, 0x00da},
{0xd0b8, 0x00c9},
{0xd0b9, 0x00ca},
{0xd0ba, 0x00cb},
{0xd0bb, 0x00cc},
{0xd0bc, 0x00cd},
{0xd0bd, 0x00ce},
{0xd0be, 0x00cf},
{0xd0bf, 0x00d0},
{0xd180, 0x00d2},
{0xd181, 0x00d3},
{0xd182, 0x00d4},
{0xd183, 0x00d5},
{0xd184, 0x00c6},
{0xd185, 0x00c8},
{0xd186, 0x00c3},
{0xd187, 0x00de},
{0xd188, 0x00db},
{0xd189, 0x00dd},
{0xd18a, 0x00df},
{0xd18b, 0x00d9},
{0xd18c, 0x00d8},
{0xd18d, 0x00dc},
{0xd18e, 0x00c0},
{0xd18f, 0x00d1},
{0xd191, 0x00a3},
{0xe28899, 0x0095},
{0xe2889a, 0x0096},
{0xe28988, 0x0097},
{0xe289a4, 0x0098},
{0xe289a5, 0x0099},
{0xe28ca0, 0x0093},
{0xe28ca1, 0x009b},
{0xe29480, 0x0080},
{0xe29482, 0x0081},
{0xe2948c, 0x0082},
{0xe29490, 0x0083},
{0xe29494, 0x0084},
{0xe29498, 0x0085},
{0xe2949c, 0x0086},
{0xe294a4, 0x0087},
{0xe294ac, 0x0088},
{0xe294b4, 0x0089},
{0xe294bc, 0x008a},
{0xe29590, 0x00a0},
{0xe29591, 0x00a1},
{0xe29592, 0x00a2},
{0xe29593, 0x00a4},
{0xe29594, 0x00a5},
{0xe29595, 0x00a6},
{0xe29596, 0x00a7},
{0xe29597, 0x00a8},
{0xe29598, 0x00a9},
{0xe29599, 0x00aa},
{0xe2959a, 0x00ab},
{0xe2959b, 0x00ac},
{0xe2959c, 0x00ad},
{0xe2959d, 0x00ae},
{0xe2959e, 0x00af},
{0xe2959f, 0x00b0},
{0xe295a0, 0x00b1},
{0xe295a1, 0x00b2},
{0xe295a2, 0x00b4},
{0xe295a3, 0x00b5},
{0xe295a4, 0x00b6},
{0xe295a5, 0x00b7},
{0xe295a6, 0x00b8},
{0xe295a7, 0x00b9},
{0xe295a8, 0x00ba},
{0xe295a9, 0x00bb},
{0xe295aa, 0x00bc},
{0xe295ab, 0x00bd},
{0xe295ac, 0x00be},
{0xe29680, 0x008b},
{0xe29684, 0x008c},
{0xe29688, 0x008d},
{0xe2968c, 0x008e},
{0xe29690, 0x008f},
{0xe29691, 0x0090},
{0xe29692, 0x0091},
{0xe29693, 0x0092},
{0xe296a0, 0x0094}
static const uint16 koi8r_from_unicode_tree_table[];
static const pg_mb_radix_tree koi8r_from_unicode_tree =
{
koi8r_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd1, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0147, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x88, /* b3_2_lower */
0x96, /* b3_2_upper */
0x80, /* b3_3_lower */
0xbc, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 koi8r_from_unicode_tree_table[678] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0050, 0x0088, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00c7, 0x0107,
/*** Two byte table, leaf: c2xx - offset 0x00050 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x009a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x00bf, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x009c, 0x0000, 0x009d, 0x0000, 0x0000, 0x0000, 0x0000, 0x009e,
/* 8 trailing zero values shared with next segment */
/*** Two byte table, leaf: c3xx - offset 0x00088 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x009f,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: d0xx - offset 0x000c7 ***/
/* 80 */ 0x0000, 0x00b3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00e1, 0x00e2, 0x00f7, 0x00e7, 0x00e4, 0x00e5, 0x00f6, 0x00fa,
/* 98 */ 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0x00f0,
/* a0 */ 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00e6, 0x00e8, 0x00e3, 0x00fe,
/* a8 */ 0x00fb, 0x00fd, 0x00ff, 0x00f9, 0x00f8, 0x00fc, 0x00e0, 0x00f1,
/* b0 */ 0x00c1, 0x00c2, 0x00d7, 0x00c7, 0x00c4, 0x00c5, 0x00d6, 0x00da,
/* b8 */ 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, 0x00d0,
/*** Two byte table, leaf: d1xx - offset 0x00107 ***/
/* 80 */ 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00c6, 0x00c8, 0x00c3, 0x00de,
/* 88 */ 0x00db, 0x00dd, 0x00df, 0x00d9, 0x00d8, 0x00dc, 0x00c0, 0x00d1,
/* 90 */ 0x0000, 0x00a3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00147 ***/
/* e2 */ 0x0148,
/*** Three byte table, byte #2: e2xx - offset 0x00148 ***/
/* 88 */ 0x0157, 0x018c, 0x0000, 0x0000, 0x01b2, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x01ef, 0x022c, 0x0269,
/*** Three byte table, leaf: e288xx - offset 0x00157 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0095, 0x0096, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 8 trailing zero values shared with next segment */
/*** Three byte table, leaf: e289xx - offset 0x0018c ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0097, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0098, 0x0099,
/* 23 trailing zero values shared with next segment */
/*** Three byte table, leaf: e28cxx - offset 0x001b2 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0093, 0x009b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e294xx - offset 0x001ef ***/
/* 80 */ 0x0080, 0x0000, 0x0081, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0082, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0083, 0x0000, 0x0000, 0x0000, 0x0084, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0085, 0x0000, 0x0000, 0x0000, 0x0086, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0087, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x008a,
/*** Three byte table, leaf: e295xx - offset 0x0022c ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00a0, 0x00a1, 0x00a2, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8,
/* 98 */ 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0,
/* a0 */ 0x00b1, 0x00b2, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x00b9,
/* a8 */ 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e296xx - offset 0x00269 ***/
/* 80 */ 0x008b, 0x0000, 0x0000, 0x0000, 0x008c, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x008d, 0x0000, 0x0000, 0x0000, 0x008e, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x008f, 0x0090, 0x0091, 0x0092, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0094, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,132 +1,186 @@
/* src/backend/utils/mb/Unicode/utf8_to_koi8u.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapKOI8U[ 128 ] = {
{0xc2a0, 0x009a},
{0xc2a9, 0x00bf},
{0xc2b0, 0x009c},
{0xc2b2, 0x009d},
{0xc2b7, 0x009e},
{0xc3b7, 0x009f},
{0xd081, 0x00b3},
{0xd084, 0x00b4},
{0xd086, 0x00b6},
{0xd087, 0x00b7},
{0xd090, 0x00e1},
{0xd091, 0x00e2},
{0xd092, 0x00f7},
{0xd093, 0x00e7},
{0xd094, 0x00e4},
{0xd095, 0x00e5},
{0xd096, 0x00f6},
{0xd097, 0x00fa},
{0xd098, 0x00e9},
{0xd099, 0x00ea},
{0xd09a, 0x00eb},
{0xd09b, 0x00ec},
{0xd09c, 0x00ed},
{0xd09d, 0x00ee},
{0xd09e, 0x00ef},
{0xd09f, 0x00f0},
{0xd0a0, 0x00f2},
{0xd0a1, 0x00f3},
{0xd0a2, 0x00f4},
{0xd0a3, 0x00f5},
{0xd0a4, 0x00e6},
{0xd0a5, 0x00e8},
{0xd0a6, 0x00e3},
{0xd0a7, 0x00fe},
{0xd0a8, 0x00fb},
{0xd0a9, 0x00fd},
{0xd0aa, 0x00ff},
{0xd0ab, 0x00f9},
{0xd0ac, 0x00f8},
{0xd0ad, 0x00fc},
{0xd0ae, 0x00e0},
{0xd0af, 0x00f1},
{0xd0b0, 0x00c1},
{0xd0b1, 0x00c2},
{0xd0b2, 0x00d7},
{0xd0b3, 0x00c7},
{0xd0b4, 0x00c4},
{0xd0b5, 0x00c5},
{0xd0b6, 0x00d6},
{0xd0b7, 0x00da},
{0xd0b8, 0x00c9},
{0xd0b9, 0x00ca},
{0xd0ba, 0x00cb},
{0xd0bb, 0x00cc},
{0xd0bc, 0x00cd},
{0xd0bd, 0x00ce},
{0xd0be, 0x00cf},
{0xd0bf, 0x00d0},
{0xd180, 0x00d2},
{0xd181, 0x00d3},
{0xd182, 0x00d4},
{0xd183, 0x00d5},
{0xd184, 0x00c6},
{0xd185, 0x00c8},
{0xd186, 0x00c3},
{0xd187, 0x00de},
{0xd188, 0x00db},
{0xd189, 0x00dd},
{0xd18a, 0x00df},
{0xd18b, 0x00d9},
{0xd18c, 0x00d8},
{0xd18d, 0x00dc},
{0xd18e, 0x00c0},
{0xd18f, 0x00d1},
{0xd191, 0x00a3},
{0xd194, 0x00a4},
{0xd196, 0x00a6},
{0xd197, 0x00a7},
{0xd290, 0x00bd},
{0xd291, 0x00ad},
{0xe28899, 0x0095},
{0xe2889a, 0x0096},
{0xe28988, 0x0097},
{0xe289a4, 0x0098},
{0xe289a5, 0x0099},
{0xe28ca0, 0x0093},
{0xe28ca1, 0x009b},
{0xe29480, 0x0080},
{0xe29482, 0x0081},
{0xe2948c, 0x0082},
{0xe29490, 0x0083},
{0xe29494, 0x0084},
{0xe29498, 0x0085},
{0xe2949c, 0x0086},
{0xe294a4, 0x0087},
{0xe294ac, 0x0088},
{0xe294b4, 0x0089},
{0xe294bc, 0x008a},
{0xe29590, 0x00a0},
{0xe29591, 0x00a1},
{0xe29592, 0x00a2},
{0xe29594, 0x00a5},
{0xe29597, 0x00a8},
{0xe29598, 0x00a9},
{0xe29599, 0x00aa},
{0xe2959a, 0x00ab},
{0xe2959b, 0x00ac},
{0xe2959d, 0x00ae},
{0xe2959e, 0x00af},
{0xe2959f, 0x00b0},
{0xe295a0, 0x00b1},
{0xe295a1, 0x00b2},
{0xe295a3, 0x00b5},
{0xe295a6, 0x00b8},
{0xe295a7, 0x00b9},
{0xe295a8, 0x00ba},
{0xe295a9, 0x00bb},
{0xe295aa, 0x00bc},
{0xe295ac, 0x00be},
{0xe29680, 0x008b},
{0xe29684, 0x008c},
{0xe29688, 0x008d},
{0xe2968c, 0x008e},
{0xe29690, 0x008f},
{0xe29691, 0x0090},
{0xe29692, 0x0091},
{0xe29693, 0x0092},
{0xe296a0, 0x0094}
static const uint16 koi8u_from_unicode_tree_table[];
static const pg_mb_radix_tree koi8u_from_unicode_tree =
{
koi8u_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd2, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0178, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x88, /* b3_2_lower */
0x96, /* b3_2_upper */
0x80, /* b3_3_lower */
0xbc, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 koi8u_from_unicode_tree_table[727] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0051, 0x0089, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00c8, 0x0108,
/* d2 */ 0x0138,
/*** Two byte table, leaf: c2xx - offset 0x00051 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x009a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x00bf, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x009c, 0x0000, 0x009d, 0x0000, 0x0000, 0x0000, 0x0000, 0x009e,
/* 8 trailing zero values shared with next segment */
/*** Two byte table, leaf: c3xx - offset 0x00089 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x009f,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: d0xx - offset 0x000c8 ***/
/* 80 */ 0x0000, 0x00b3, 0x0000, 0x0000, 0x00b4, 0x0000, 0x00b6, 0x00b7,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00e1, 0x00e2, 0x00f7, 0x00e7, 0x00e4, 0x00e5, 0x00f6, 0x00fa,
/* 98 */ 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0x00f0,
/* a0 */ 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00e6, 0x00e8, 0x00e3, 0x00fe,
/* a8 */ 0x00fb, 0x00fd, 0x00ff, 0x00f9, 0x00f8, 0x00fc, 0x00e0, 0x00f1,
/* b0 */ 0x00c1, 0x00c2, 0x00d7, 0x00c7, 0x00c4, 0x00c5, 0x00d6, 0x00da,
/* b8 */ 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, 0x00d0,
/*** Two byte table, leaf: d1xx - offset 0x00108 ***/
/* 80 */ 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00c6, 0x00c8, 0x00c3, 0x00de,
/* 88 */ 0x00db, 0x00dd, 0x00df, 0x00d9, 0x00d8, 0x00dc, 0x00c0, 0x00d1,
/* 90 */ 0x0000, 0x00a3, 0x0000, 0x0000, 0x00a4, 0x0000, 0x00a6, 0x00a7,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 16 trailing zero values shared with next segment */
/*** Two byte table, leaf: d2xx - offset 0x00138 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00bd, 0x00ad, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00178 ***/
/* e2 */ 0x0179,
/*** Three byte table, byte #2: e2xx - offset 0x00179 ***/
/* 88 */ 0x0188, 0x01bd, 0x0000, 0x0000, 0x01e3, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0220, 0x025d, 0x029a,
/*** Three byte table, leaf: e288xx - offset 0x00188 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0095, 0x0096, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 8 trailing zero values shared with next segment */
/*** Three byte table, leaf: e289xx - offset 0x001bd ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0097, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0098, 0x0099,
/* 23 trailing zero values shared with next segment */
/*** Three byte table, leaf: e28cxx - offset 0x001e3 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0093, 0x009b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e294xx - offset 0x00220 ***/
/* 80 */ 0x0080, 0x0000, 0x0081, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0082, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0083, 0x0000, 0x0000, 0x0000, 0x0084, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0085, 0x0000, 0x0000, 0x0000, 0x0086, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0087, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x008a,
/*** Three byte table, leaf: e295xx - offset 0x0025d ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00a0, 0x00a1, 0x00a2, 0x0000, 0x00a5, 0x0000, 0x0000, 0x00a8,
/* 98 */ 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x0000, 0x00ae, 0x00af, 0x00b0,
/* a0 */ 0x00b1, 0x00b2, 0x0000, 0x00b5, 0x0000, 0x0000, 0x00b8, 0x00b9,
/* a8 */ 0x00ba, 0x00bb, 0x00bc, 0x0000, 0x00be, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e296xx - offset 0x0029a ***/
/* 80 */ 0x008b, 0x0000, 0x0000, 0x0000, 0x008c, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x008d, 0x0000, 0x0000, 0x0000, 0x008e, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x008f, 0x0090, 0x0091, 0x0092, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0094, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
/* src/backend/utils/mb/Unicode/utf8_to_shift_jis_2004_combined.map */
static const pg_utf_to_local_combined ULmapSHIFT_JIS_2004_combined[ 25 ] = { /* */
{0x0000c3a6, 0x0000cc80, 0x8663}, /* U+00E6+0300 [2000] */
{0x0000c994, 0x0000cc80, 0x8667}, /* U+0254+0300 [2000] */
{0x0000c994, 0x0000cc81, 0x8668}, /* U+0254+0301 [2000] */
{0x0000c999, 0x0000cc80, 0x866b}, /* U+0259+0300 [2000] */
{0x0000c999, 0x0000cc81, 0x866c}, /* U+0259+0301 [2000] */
{0x0000c99a, 0x0000cc80, 0x866d}, /* U+025A+0300 [2000] */
{0x0000c99a, 0x0000cc81, 0x866e}, /* U+025A+0301 [2000] */
{0x0000ca8c, 0x0000cc80, 0x8669}, /* U+028C+0300 [2000] */
{0x0000ca8c, 0x0000cc81, 0x866a}, /* U+028C+0301 [2000] */
{0x0000cba5, 0x0000cba9, 0x8686}, /* U+02E5+02E9 [2000] */
{0x0000cba9, 0x0000cba5, 0x8685}, /* U+02E9+02E5 [2000] */
{0x00e3818b, 0x00e3829a, 0x82f5}, /* U+304B+309A [2000] */
{0x00e3818d, 0x00e3829a, 0x82f6}, /* U+304D+309A [2000] */
{0x00e3818f, 0x00e3829a, 0x82f7}, /* U+304F+309A [2000] */
{0x00e38191, 0x00e3829a, 0x82f8}, /* U+3051+309A [2000] */
{0x00e38193, 0x00e3829a, 0x82f9}, /* U+3053+309A [2000] */
{0x00e382ab, 0x00e3829a, 0x8397}, /* U+30AB+309A [2000] */
{0x00e382ad, 0x00e3829a, 0x8398}, /* U+30AD+309A [2000] */
{0x00e382af, 0x00e3829a, 0x8399}, /* U+30AF+309A [2000] */
{0x00e382b1, 0x00e3829a, 0x839a}, /* U+30B1+309A [2000] */
{0x00e382b3, 0x00e3829a, 0x839b}, /* U+30B3+309A [2000] */
{0x00e382bb, 0x00e3829a, 0x839c}, /* U+30BB+309A [2000] */
{0x00e38384, 0x00e3829a, 0x839d}, /* U+30C4+309A [2000] */
{0x00e38388, 0x00e3829a, 0x839e}, /* U+30C8+309A [2000] */
{0x00e387b7, 0x00e3829a, 0x83f6} /* U+31F7+309A [2000] */
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,127 +1,145 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1250.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1250[ 123 ] = {
{0xc2a0, 0x00a0},
{0xc2a4, 0x00a4},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2bb, 0x00bb},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc384, 0x00c4},
{0xc387, 0x00c7},
{0xc389, 0x00c9},
{0xc38b, 0x00cb},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc39a, 0x00da},
{0xc39c, 0x00dc},
{0xc39d, 0x00dd},
{0xc39f, 0x00df},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a4, 0x00e4},
{0xc3a7, 0x00e7},
{0xc3a9, 0x00e9},
{0xc3ab, 0x00eb},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3ba, 0x00fa},
{0xc3bc, 0x00fc},
{0xc3bd, 0x00fd},
{0xc482, 0x00c3},
{0xc483, 0x00e3},
{0xc484, 0x00a5},
{0xc485, 0x00b9},
{0xc486, 0x00c6},
{0xc487, 0x00e6},
{0xc48c, 0x00c8},
{0xc48d, 0x00e8},
{0xc48e, 0x00cf},
{0xc48f, 0x00ef},
{0xc490, 0x00d0},
{0xc491, 0x00f0},
{0xc498, 0x00ca},
{0xc499, 0x00ea},
{0xc49a, 0x00cc},
{0xc49b, 0x00ec},
{0xc4b9, 0x00c5},
{0xc4ba, 0x00e5},
{0xc4bd, 0x00bc},
{0xc4be, 0x00be},
{0xc581, 0x00a3},
{0xc582, 0x00b3},
{0xc583, 0x00d1},
{0xc584, 0x00f1},
{0xc587, 0x00d2},
{0xc588, 0x00f2},
{0xc590, 0x00d5},
{0xc591, 0x00f5},
{0xc594, 0x00c0},
{0xc595, 0x00e0},
{0xc598, 0x00d8},
{0xc599, 0x00f8},
{0xc59a, 0x008c},
{0xc59b, 0x009c},
{0xc59e, 0x00aa},
{0xc59f, 0x00ba},
{0xc5a0, 0x008a},
{0xc5a1, 0x009a},
{0xc5a2, 0x00de},
{0xc5a3, 0x00fe},
{0xc5a4, 0x008d},
{0xc5a5, 0x009d},
{0xc5ae, 0x00d9},
{0xc5af, 0x00f9},
{0xc5b0, 0x00db},
{0xc5b1, 0x00fb},
{0xc5b9, 0x008f},
{0xc5ba, 0x009f},
{0xc5bb, 0x00af},
{0xc5bc, 0x00bf},
{0xc5bd, 0x008e},
{0xc5be, 0x009e},
{0xcb87, 0x00a1},
{0xcb98, 0x00a2},
{0xcb99, 0x00ff},
{0xcb9b, 0x00b2},
{0xcb9d, 0x00bd},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1250_from_unicode_tree_table[];
static const pg_mb_radix_tree win1250_from_unicode_tree =
{
win1250_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003e, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcb, /* b2_1_upper */
0x81, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x017d, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x93, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1250_from_unicode_tree_table[507] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003e ***/
/* c2 */ 0x0048, 0x0086, 0x00c3, 0x0101, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x013f,
/*** Two byte table, leaf: c2xx - offset 0x00048 ***/
/* 81 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 89 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 91 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 99 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a0,
/* a1 */ 0x0000, 0x0000, 0x0000, 0x00a4, 0x0000, 0x00a6, 0x00a7, 0x00a8,
/* a9 */ 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x0000, 0x00b0,
/* b1 */ 0x00b1, 0x0000, 0x0000, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8,
/* b9 */ 0x0000, 0x0000, 0x00bb, 0x0000, 0x0000, 0x0000,
/*** Two byte table, leaf: c3xx - offset 0x00086 ***/
/* 81 */ 0x00c1, 0x00c2, 0x0000, 0x00c4, 0x0000, 0x0000, 0x00c7, 0x0000,
/* 89 */ 0x00c9, 0x0000, 0x00cb, 0x0000, 0x00cd, 0x00ce, 0x0000, 0x0000,
/* 91 */ 0x0000, 0x0000, 0x00d3, 0x00d4, 0x0000, 0x00d6, 0x00d7, 0x0000,
/* 99 */ 0x0000, 0x00da, 0x0000, 0x00dc, 0x00dd, 0x0000, 0x00df, 0x0000,
/* a1 */ 0x00e1, 0x00e2, 0x0000, 0x00e4, 0x0000, 0x0000, 0x00e7, 0x0000,
/* a9 */ 0x00e9, 0x0000, 0x00eb, 0x0000, 0x00ed, 0x00ee, 0x0000, 0x0000,
/* b1 */ 0x0000, 0x0000, 0x00f3, 0x00f4, 0x0000, 0x00f6, 0x00f7, 0x0000,
/* b9 */ 0x0000, 0x00fa, 0x0000, 0x00fc, 0x00fd,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c4xx - offset 0x000c3 ***/
/* 81 */ 0x0000, 0x00c3, 0x00e3, 0x00a5, 0x00b9, 0x00c6, 0x00e6, 0x0000,
/* 89 */ 0x0000, 0x0000, 0x0000, 0x00c8, 0x00e8, 0x00cf, 0x00ef, 0x00d0,
/* 91 */ 0x00f0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ca,
/* 99 */ 0x00ea, 0x00cc, 0x00ec, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a1 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a9 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b1 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b9 */ 0x00c5, 0x00e5, 0x0000, 0x0000, 0x00bc, 0x00be,
/*** Two byte table, leaf: c5xx - offset 0x00101 ***/
/* 81 */ 0x00a3, 0x00b3, 0x00d1, 0x00f1, 0x0000, 0x0000, 0x00d2, 0x00f2,
/* 89 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d5,
/* 91 */ 0x00f5, 0x0000, 0x0000, 0x00c0, 0x00e0, 0x0000, 0x0000, 0x00d8,
/* 99 */ 0x00f8, 0x008c, 0x009c, 0x0000, 0x0000, 0x00aa, 0x00ba, 0x008a,
/* a1 */ 0x009a, 0x00de, 0x00fe, 0x008d, 0x009d, 0x0000, 0x0000, 0x0000,
/* a9 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d9, 0x00f9, 0x00db,
/* b1 */ 0x00fb, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b9 */ 0x008f, 0x009f, 0x00af, 0x00bf, 0x008e, 0x009e,
/*** Two byte table, leaf: cbxx - offset 0x0013f ***/
/* 81 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a1, 0x0000,
/* 89 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 91 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00a2,
/* 99 */ 0x00ff, 0x0000, 0x00b2, 0x0000, 0x00bd, 0x0000, 0x0000, 0x0000,
/* a1 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a9 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b1 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b9 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x0017d ***/
/* e2 */ 0x017e,
/*** Three byte table, byte #2: e2xx - offset 0x0017e ***/
/* 80 */ 0x0183, 0x0000, 0x01ab, 0x0000, 0x01d3,
/*** Three byte table, leaf: e280xx - offset 0x00183 ***/
/* 93 */ 0x0096, 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082,
/* 9b */ 0x0000, 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x001ab ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x001d3 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,131 +1,134 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1251.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1251[ 127 ] = {
{0xc2a0, 0x00a0},
{0xc2a4, 0x00a4},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2bb, 0x00bb},
{0xd081, 0x00a8},
{0xd082, 0x0080},
{0xd083, 0x0081},
{0xd084, 0x00aa},
{0xd085, 0x00bd},
{0xd086, 0x00b2},
{0xd087, 0x00af},
{0xd088, 0x00a3},
{0xd089, 0x008a},
{0xd08a, 0x008c},
{0xd08b, 0x008e},
{0xd08c, 0x008d},
{0xd08e, 0x00a1},
{0xd08f, 0x008f},
{0xd090, 0x00c0},
{0xd091, 0x00c1},
{0xd092, 0x00c2},
{0xd093, 0x00c3},
{0xd094, 0x00c4},
{0xd095, 0x00c5},
{0xd096, 0x00c6},
{0xd097, 0x00c7},
{0xd098, 0x00c8},
{0xd099, 0x00c9},
{0xd09a, 0x00ca},
{0xd09b, 0x00cb},
{0xd09c, 0x00cc},
{0xd09d, 0x00cd},
{0xd09e, 0x00ce},
{0xd09f, 0x00cf},
{0xd0a0, 0x00d0},
{0xd0a1, 0x00d1},
{0xd0a2, 0x00d2},
{0xd0a3, 0x00d3},
{0xd0a4, 0x00d4},
{0xd0a5, 0x00d5},
{0xd0a6, 0x00d6},
{0xd0a7, 0x00d7},
{0xd0a8, 0x00d8},
{0xd0a9, 0x00d9},
{0xd0aa, 0x00da},
{0xd0ab, 0x00db},
{0xd0ac, 0x00dc},
{0xd0ad, 0x00dd},
{0xd0ae, 0x00de},
{0xd0af, 0x00df},
{0xd0b0, 0x00e0},
{0xd0b1, 0x00e1},
{0xd0b2, 0x00e2},
{0xd0b3, 0x00e3},
{0xd0b4, 0x00e4},
{0xd0b5, 0x00e5},
{0xd0b6, 0x00e6},
{0xd0b7, 0x00e7},
{0xd0b8, 0x00e8},
{0xd0b9, 0x00e9},
{0xd0ba, 0x00ea},
{0xd0bb, 0x00eb},
{0xd0bc, 0x00ec},
{0xd0bd, 0x00ed},
{0xd0be, 0x00ee},
{0xd0bf, 0x00ef},
{0xd180, 0x00f0},
{0xd181, 0x00f1},
{0xd182, 0x00f2},
{0xd183, 0x00f3},
{0xd184, 0x00f4},
{0xd185, 0x00f5},
{0xd186, 0x00f6},
{0xd187, 0x00f7},
{0xd188, 0x00f8},
{0xd189, 0x00f9},
{0xd18a, 0x00fa},
{0xd18b, 0x00fb},
{0xd18c, 0x00fc},
{0xd18d, 0x00fd},
{0xd18e, 0x00fe},
{0xd18f, 0x00ff},
{0xd191, 0x00b8},
{0xd192, 0x0090},
{0xd193, 0x0083},
{0xd194, 0x00ba},
{0xd195, 0x00be},
{0xd196, 0x00b3},
{0xd197, 0x00bf},
{0xd198, 0x00bc},
{0xd199, 0x009a},
{0xd19a, 0x009c},
{0xd19b, 0x009e},
{0xd19c, 0x009d},
{0xd19e, 0x00a2},
{0xd19f, 0x009f},
{0xd290, 0x00a5},
{0xd291, 0x00b4},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ac, 0x0088},
{0xe28496, 0x00b9},
{0xe284a2, 0x0099}
static const uint16 win1251_from_unicode_tree_table[];
static const pg_mb_radix_tree win1251_from_unicode_tree =
{
win1251_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd2, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0140, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x93, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1251_from_unicode_tree_table[446] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0051, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0090, 0x00d0,
/* d2 */ 0x0100,
/*** Two byte table, leaf: c2xx - offset 0x00051 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x0000, 0x00a4, 0x0000, 0x00a6, 0x00a7,
/* a8 */ 0x0000, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x0000,
/* b0 */ 0x00b0, 0x00b1, 0x0000, 0x0000, 0x0000, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x00bb, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: d0xx - offset 0x00090 ***/
/* 80 */ 0x0000, 0x00a8, 0x0080, 0x0081, 0x00aa, 0x00bd, 0x00b2, 0x00af,
/* 88 */ 0x00a3, 0x008a, 0x008c, 0x008e, 0x008d, 0x0000, 0x00a1, 0x008f,
/* 90 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 98 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* a0 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* a8 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
/* b0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* b8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/*** Two byte table, leaf: d1xx - offset 0x000d0 ***/
/* 80 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* 88 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff,
/* 90 */ 0x0000, 0x00b8, 0x0090, 0x0083, 0x00ba, 0x00be, 0x00b3, 0x00bf,
/* 98 */ 0x00bc, 0x009a, 0x009c, 0x009e, 0x009d, 0x0000, 0x00a2, 0x009f,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 16 trailing zero values shared with next segment */
/*** Two byte table, leaf: d2xx - offset 0x00100 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00a5, 0x00b4, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00140 ***/
/* e2 */ 0x0141,
/*** Three byte table, byte #2: e2xx - offset 0x00141 ***/
/* 80 */ 0x0146, 0x0000, 0x016e, 0x0000, 0x0196,
/*** Three byte table, leaf: e280xx - offset 0x00146 ***/
/* 93 */ 0x0096, 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082,
/* 9b */ 0x0000, 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x0016e ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0088, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x00196 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x00b9, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,127 +1,146 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1252.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1252[ 123 ] = {
{0xc2a0, 0x00a0},
{0xc2a1, 0x00a1},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2aa, 0x00aa},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2b9, 0x00b9},
{0xc2ba, 0x00ba},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc2bf, 0x00bf},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc383, 0x00c3},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38c, 0x00cc},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc390, 0x00d0},
{0xc391, 0x00d1},
{0xc392, 0x00d2},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00d8},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39d, 0x00dd},
{0xc39e, 0x00de},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a3, 0x00e3},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ac, 0x00ec},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b0, 0x00f0},
{0xc3b1, 0x00f1},
{0xc3b2, 0x00f2},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00f8},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bd, 0x00fd},
{0xc3be, 0x00fe},
{0xc3bf, 0x00ff},
{0xc592, 0x008c},
{0xc593, 0x009c},
{0xc5a0, 0x008a},
{0xc5a1, 0x009a},
{0xc5b8, 0x009f},
{0xc5bd, 0x008e},
{0xc5be, 0x009e},
{0xc692, 0x0083},
{0xcb86, 0x0088},
{0xcb9c, 0x0098},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1252_from_unicode_tree_table[];
static const pg_mb_radix_tree win1252_from_unicode_tree =
{
win1252_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcb, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0183, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x93, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1252_from_unicode_tree_table[513] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x004a, 0x008a, 0x0000, 0x00ca, 0x0109, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0143,
/*** Two byte table, leaf: c2xx - offset 0x0004a ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
/*** Two byte table, leaf: c3xx - offset 0x0008a ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* 98 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* b8 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff,
/*** Two byte table, leaf: c5xx - offset 0x000ca ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x008c, 0x009c, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x008a, 0x009a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x009f, 0x0000, 0x0000, 0x0000, 0x0000, 0x008e, 0x009e,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c6xx - offset 0x00109 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000,
/* 6 trailing zero values shared with next segment */
/*** Two byte table, leaf: cbxx - offset 0x00143 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0098, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00183 ***/
/* e2 */ 0x0184,
/*** Three byte table, byte #2: e2xx - offset 0x00184 ***/
/* 80 */ 0x0189, 0x0000, 0x01b1, 0x0000, 0x01d9,
/*** Three byte table, leaf: e280xx - offset 0x00189 ***/
/* 93 */ 0x0096, 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082,
/* 9b */ 0x0000, 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x001b1 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x001d9 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,115 +1,135 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1253.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1253[ 111 ] = {
{0xc2a0, 0x00a0},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2bb, 0x00bb},
{0xc2bd, 0x00bd},
{0xc692, 0x0083},
{0xce84, 0x00b4},
{0xce85, 0x00a1},
{0xce86, 0x00a2},
{0xce88, 0x00b8},
{0xce89, 0x00b9},
{0xce8a, 0x00ba},
{0xce8c, 0x00bc},
{0xce8e, 0x00be},
{0xce8f, 0x00bf},
{0xce90, 0x00c0},
{0xce91, 0x00c1},
{0xce92, 0x00c2},
{0xce93, 0x00c3},
{0xce94, 0x00c4},
{0xce95, 0x00c5},
{0xce96, 0x00c6},
{0xce97, 0x00c7},
{0xce98, 0x00c8},
{0xce99, 0x00c9},
{0xce9a, 0x00ca},
{0xce9b, 0x00cb},
{0xce9c, 0x00cc},
{0xce9d, 0x00cd},
{0xce9e, 0x00ce},
{0xce9f, 0x00cf},
{0xcea0, 0x00d0},
{0xcea1, 0x00d1},
{0xcea3, 0x00d3},
{0xcea4, 0x00d4},
{0xcea5, 0x00d5},
{0xcea6, 0x00d6},
{0xcea7, 0x00d7},
{0xcea8, 0x00d8},
{0xcea9, 0x00d9},
{0xceaa, 0x00da},
{0xceab, 0x00db},
{0xceac, 0x00dc},
{0xcead, 0x00dd},
{0xceae, 0x00de},
{0xceaf, 0x00df},
{0xceb0, 0x00e0},
{0xceb1, 0x00e1},
{0xceb2, 0x00e2},
{0xceb3, 0x00e3},
{0xceb4, 0x00e4},
{0xceb5, 0x00e5},
{0xceb6, 0x00e6},
{0xceb7, 0x00e7},
{0xceb8, 0x00e8},
{0xceb9, 0x00e9},
{0xceba, 0x00ea},
{0xcebb, 0x00eb},
{0xcebc, 0x00ec},
{0xcebd, 0x00ed},
{0xcebe, 0x00ee},
{0xcebf, 0x00ef},
{0xcf80, 0x00f0},
{0xcf81, 0x00f1},
{0xcf82, 0x00f2},
{0xcf83, 0x00f3},
{0xcf84, 0x00f4},
{0xcf85, 0x00f5},
{0xcf86, 0x00f6},
{0xcf87, 0x00f7},
{0xcf88, 0x00f8},
{0xcf89, 0x00f9},
{0xcf8a, 0x00fa},
{0xcf8b, 0x00fb},
{0xcf8c, 0x00fc},
{0xcf8d, 0x00fd},
{0xcf8e, 0x00fe},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28095, 0x00af},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1253_from_unicode_tree_table[];
static const pg_mb_radix_tree win1253_from_unicode_tree =
{
win1253_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcf, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x0148, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x93, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1253_from_unicode_tree_table[454] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x004e, 0x0000, 0x0000, 0x0000, 0x008c, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c8, 0x0108,
/*** Two byte table, leaf: c2xx - offset 0x0004e ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x0000, 0x0000, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x0000,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0000, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x00bb, 0x0000, 0x00bd,
/* 2 trailing zero values shared with next segment */
/*** Two byte table, leaf: c6xx - offset 0x0008c ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000,
/* 4 trailing zero values shared with next segment */
/*** Two byte table, leaf: cexx - offset 0x000c8 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00b4, 0x00a1, 0x00a2, 0x0000,
/* 88 */ 0x00b8, 0x00b9, 0x00ba, 0x0000, 0x00bc, 0x0000, 0x00be, 0x00bf,
/* 90 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 98 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* a0 */ 0x00d0, 0x00d1, 0x0000, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* a8 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
/* b0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* b8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/*** Two byte table, leaf: cfxx - offset 0x00108 ***/
/* 80 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* 88 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00148 ***/
/* e2 */ 0x0149,
/*** Three byte table, byte #2: e2xx - offset 0x00149 ***/
/* 80 */ 0x014e, 0x0000, 0x0176, 0x0000, 0x019e,
/*** Three byte table, leaf: e280xx - offset 0x0014e ***/
/* 93 */ 0x0096, 0x0097, 0x00af, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082,
/* 9b */ 0x0000, 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x00176 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x0019e ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,125 +1,157 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1254.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1254[ 121 ] = {
{0xc2a0, 0x00a0},
{0xc2a1, 0x00a1},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2aa, 0x00aa},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2b9, 0x00b9},
{0xc2ba, 0x00ba},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc2bf, 0x00bf},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc383, 0x00c3},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38c, 0x00cc},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc391, 0x00d1},
{0xc392, 0x00d2},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00d8},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a3, 0x00e3},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ac, 0x00ec},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b1, 0x00f1},
{0xc3b2, 0x00f2},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00f8},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bf, 0x00ff},
{0xc49e, 0x00d0},
{0xc49f, 0x00f0},
{0xc4b0, 0x00dd},
{0xc4b1, 0x00fd},
{0xc592, 0x008c},
{0xc593, 0x009c},
{0xc59e, 0x00de},
{0xc59f, 0x00fe},
{0xc5a0, 0x008a},
{0xc5a1, 0x009a},
{0xc5b8, 0x009f},
{0xc692, 0x0083},
{0xcb86, 0x0088},
{0xcb9c, 0x0098},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1254_from_unicode_tree_table[];
static const pg_mb_radix_tree win1254_from_unicode_tree =
{
win1254_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcb, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x01af, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x93, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1254_from_unicode_tree_table[557] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x004a, 0x008a, 0x00ca, 0x00fc, 0x0135, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x016f,
/*** Two byte table, leaf: c2xx - offset 0x0004a ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
/*** Two byte table, leaf: c3xx - offset 0x0008a ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x0000, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* 98 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x0000, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* b8 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0000, 0x0000, 0x00ff,
/*** Two byte table, leaf: c4xx - offset 0x000ca ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d0, 0x00f0,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x00dd, 0x00fd,
/* 14 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x000fc ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x008c, 0x009c, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00de, 0x00fe,
/* a0 */ 0x008a, 0x009a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x009f,
/* 7 trailing zero values shared with next segment */
/*** Two byte table, leaf: c6xx - offset 0x00135 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000,
/* 6 trailing zero values shared with next segment */
/*** Two byte table, leaf: cbxx - offset 0x0016f ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0098, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x001af ***/
/* e2 */ 0x01b0,
/*** Three byte table, byte #2: e2xx - offset 0x001b0 ***/
/* 80 */ 0x01b5, 0x0000, 0x01dd, 0x0000, 0x0205,
/*** Three byte table, leaf: e280xx - offset 0x001b5 ***/
/* 93 */ 0x0096, 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082,
/* 9b */ 0x0000, 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x001dd ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x00205 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,109 +1,157 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1255.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1255[ 105 ] = {
{0xc2a0, 0x00a0},
{0xc2a1, 0x00a1},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2b9, 0x00b9},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc2bf, 0x00bf},
{0xc397, 0x00aa},
{0xc3b7, 0x00ba},
{0xc692, 0x0083},
{0xcb86, 0x0088},
{0xcb9c, 0x0098},
{0xd6b0, 0x00c0},
{0xd6b1, 0x00c1},
{0xd6b2, 0x00c2},
{0xd6b3, 0x00c3},
{0xd6b4, 0x00c4},
{0xd6b5, 0x00c5},
{0xd6b6, 0x00c6},
{0xd6b7, 0x00c7},
{0xd6b8, 0x00c8},
{0xd6b9, 0x00c9},
{0xd6bb, 0x00cb},
{0xd6bc, 0x00cc},
{0xd6bd, 0x00cd},
{0xd6be, 0x00ce},
{0xd6bf, 0x00cf},
{0xd780, 0x00d0},
{0xd781, 0x00d1},
{0xd782, 0x00d2},
{0xd783, 0x00d3},
{0xd790, 0x00e0},
{0xd791, 0x00e1},
{0xd792, 0x00e2},
{0xd793, 0x00e3},
{0xd794, 0x00e4},
{0xd795, 0x00e5},
{0xd796, 0x00e6},
{0xd797, 0x00e7},
{0xd798, 0x00e8},
{0xd799, 0x00e9},
{0xd79a, 0x00ea},
{0xd79b, 0x00eb},
{0xd79c, 0x00ec},
{0xd79d, 0x00ed},
{0xd79e, 0x00ee},
{0xd79f, 0x00ef},
{0xd7a0, 0x00f0},
{0xd7a1, 0x00f1},
{0xd7a2, 0x00f2},
{0xd7a3, 0x00f3},
{0xd7a4, 0x00f4},
{0xd7a5, 0x00f5},
{0xd7a6, 0x00f6},
{0xd7a7, 0x00f7},
{0xd7a8, 0x00f8},
{0xd7a9, 0x00f9},
{0xd7aa, 0x00fa},
{0xd7b0, 0x00d4},
{0xd7b1, 0x00d5},
{0xd7b2, 0x00d6},
{0xd7b3, 0x00d7},
{0xd7b4, 0x00d8},
{0xe2808e, 0x00fd},
{0xe2808f, 0x00fe},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282aa, 0x00a4},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1255_from_unicode_tree_table[];
static const pg_mb_radix_tree win1255_from_unicode_tree =
{
win1255_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd7, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x01a5, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x8e, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1255_from_unicode_tree_table[562] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0056, 0x0096, 0x0000, 0x0000, 0x00ce, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0108, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* d2 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0125, 0x0165,
/*** Two byte table, leaf: c2xx - offset 0x00056 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x0000, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x00b8, 0x00b9, 0x0000, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
/*** Two byte table, leaf: c3xx - offset 0x00096 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00aa,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00ba,
/* 8 trailing zero values shared with next segment */
/*** Two byte table, leaf: c6xx - offset 0x000ce ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000,
/* 6 trailing zero values shared with next segment */
/*** Two byte table, leaf: cbxx - offset 0x00108 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0098,
/* 35 trailing zero values shared with next segment */
/*** Two byte table, leaf: d6xx - offset 0x00125 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* b8 */ 0x00c8, 0x00c9, 0x0000, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/*** Two byte table, leaf: d7xx - offset 0x00165 ***/
/* 80 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* 98 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* a0 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* a8 */ 0x00f8, 0x00f9, 0x00fa, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x00d4, 0x00d5, 0x00d6, 0x00d7, 0x00d8, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x001a5 ***/
/* e2 */ 0x01a6,
/*** Three byte table, byte #2: e2xx - offset 0x001a6 ***/
/* 80 */ 0x01ab, 0x0000, 0x01d8, 0x0000, 0x0205,
/*** Three byte table, leaf: e280xx - offset 0x001ab ***/
/* 8e */ 0x00fd, 0x00fe, 0x0000, 0x0000, 0x0000, 0x0096, 0x0097, 0x0000,
/* 96 */ 0x0000, 0x0000, 0x0091, 0x0092, 0x0082, 0x0000, 0x0093, 0x0094,
/* 9e */ 0x0084, 0x0000, 0x0086, 0x0087, 0x0095, 0x0000, 0x0000, 0x0000,
/* a6 */ 0x0085, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ae */ 0x0000, 0x0000, 0x0089, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b6 */ 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x001d8 ***/
/* 8e */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 96 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9e */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a6 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00a4, 0x0000, 0x0080, 0x0000,
/* ae */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b6 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x00205 ***/
/* 8e */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 96 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9e */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0099, 0x0000, 0x0000, 0x0000,
/* a6 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ae */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b6 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,132 +1,194 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1256.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1256[ 128 ] = {
{0xc2a0, 0x00a0},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2b9, 0x00b9},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc397, 0x00d7},
{0xc3a0, 0x00e0},
{0xc3a2, 0x00e2},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b4, 0x00f4},
{0xc3b7, 0x00f7},
{0xc3b9, 0x00f9},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc592, 0x008c},
{0xc593, 0x009c},
{0xc692, 0x0083},
{0xcb86, 0x0088},
{0xd88c, 0x00a1},
{0xd89b, 0x00ba},
{0xd89f, 0x00bf},
{0xd8a1, 0x00c1},
{0xd8a2, 0x00c2},
{0xd8a3, 0x00c3},
{0xd8a4, 0x00c4},
{0xd8a5, 0x00c5},
{0xd8a6, 0x00c6},
{0xd8a7, 0x00c7},
{0xd8a8, 0x00c8},
{0xd8a9, 0x00c9},
{0xd8aa, 0x00ca},
{0xd8ab, 0x00cb},
{0xd8ac, 0x00cc},
{0xd8ad, 0x00cd},
{0xd8ae, 0x00ce},
{0xd8af, 0x00cf},
{0xd8b0, 0x00d0},
{0xd8b1, 0x00d1},
{0xd8b2, 0x00d2},
{0xd8b3, 0x00d3},
{0xd8b4, 0x00d4},
{0xd8b5, 0x00d5},
{0xd8b6, 0x00d6},
{0xd8b7, 0x00d8},
{0xd8b8, 0x00d9},
{0xd8b9, 0x00da},
{0xd8ba, 0x00db},
{0xd980, 0x00dc},
{0xd981, 0x00dd},
{0xd982, 0x00de},
{0xd983, 0x00df},
{0xd984, 0x00e1},
{0xd985, 0x00e3},
{0xd986, 0x00e4},
{0xd987, 0x00e5},
{0xd988, 0x00e6},
{0xd989, 0x00ec},
{0xd98a, 0x00ed},
{0xd98b, 0x00f0},
{0xd98c, 0x00f1},
{0xd98d, 0x00f2},
{0xd98e, 0x00f3},
{0xd98f, 0x00f5},
{0xd990, 0x00f6},
{0xd991, 0x00f8},
{0xd992, 0x00fa},
{0xd9b9, 0x008a},
{0xd9be, 0x0081},
{0xda86, 0x008d},
{0xda88, 0x008f},
{0xda91, 0x009a},
{0xda98, 0x008e},
{0xdaa9, 0x0098},
{0xdaaf, 0x0090},
{0xdaba, 0x009f},
{0xdabe, 0x00aa},
{0xdb81, 0x00c0},
{0xdb92, 0x00ff},
{0xe2808c, 0x009d},
{0xe2808d, 0x009e},
{0xe2808e, 0x00fd},
{0xe2808f, 0x00fe},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1256_from_unicode_tree_table[];
static const pg_mb_radix_tree win1256_from_unicode_tree =
{
win1256_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003f, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xdb, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x026a, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x8c, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1256_from_unicode_tree_table[765] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003f ***/
/* c2 */ 0x0059, 0x0098, 0x0000, 0x00d5, 0x0102, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x013b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* d2 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x016e, 0x01ad,
/* da */ 0x01ec, 0x022b,
/*** Two byte table, leaf: c2xx - offset 0x00059 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x0000, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x00b8, 0x00b9, 0x0000, 0x00bb, 0x00bc, 0x00bd, 0x00be,
/*** Two byte table, leaf: c3xx - offset 0x00098 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d7,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00e0, 0x0000, 0x00e2, 0x0000, 0x0000, 0x0000, 0x0000, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0000, 0x0000, 0x00ee, 0x00ef,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00f4, 0x0000, 0x0000, 0x00f7,
/* b8 */ 0x0000, 0x00f9, 0x0000, 0x00fb, 0x00fc,
/* 2 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x000d5 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x008c, 0x009c, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 trailing zero values shared with next segment */
/*** Two byte table, leaf: c6xx - offset 0x00102 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000,
/* 6 trailing zero values shared with next segment */
/*** Two byte table, leaf: cbxx - offset 0x0013b ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000,
/* 12 trailing zero values shared with next segment */
/*** Two byte table, leaf: d8xx - offset 0x0016e ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00a1, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x00ba, 0x0000, 0x0000, 0x0000, 0x00bf,
/* a0 */ 0x0000, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* a8 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* b0 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d8,
/* b8 */ 0x00d9, 0x00da, 0x00db, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, leaf: d9xx - offset 0x001ad ***/
/* 80 */ 0x00dc, 0x00dd, 0x00de, 0x00df, 0x00e1, 0x00e3, 0x00e4, 0x00e5,
/* 88 */ 0x00e6, 0x00ec, 0x00ed, 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f5,
/* 90 */ 0x00f6, 0x00f8, 0x00fa, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x008a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0081,
/*** Two byte table, leaf: daxx - offset 0x001ec ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008d, 0x0000,
/* 88 */ 0x008f, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x009a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x008e, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0098, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0090,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x009f, 0x0000, 0x0000, 0x0000, 0x00aa,
/*** Two byte table, leaf: dbxx - offset 0x0022b ***/
/* 80 */ 0x0000, 0x00c0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x00ff, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x0026a ***/
/* e2 */ 0x026b,
/*** Three byte table, byte #2: e2xx - offset 0x0026b ***/
/* 80 */ 0x0270, 0x0000, 0x029f, 0x0000, 0x02ce,
/*** Three byte table, leaf: e280xx - offset 0x00270 ***/
/* 8c */ 0x009d, 0x009e, 0x00fd, 0x00fe, 0x0000, 0x0000, 0x0000, 0x0096,
/* 94 */ 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082, 0x0000,
/* 9c */ 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095, 0x0000,
/* a4 */ 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ac */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000, 0x0000,
/* b4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x0029f ***/
/* 8c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 94 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ac */ 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x002ce ***/
/* 8c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 94 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099, 0x0000,
/* a4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ac */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,120 +1,145 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1257.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1257[ 116 ] = {
{0xc2a0, 0x00a0},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x008d},
{0xc2a9, 0x00a9},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x009d},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x008f},
{0xc2b9, 0x00b9},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00af},
{0xc389, 0x00c9},
{0xc393, 0x00d3},
{0xc395, 0x00d5},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00a8},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00bf},
{0xc3a9, 0x00e9},
{0xc3b3, 0x00f3},
{0xc3b5, 0x00f5},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00b8},
{0xc3bc, 0x00fc},
{0xc480, 0x00c2},
{0xc481, 0x00e2},
{0xc484, 0x00c0},
{0xc485, 0x00e0},
{0xc486, 0x00c3},
{0xc487, 0x00e3},
{0xc48c, 0x00c8},
{0xc48d, 0x00e8},
{0xc492, 0x00c7},
{0xc493, 0x00e7},
{0xc496, 0x00cb},
{0xc497, 0x00eb},
{0xc498, 0x00c6},
{0xc499, 0x00e6},
{0xc4a2, 0x00cc},
{0xc4a3, 0x00ec},
{0xc4aa, 0x00ce},
{0xc4ab, 0x00ee},
{0xc4ae, 0x00c1},
{0xc4af, 0x00e1},
{0xc4b6, 0x00cd},
{0xc4b7, 0x00ed},
{0xc4bb, 0x00cf},
{0xc4bc, 0x00ef},
{0xc581, 0x00d9},
{0xc582, 0x00f9},
{0xc583, 0x00d1},
{0xc584, 0x00f1},
{0xc585, 0x00d2},
{0xc586, 0x00f2},
{0xc58c, 0x00d4},
{0xc58d, 0x00f4},
{0xc596, 0x00aa},
{0xc597, 0x00ba},
{0xc59a, 0x00da},
{0xc59b, 0x00fa},
{0xc5a0, 0x00d0},
{0xc5a1, 0x00f0},
{0xc5aa, 0x00db},
{0xc5ab, 0x00fb},
{0xc5b2, 0x00d8},
{0xc5b3, 0x00f8},
{0xc5b9, 0x00ca},
{0xc5ba, 0x00ea},
{0xc5bb, 0x00dd},
{0xc5bc, 0x00fd},
{0xc5bd, 0x00de},
{0xc5be, 0x00fe},
{0xcb87, 0x008e},
{0xcb99, 0x00ff},
{0xcb9b, 0x009e},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1257_from_unicode_tree_table[];
static const pg_mb_radix_tree win1257_from_unicode_tree =
{
win1257_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x003f, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcb, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbe, /* b2_2_upper */
0x0183, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x93, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1257_from_unicode_tree_table[513] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x0003f ***/
/* c2 */ 0x0049, 0x0088, 0x00c7, 0x0105, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0144,
/*** Two byte table, leaf: c2xx - offset 0x00049 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x0000, 0x00a2, 0x00a3, 0x00a4, 0x0000, 0x00a6, 0x00a7,
/* a8 */ 0x008d, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x009d,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x008f, 0x00b9, 0x0000, 0x00bb, 0x00bc, 0x00bd, 0x00be,
/*** Two byte table, leaf: c3xx - offset 0x00088 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c4, 0x00c5, 0x00af, 0x0000,
/* 88 */ 0x0000, 0x00c9, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x00d3, 0x0000, 0x00d5, 0x00d6, 0x00d7,
/* 98 */ 0x00a8, 0x0000, 0x0000, 0x0000, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00e4, 0x00e5, 0x00bf, 0x0000,
/* a8 */ 0x0000, 0x00e9, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x00f3, 0x0000, 0x00f5, 0x00f6, 0x00f7,
/* b8 */ 0x00b8, 0x0000, 0x0000, 0x0000, 0x00fc, 0x0000, 0x0000,
/*** Two byte table, leaf: c4xx - offset 0x000c7 ***/
/* 80 */ 0x00c2, 0x00e2, 0x0000, 0x0000, 0x00c0, 0x00e0, 0x00c3, 0x00e3,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c8, 0x00e8, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x00c7, 0x00e7, 0x0000, 0x0000, 0x00cb, 0x00eb,
/* 98 */ 0x00c6, 0x00e6, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x00cc, 0x00ec, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x00ce, 0x00ee, 0x0000, 0x0000, 0x00c1, 0x00e1,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00cd, 0x00ed,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x00cf, 0x00ef, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x00105 ***/
/* 80 */ 0x0000, 0x00d9, 0x00f9, 0x00d1, 0x00f1, 0x00d2, 0x00f2, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00d4, 0x00f4, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00aa, 0x00ba,
/* 98 */ 0x0000, 0x0000, 0x00da, 0x00fa, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00d0, 0x00f0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x00db, 0x00fb, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x00d8, 0x00f8, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x00ca, 0x00ea, 0x00dd, 0x00fd, 0x00de, 0x00fe,
/*** Two byte table, leaf: cbxx - offset 0x00144 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008e,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x00ff, 0x0000, 0x009e, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x00183 ***/
/* e2 */ 0x0184,
/*** Three byte table, byte #2: e2xx - offset 0x00184 ***/
/* 80 */ 0x0189, 0x0000, 0x01b1, 0x0000, 0x01d9,
/*** Three byte table, leaf: e280xx - offset 0x00189 ***/
/* 93 */ 0x0096, 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082,
/* 9b */ 0x0000, 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x001b1 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x001d9 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,123 +1,167 @@
/* src/backend/utils/mb/Unicode/utf8_to_win1258.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN1258[ 119 ] = {
{0xc2a0, 0x00a0},
{0xc2a1, 0x00a1},
{0xc2a2, 0x00a2},
{0xc2a3, 0x00a3},
{0xc2a4, 0x00a4},
{0xc2a5, 0x00a5},
{0xc2a6, 0x00a6},
{0xc2a7, 0x00a7},
{0xc2a8, 0x00a8},
{0xc2a9, 0x00a9},
{0xc2aa, 0x00aa},
{0xc2ab, 0x00ab},
{0xc2ac, 0x00ac},
{0xc2ad, 0x00ad},
{0xc2ae, 0x00ae},
{0xc2af, 0x00af},
{0xc2b0, 0x00b0},
{0xc2b1, 0x00b1},
{0xc2b2, 0x00b2},
{0xc2b3, 0x00b3},
{0xc2b4, 0x00b4},
{0xc2b5, 0x00b5},
{0xc2b6, 0x00b6},
{0xc2b7, 0x00b7},
{0xc2b8, 0x00b8},
{0xc2b9, 0x00b9},
{0xc2ba, 0x00ba},
{0xc2bb, 0x00bb},
{0xc2bc, 0x00bc},
{0xc2bd, 0x00bd},
{0xc2be, 0x00be},
{0xc2bf, 0x00bf},
{0xc380, 0x00c0},
{0xc381, 0x00c1},
{0xc382, 0x00c2},
{0xc384, 0x00c4},
{0xc385, 0x00c5},
{0xc386, 0x00c6},
{0xc387, 0x00c7},
{0xc388, 0x00c8},
{0xc389, 0x00c9},
{0xc38a, 0x00ca},
{0xc38b, 0x00cb},
{0xc38d, 0x00cd},
{0xc38e, 0x00ce},
{0xc38f, 0x00cf},
{0xc391, 0x00d1},
{0xc393, 0x00d3},
{0xc394, 0x00d4},
{0xc396, 0x00d6},
{0xc397, 0x00d7},
{0xc398, 0x00d8},
{0xc399, 0x00d9},
{0xc39a, 0x00da},
{0xc39b, 0x00db},
{0xc39c, 0x00dc},
{0xc39f, 0x00df},
{0xc3a0, 0x00e0},
{0xc3a1, 0x00e1},
{0xc3a2, 0x00e2},
{0xc3a4, 0x00e4},
{0xc3a5, 0x00e5},
{0xc3a6, 0x00e6},
{0xc3a7, 0x00e7},
{0xc3a8, 0x00e8},
{0xc3a9, 0x00e9},
{0xc3aa, 0x00ea},
{0xc3ab, 0x00eb},
{0xc3ad, 0x00ed},
{0xc3ae, 0x00ee},
{0xc3af, 0x00ef},
{0xc3b1, 0x00f1},
{0xc3b3, 0x00f3},
{0xc3b4, 0x00f4},
{0xc3b6, 0x00f6},
{0xc3b7, 0x00f7},
{0xc3b8, 0x00f8},
{0xc3b9, 0x00f9},
{0xc3ba, 0x00fa},
{0xc3bb, 0x00fb},
{0xc3bc, 0x00fc},
{0xc3bf, 0x00ff},
{0xc482, 0x00c3},
{0xc483, 0x00e3},
{0xc490, 0x00d0},
{0xc491, 0x00f0},
{0xc592, 0x008c},
{0xc593, 0x009c},
{0xc5b8, 0x009f},
{0xc692, 0x0083},
{0xc6a0, 0x00d5},
{0xc6a1, 0x00f5},
{0xc6af, 0x00dd},
{0xc6b0, 0x00fd},
{0xcb86, 0x0088},
{0xcb9c, 0x0098},
{0xcc80, 0x00cc},
{0xcc81, 0x00ec},
{0xcc83, 0x00de},
{0xcc89, 0x00d2},
{0xcca3, 0x00f2},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809a, 0x0082},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe2809e, 0x0084},
{0xe280a0, 0x0086},
{0xe280a1, 0x0087},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe280b0, 0x0089},
{0xe280b9, 0x008b},
{0xe280ba, 0x009b},
{0xe282ab, 0x00fe},
{0xe282ac, 0x0080},
{0xe284a2, 0x0099}
static const uint16 win1258_from_unicode_tree_table[];
static const pg_mb_radix_tree win1258_from_unicode_tree =
{
win1258_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xcc, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x01ec, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0x84, /* b3_2_upper */
0x93, /* b3_3_lower */
0xba, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win1258_from_unicode_tree_table[618] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x004b, 0x008b, 0x00cb, 0x00f9, 0x0132, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x016c, 0x01ac,
/*** Two byte table, leaf: c2xx - offset 0x0004b ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* a8 */ 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* b8 */ 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
/*** Two byte table, leaf: c3xx - offset 0x0008b ***/
/* 80 */ 0x00c0, 0x00c1, 0x00c2, 0x0000, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* 88 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x0000, 0x00cd, 0x00ce, 0x00cf,
/* 90 */ 0x0000, 0x00d1, 0x0000, 0x00d3, 0x00d4, 0x0000, 0x00d6, 0x00d7,
/* 98 */ 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0000, 0x0000, 0x00df,
/* a0 */ 0x00e0, 0x00e1, 0x00e2, 0x0000, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0000, 0x00ed, 0x00ee, 0x00ef,
/* b0 */ 0x0000, 0x00f1, 0x0000, 0x00f3, 0x00f4, 0x0000, 0x00f6, 0x00f7,
/* b8 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0000, 0x0000, 0x00ff,
/*** Two byte table, leaf: c4xx - offset 0x000cb ***/
/* 80 */ 0x0000, 0x0000, 0x00c3, 0x00e3, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00d0, 0x00f0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 trailing zero values shared with next segment */
/*** Two byte table, leaf: c5xx - offset 0x000f9 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x008c, 0x009c, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x009f,
/* 7 trailing zero values shared with next segment */
/*** Two byte table, leaf: c6xx - offset 0x00132 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00d5, 0x00f5, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00dd,
/* b0 */ 0x00fd, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000,
/* 6 trailing zero values shared with next segment */
/*** Two byte table, leaf: cbxx - offset 0x0016c ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0098, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, leaf: ccxx - offset 0x001ac ***/
/* 80 */ 0x00cc, 0x00ec, 0x0000, 0x00de, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x00d2, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x00f2, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x001ec ***/
/* e2 */ 0x01ed,
/*** Three byte table, byte #2: e2xx - offset 0x001ed ***/
/* 80 */ 0x01f2, 0x0000, 0x021a, 0x0000, 0x0242,
/*** Three byte table, leaf: e280xx - offset 0x001f2 ***/
/* 93 */ 0x0096, 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082,
/* 9b */ 0x0000, 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b,
/*** Three byte table, leaf: e282xx - offset 0x0021a ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x00fe, 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e284xx - offset 0x00242 ***/
/* 93 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 9b */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099,
/* a3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ab */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b3 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,132 +1,154 @@
/* src/backend/utils/mb/Unicode/utf8_to_win866.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN866[ 128 ] = {
{0xc2a0, 0x00ff},
{0xc2a4, 0x00fd},
{0xc2b0, 0x00f8},
{0xc2b7, 0x00fa},
{0xd081, 0x00f0},
{0xd084, 0x00f2},
{0xd087, 0x00f4},
{0xd08e, 0x00f6},
{0xd090, 0x0080},
{0xd091, 0x0081},
{0xd092, 0x0082},
{0xd093, 0x0083},
{0xd094, 0x0084},
{0xd095, 0x0085},
{0xd096, 0x0086},
{0xd097, 0x0087},
{0xd098, 0x0088},
{0xd099, 0x0089},
{0xd09a, 0x008a},
{0xd09b, 0x008b},
{0xd09c, 0x008c},
{0xd09d, 0x008d},
{0xd09e, 0x008e},
{0xd09f, 0x008f},
{0xd0a0, 0x0090},
{0xd0a1, 0x0091},
{0xd0a2, 0x0092},
{0xd0a3, 0x0093},
{0xd0a4, 0x0094},
{0xd0a5, 0x0095},
{0xd0a6, 0x0096},
{0xd0a7, 0x0097},
{0xd0a8, 0x0098},
{0xd0a9, 0x0099},
{0xd0aa, 0x009a},
{0xd0ab, 0x009b},
{0xd0ac, 0x009c},
{0xd0ad, 0x009d},
{0xd0ae, 0x009e},
{0xd0af, 0x009f},
{0xd0b0, 0x00a0},
{0xd0b1, 0x00a1},
{0xd0b2, 0x00a2},
{0xd0b3, 0x00a3},
{0xd0b4, 0x00a4},
{0xd0b5, 0x00a5},
{0xd0b6, 0x00a6},
{0xd0b7, 0x00a7},
{0xd0b8, 0x00a8},
{0xd0b9, 0x00a9},
{0xd0ba, 0x00aa},
{0xd0bb, 0x00ab},
{0xd0bc, 0x00ac},
{0xd0bd, 0x00ad},
{0xd0be, 0x00ae},
{0xd0bf, 0x00af},
{0xd180, 0x00e0},
{0xd181, 0x00e1},
{0xd182, 0x00e2},
{0xd183, 0x00e3},
{0xd184, 0x00e4},
{0xd185, 0x00e5},
{0xd186, 0x00e6},
{0xd187, 0x00e7},
{0xd188, 0x00e8},
{0xd189, 0x00e9},
{0xd18a, 0x00ea},
{0xd18b, 0x00eb},
{0xd18c, 0x00ec},
{0xd18d, 0x00ed},
{0xd18e, 0x00ee},
{0xd18f, 0x00ef},
{0xd191, 0x00f1},
{0xd194, 0x00f3},
{0xd197, 0x00f5},
{0xd19e, 0x00f7},
{0xe28496, 0x00fc},
{0xe28899, 0x00f9},
{0xe2889a, 0x00fb},
{0xe29480, 0x00c4},
{0xe29482, 0x00b3},
{0xe2948c, 0x00da},
{0xe29490, 0x00bf},
{0xe29494, 0x00c0},
{0xe29498, 0x00d9},
{0xe2949c, 0x00c3},
{0xe294a4, 0x00b4},
{0xe294ac, 0x00c2},
{0xe294b4, 0x00c1},
{0xe294bc, 0x00c5},
{0xe29590, 0x00cd},
{0xe29591, 0x00ba},
{0xe29592, 0x00d5},
{0xe29593, 0x00d6},
{0xe29594, 0x00c9},
{0xe29595, 0x00b8},
{0xe29596, 0x00b7},
{0xe29597, 0x00bb},
{0xe29598, 0x00d4},
{0xe29599, 0x00d3},
{0xe2959a, 0x00c8},
{0xe2959b, 0x00be},
{0xe2959c, 0x00bd},
{0xe2959d, 0x00bc},
{0xe2959e, 0x00c6},
{0xe2959f, 0x00c7},
{0xe295a0, 0x00cc},
{0xe295a1, 0x00b5},
{0xe295a2, 0x00b6},
{0xe295a3, 0x00b9},
{0xe295a4, 0x00d1},
{0xe295a5, 0x00d2},
{0xe295a6, 0x00cb},
{0xe295a7, 0x00cf},
{0xe295a8, 0x00d0},
{0xe295a9, 0x00ca},
{0xe295aa, 0x00d8},
{0xe295ab, 0x00d7},
{0xe295ac, 0x00ce},
{0xe29680, 0x00df},
{0xe29684, 0x00dc},
{0xe29688, 0x00db},
{0xe2968c, 0x00dd},
{0xe29690, 0x00de},
{0xe29691, 0x00b0},
{0xe29692, 0x00b1},
{0xe29693, 0x00b2},
{0xe296a0, 0x00fe}
static const uint16 win866_from_unicode_tree_table[];
static const pg_mb_radix_tree win866_from_unicode_tree =
{
win866_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xd1, /* b2_1_upper */
0x80, /* b2_2_lower */
0xbf, /* b2_2_upper */
0x010f, /* offset of table for 3-byte inputs */
0xe2, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x84, /* b3_2_lower */
0x96, /* b3_2_upper */
0x80, /* b3_3_lower */
0xbc, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win866_from_unicode_tree_table[571] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0050, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* ca */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008f, 0x00cf,
/*** Two byte table, leaf: c2xx - offset 0x00050 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00ff, 0x0000, 0x0000, 0x0000, 0x00fd, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x00f8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00fa,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Two byte table, leaf: d0xx - offset 0x0008f ***/
/* 80 */ 0x0000, 0x00f0, 0x0000, 0x0000, 0x00f2, 0x0000, 0x0000, 0x00f4,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00f6, 0x0000,
/* 90 */ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
/* 98 */ 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
/* a0 */ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
/* a8 */ 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
/* b0 */ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* b8 */ 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/*** Two byte table, leaf: d1xx - offset 0x000cf ***/
/* 80 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* 88 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* 90 */ 0x0000, 0x00f1, 0x0000, 0x0000, 0x00f3, 0x0000, 0x0000, 0x00f5,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00f7, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, byte #1: xx - offset 0x0010f ***/
/* e2 */ 0x0110,
/*** Three byte table, byte #2: e2xx - offset 0x00110 ***/
/* 84 */ 0x0123, 0x0000, 0x0000, 0x0000, 0x0147, 0x0000, 0x0000, 0x0000,
/* 8c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 94 */ 0x0184, 0x01c1, 0x01fe,
/*** Three byte table, leaf: e284xx - offset 0x00123 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00fc, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000,
/* 25 trailing zero values shared with next segment */
/*** Three byte table, leaf: e288xx - offset 0x00147 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x00f9, 0x00fb, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e294xx - offset 0x00184 ***/
/* 80 */ 0x00c4, 0x0000, 0x00b3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00da, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00bf, 0x0000, 0x0000, 0x0000, 0x00c0, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x00d9, 0x0000, 0x0000, 0x0000, 0x00c3, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00b4, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c2, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c1, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00c5,
/*** Three byte table, leaf: e295xx - offset 0x001c1 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00cd, 0x00ba, 0x00d5, 0x00d6, 0x00c9, 0x00b8, 0x00b7, 0x00bb,
/* 98 */ 0x00d4, 0x00d3, 0x00c8, 0x00be, 0x00bd, 0x00bc, 0x00c6, 0x00c7,
/* a0 */ 0x00cc, 0x00b5, 0x00b6, 0x00b9, 0x00d1, 0x00d2, 0x00cb, 0x00cf,
/* a8 */ 0x00d0, 0x00ca, 0x00d8, 0x00d7, 0x00ce, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e296xx - offset 0x001fe ***/
/* 80 */ 0x00df, 0x0000, 0x0000, 0x0000, 0x00dc, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x00db, 0x0000, 0x0000, 0x0000, 0x00dd, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x00de, 0x00b0, 0x00b1, 0x00b2, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x00fe, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,101 +1,130 @@
/* src/backend/utils/mb/Unicode/utf8_to_win874.map */
/* This file is generated by UCS_to_most.pl */
static const pg_utf_to_local ULmapWIN874[ 97 ] = {
{0xc2a0, 0x00a0},
{0xe0b881, 0x00a1},
{0xe0b882, 0x00a2},
{0xe0b883, 0x00a3},
{0xe0b884, 0x00a4},
{0xe0b885, 0x00a5},
{0xe0b886, 0x00a6},
{0xe0b887, 0x00a7},
{0xe0b888, 0x00a8},
{0xe0b889, 0x00a9},
{0xe0b88a, 0x00aa},
{0xe0b88b, 0x00ab},
{0xe0b88c, 0x00ac},
{0xe0b88d, 0x00ad},
{0xe0b88e, 0x00ae},
{0xe0b88f, 0x00af},
{0xe0b890, 0x00b0},
{0xe0b891, 0x00b1},
{0xe0b892, 0x00b2},
{0xe0b893, 0x00b3},
{0xe0b894, 0x00b4},
{0xe0b895, 0x00b5},
{0xe0b896, 0x00b6},
{0xe0b897, 0x00b7},
{0xe0b898, 0x00b8},
{0xe0b899, 0x00b9},
{0xe0b89a, 0x00ba},
{0xe0b89b, 0x00bb},
{0xe0b89c, 0x00bc},
{0xe0b89d, 0x00bd},
{0xe0b89e, 0x00be},
{0xe0b89f, 0x00bf},
{0xe0b8a0, 0x00c0},
{0xe0b8a1, 0x00c1},
{0xe0b8a2, 0x00c2},
{0xe0b8a3, 0x00c3},
{0xe0b8a4, 0x00c4},
{0xe0b8a5, 0x00c5},
{0xe0b8a6, 0x00c6},
{0xe0b8a7, 0x00c7},
{0xe0b8a8, 0x00c8},
{0xe0b8a9, 0x00c9},
{0xe0b8aa, 0x00ca},
{0xe0b8ab, 0x00cb},
{0xe0b8ac, 0x00cc},
{0xe0b8ad, 0x00cd},
{0xe0b8ae, 0x00ce},
{0xe0b8af, 0x00cf},
{0xe0b8b0, 0x00d0},
{0xe0b8b1, 0x00d1},
{0xe0b8b2, 0x00d2},
{0xe0b8b3, 0x00d3},
{0xe0b8b4, 0x00d4},
{0xe0b8b5, 0x00d5},
{0xe0b8b6, 0x00d6},
{0xe0b8b7, 0x00d7},
{0xe0b8b8, 0x00d8},
{0xe0b8b9, 0x00d9},
{0xe0b8ba, 0x00da},
{0xe0b8bf, 0x00df},
{0xe0b980, 0x00e0},
{0xe0b981, 0x00e1},
{0xe0b982, 0x00e2},
{0xe0b983, 0x00e3},
{0xe0b984, 0x00e4},
{0xe0b985, 0x00e5},
{0xe0b986, 0x00e6},
{0xe0b987, 0x00e7},
{0xe0b988, 0x00e8},
{0xe0b989, 0x00e9},
{0xe0b98a, 0x00ea},
{0xe0b98b, 0x00eb},
{0xe0b98c, 0x00ec},
{0xe0b98d, 0x00ed},
{0xe0b98e, 0x00ee},
{0xe0b98f, 0x00ef},
{0xe0b990, 0x00f0},
{0xe0b991, 0x00f1},
{0xe0b992, 0x00f2},
{0xe0b993, 0x00f3},
{0xe0b994, 0x00f4},
{0xe0b995, 0x00f5},
{0xe0b996, 0x00f6},
{0xe0b997, 0x00f7},
{0xe0b998, 0x00f8},
{0xe0b999, 0x00f9},
{0xe0b99a, 0x00fa},
{0xe0b99b, 0x00fb},
{0xe28093, 0x0096},
{0xe28094, 0x0097},
{0xe28098, 0x0091},
{0xe28099, 0x0092},
{0xe2809c, 0x0093},
{0xe2809d, 0x0094},
{0xe280a2, 0x0095},
{0xe280a6, 0x0085},
{0xe282ac, 0x0080}
static const uint16 win874_from_unicode_tree_table[];
static const pg_mb_radix_tree win874_from_unicode_tree =
{
win874_from_unicode_tree_table,
NULL, /* 32-bit table not used */
0x0000, /* offset of table for 1-byte inputs */
0x00, /* b1_lower */
0x00, /* b1_upper */
0x0040, /* offset of table for 2-byte inputs */
0xc2, /* b2_1_lower */
0xc2, /* b2_1_upper */
0xa0, /* b2_2_lower */
0xa0, /* b2_2_upper */
0x0042, /* offset of table for 3-byte inputs */
0xe0, /* b3_1_lower */
0xe2, /* b3_1_upper */
0x80, /* b3_2_lower */
0xb9, /* b3_2_upper */
0x80, /* b3_3_lower */
0xbf, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint16 win874_from_unicode_tree_table[421] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Two byte table, byte #1: xx - offset 0x00040 ***/
/* c2 */ 0x0041,
/*** Two byte table, leaf: c2xx - offset 0x00041 ***/
/* a0 */ 0x00a0,
/*** Three byte table, byte #1: xx - offset 0x00042 ***/
/* e0 */ 0x0045, 0x0000, 0x007f,
/*** Three byte table, byte #2: e0xx - offset 0x00045 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x00b8, 0x00f8,
/*** Three byte table, byte #2: e2xx - offset 0x0007f ***/
/* 80 */ 0x0125, 0x0000, 0x0165, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000,
/* 1 trailing zero values shared with next segment */
/*** Three byte table, leaf: e0b8xx - offset 0x000b8 ***/
/* 80 */ 0x0000, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
/* 88 */ 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
/* 90 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
/* 98 */ 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
/* a0 */ 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
/* a8 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
/* b0 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
/* b8 */ 0x00d8, 0x00d9, 0x00da, 0x0000, 0x0000, 0x0000, 0x0000, 0x00df,
/*** Three byte table, leaf: e0b9xx - offset 0x000f8 ***/
/* 80 */ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
/* 88 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
/* 90 */ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
/* 98 */ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 19 trailing zero values shared with next segment */
/*** Three byte table, leaf: e280xx - offset 0x00125 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0096, 0x0097, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0091, 0x0092, 0x0000, 0x0000, 0x0093, 0x0094, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0095, 0x0000, 0x0000, 0x0000, 0x0085, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/*** Three byte table, leaf: e282xx - offset 0x00165 ***/
/* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0080, 0x0000, 0x0000, 0x0000,
/* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
/* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};

View File

@ -1,127 +1,111 @@
/* src/backend/utils/mb/Unicode/win1250_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1250[ 123 ] = {
{0x0080, 0xe282ac},
{0x0082, 0xe2809a},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0089, 0xe280b0},
{0x008a, 0xc5a0},
{0x008b, 0xe280b9},
{0x008c, 0xc59a},
{0x008d, 0xc5a4},
{0x008e, 0xc5bd},
{0x008f, 0xc5b9},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0099, 0xe284a2},
{0x009a, 0xc5a1},
{0x009b, 0xe280ba},
{0x009c, 0xc59b},
{0x009d, 0xc5a5},
{0x009e, 0xc5be},
{0x009f, 0xc5ba},
{0x00a0, 0xc2a0},
{0x00a1, 0xcb87},
{0x00a2, 0xcb98},
{0x00a3, 0xc581},
{0x00a4, 0xc2a4},
{0x00a5, 0xc484},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xc59e},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc5bb},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xcb9b},
{0x00b3, 0xc582},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc485},
{0x00ba, 0xc59f},
{0x00bb, 0xc2bb},
{0x00bc, 0xc4bd},
{0x00bd, 0xcb9d},
{0x00be, 0xc4be},
{0x00bf, 0xc5bc},
{0x00c0, 0xc594},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc482},
{0x00c4, 0xc384},
{0x00c5, 0xc4b9},
{0x00c6, 0xc486},
{0x00c7, 0xc387},
{0x00c8, 0xc48c},
{0x00c9, 0xc389},
{0x00ca, 0xc498},
{0x00cb, 0xc38b},
{0x00cc, 0xc49a},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc48e},
{0x00d0, 0xc490},
{0x00d1, 0xc583},
{0x00d2, 0xc587},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc590},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc598},
{0x00d9, 0xc5ae},
{0x00da, 0xc39a},
{0x00db, 0xc5b0},
{0x00dc, 0xc39c},
{0x00dd, 0xc39d},
{0x00de, 0xc5a2},
{0x00df, 0xc39f},
{0x00e0, 0xc595},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc483},
{0x00e4, 0xc3a4},
{0x00e5, 0xc4ba},
{0x00e6, 0xc487},
{0x00e7, 0xc3a7},
{0x00e8, 0xc48d},
{0x00e9, 0xc3a9},
{0x00ea, 0xc499},
{0x00eb, 0xc3ab},
{0x00ec, 0xc49b},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc48f},
{0x00f0, 0xc491},
{0x00f1, 0xc584},
{0x00f2, 0xc588},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc591},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc599},
{0x00f9, 0xc5af},
{0x00fa, 0xc3ba},
{0x00fb, 0xc5b1},
{0x00fc, 0xc3bc},
{0x00fd, 0xc3bd},
{0x00fe, 0xc5a3},
{0x00ff, 0xcb99}
static const uint32 win1250_to_unicode_tree_table[];
static const pg_mb_radix_tree win1250_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1250_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1250_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe282ac, 0x000000, 0xe2809a, 0x000000,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x000000, 0xe280b0, 0x00c5a0, 0xe280b9,
/* 8c */ 0x00c59a, 0x00c5a4, 0x00c5bd, 0x00c5b9,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x000000, 0xe284a2, 0x00c5a1, 0xe280ba,
/* 9c */ 0x00c59b, 0x00c5a5, 0x00c5be, 0x00c5ba,
/* a0 */ 0x00c2a0, 0x00cb87, 0x00cb98, 0x00c581,
/* a4 */ 0x00c2a4, 0x00c484, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00c59e, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c5bb,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00cb9b, 0x00c582,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c2b8, 0x00c485, 0x00c59f, 0x00c2bb,
/* bc */ 0x00c4bd, 0x00cb9d, 0x00c4be, 0x00c5bc,
/* c0 */ 0x00c594, 0x00c381, 0x00c382, 0x00c482,
/* c4 */ 0x00c384, 0x00c4b9, 0x00c486, 0x00c387,
/* c8 */ 0x00c48c, 0x00c389, 0x00c498, 0x00c38b,
/* cc */ 0x00c49a, 0x00c38d, 0x00c38e, 0x00c48e,
/* d0 */ 0x00c490, 0x00c583, 0x00c587, 0x00c393,
/* d4 */ 0x00c394, 0x00c590, 0x00c396, 0x00c397,
/* d8 */ 0x00c598, 0x00c5ae, 0x00c39a, 0x00c5b0,
/* dc */ 0x00c39c, 0x00c39d, 0x00c5a2, 0x00c39f,
/* e0 */ 0x00c595, 0x00c3a1, 0x00c3a2, 0x00c483,
/* e4 */ 0x00c3a4, 0x00c4ba, 0x00c487, 0x00c3a7,
/* e8 */ 0x00c48d, 0x00c3a9, 0x00c499, 0x00c3ab,
/* ec */ 0x00c49b, 0x00c3ad, 0x00c3ae, 0x00c48f,
/* f0 */ 0x00c491, 0x00c584, 0x00c588, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c591, 0x00c3b6, 0x00c3b7,
/* f8 */ 0x00c599, 0x00c5af, 0x00c3ba, 0x00c5b1,
/* fc */ 0x00c3bc, 0x00c3bd, 0x00c5a3, 0x00cb99
};

View File

@ -1,131 +1,111 @@
/* src/backend/utils/mb/Unicode/win1251_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1251[ 127 ] = {
{0x0080, 0xd082},
{0x0081, 0xd083},
{0x0082, 0xe2809a},
{0x0083, 0xd193},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0088, 0xe282ac},
{0x0089, 0xe280b0},
{0x008a, 0xd089},
{0x008b, 0xe280b9},
{0x008c, 0xd08a},
{0x008d, 0xd08c},
{0x008e, 0xd08b},
{0x008f, 0xd08f},
{0x0090, 0xd192},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0099, 0xe284a2},
{0x009a, 0xd199},
{0x009b, 0xe280ba},
{0x009c, 0xd19a},
{0x009d, 0xd19c},
{0x009e, 0xd19b},
{0x009f, 0xd19f},
{0x00a0, 0xc2a0},
{0x00a1, 0xd08e},
{0x00a2, 0xd19e},
{0x00a3, 0xd088},
{0x00a4, 0xc2a4},
{0x00a5, 0xd290},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xd081},
{0x00a9, 0xc2a9},
{0x00aa, 0xd084},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xd087},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xd086},
{0x00b3, 0xd196},
{0x00b4, 0xd291},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xd191},
{0x00b9, 0xe28496},
{0x00ba, 0xd194},
{0x00bb, 0xc2bb},
{0x00bc, 0xd198},
{0x00bd, 0xd085},
{0x00be, 0xd195},
{0x00bf, 0xd197},
{0x00c0, 0xd090},
{0x00c1, 0xd091},
{0x00c2, 0xd092},
{0x00c3, 0xd093},
{0x00c4, 0xd094},
{0x00c5, 0xd095},
{0x00c6, 0xd096},
{0x00c7, 0xd097},
{0x00c8, 0xd098},
{0x00c9, 0xd099},
{0x00ca, 0xd09a},
{0x00cb, 0xd09b},
{0x00cc, 0xd09c},
{0x00cd, 0xd09d},
{0x00ce, 0xd09e},
{0x00cf, 0xd09f},
{0x00d0, 0xd0a0},
{0x00d1, 0xd0a1},
{0x00d2, 0xd0a2},
{0x00d3, 0xd0a3},
{0x00d4, 0xd0a4},
{0x00d5, 0xd0a5},
{0x00d6, 0xd0a6},
{0x00d7, 0xd0a7},
{0x00d8, 0xd0a8},
{0x00d9, 0xd0a9},
{0x00da, 0xd0aa},
{0x00db, 0xd0ab},
{0x00dc, 0xd0ac},
{0x00dd, 0xd0ad},
{0x00de, 0xd0ae},
{0x00df, 0xd0af},
{0x00e0, 0xd0b0},
{0x00e1, 0xd0b1},
{0x00e2, 0xd0b2},
{0x00e3, 0xd0b3},
{0x00e4, 0xd0b4},
{0x00e5, 0xd0b5},
{0x00e6, 0xd0b6},
{0x00e7, 0xd0b7},
{0x00e8, 0xd0b8},
{0x00e9, 0xd0b9},
{0x00ea, 0xd0ba},
{0x00eb, 0xd0bb},
{0x00ec, 0xd0bc},
{0x00ed, 0xd0bd},
{0x00ee, 0xd0be},
{0x00ef, 0xd0bf},
{0x00f0, 0xd180},
{0x00f1, 0xd181},
{0x00f2, 0xd182},
{0x00f3, 0xd183},
{0x00f4, 0xd184},
{0x00f5, 0xd185},
{0x00f6, 0xd186},
{0x00f7, 0xd187},
{0x00f8, 0xd188},
{0x00f9, 0xd189},
{0x00fa, 0xd18a},
{0x00fb, 0xd18b},
{0x00fc, 0xd18c},
{0x00fd, 0xd18d},
{0x00fe, 0xd18e},
{0x00ff, 0xd18f}
static const uint32 win1251_to_unicode_tree_table[];
static const pg_mb_radix_tree win1251_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1251_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1251_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00d082, 0x00d083, 0xe2809a, 0x00d193,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0xe282ac, 0xe280b0, 0x00d089, 0xe280b9,
/* 8c */ 0x00d08a, 0x00d08c, 0x00d08b, 0x00d08f,
/* 90 */ 0x00d192, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x000000, 0xe284a2, 0x00d199, 0xe280ba,
/* 9c */ 0x00d19a, 0x00d19c, 0x00d19b, 0x00d19f,
/* a0 */ 0x00c2a0, 0x00d08e, 0x00d19e, 0x00d088,
/* a4 */ 0x00c2a4, 0x00d290, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00d081, 0x00c2a9, 0x00d084, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00d087,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00d086, 0x00d196,
/* b4 */ 0x00d291, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00d191, 0xe28496, 0x00d194, 0x00c2bb,
/* bc */ 0x00d198, 0x00d085, 0x00d195, 0x00d197,
/* c0 */ 0x00d090, 0x00d091, 0x00d092, 0x00d093,
/* c4 */ 0x00d094, 0x00d095, 0x00d096, 0x00d097,
/* c8 */ 0x00d098, 0x00d099, 0x00d09a, 0x00d09b,
/* cc */ 0x00d09c, 0x00d09d, 0x00d09e, 0x00d09f,
/* d0 */ 0x00d0a0, 0x00d0a1, 0x00d0a2, 0x00d0a3,
/* d4 */ 0x00d0a4, 0x00d0a5, 0x00d0a6, 0x00d0a7,
/* d8 */ 0x00d0a8, 0x00d0a9, 0x00d0aa, 0x00d0ab,
/* dc */ 0x00d0ac, 0x00d0ad, 0x00d0ae, 0x00d0af,
/* e0 */ 0x00d0b0, 0x00d0b1, 0x00d0b2, 0x00d0b3,
/* e4 */ 0x00d0b4, 0x00d0b5, 0x00d0b6, 0x00d0b7,
/* e8 */ 0x00d0b8, 0x00d0b9, 0x00d0ba, 0x00d0bb,
/* ec */ 0x00d0bc, 0x00d0bd, 0x00d0be, 0x00d0bf,
/* f0 */ 0x00d180, 0x00d181, 0x00d182, 0x00d183,
/* f4 */ 0x00d184, 0x00d185, 0x00d186, 0x00d187,
/* f8 */ 0x00d188, 0x00d189, 0x00d18a, 0x00d18b,
/* fc */ 0x00d18c, 0x00d18d, 0x00d18e, 0x00d18f
};

View File

@ -1,127 +1,111 @@
/* src/backend/utils/mb/Unicode/win1252_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1252[ 123 ] = {
{0x0080, 0xe282ac},
{0x0082, 0xe2809a},
{0x0083, 0xc692},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0088, 0xcb86},
{0x0089, 0xe280b0},
{0x008a, 0xc5a0},
{0x008b, 0xe280b9},
{0x008c, 0xc592},
{0x008e, 0xc5bd},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0098, 0xcb9c},
{0x0099, 0xe284a2},
{0x009a, 0xc5a1},
{0x009b, 0xe280ba},
{0x009c, 0xc593},
{0x009e, 0xc5be},
{0x009f, 0xc5b8},
{0x00a0, 0xc2a0},
{0x00a1, 0xc2a1},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xc2aa},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc2ba},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xc2bf},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc383},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xc38c},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc390},
{0x00d1, 0xc391},
{0x00d2, 0xc392},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc398},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc39d},
{0x00de, 0xc39e},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc3a3},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xc3ac},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc3b0},
{0x00f1, 0xc3b1},
{0x00f2, 0xc3b2},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc3b8},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc3bd},
{0x00fe, 0xc3be},
{0x00ff, 0xc3bf}
static const uint32 win1252_to_unicode_tree_table[];
static const pg_mb_radix_tree win1252_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1252_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1252_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe282ac, 0x000000, 0xe2809a, 0x00c692,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x00cb86, 0xe280b0, 0x00c5a0, 0xe280b9,
/* 8c */ 0x00c592, 0x000000, 0x00c5bd, 0x000000,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x00cb9c, 0xe284a2, 0x00c5a1, 0xe280ba,
/* 9c */ 0x00c593, 0x000000, 0x00c5be, 0x00c5b8,
/* a0 */ 0x00c2a0, 0x00c2a1, 0x00c2a2, 0x00c2a3,
/* a4 */ 0x00c2a4, 0x00c2a5, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00c2aa, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c2af,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c2b8, 0x00c2b9, 0x00c2ba, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x00c2bf,
/* c0 */ 0x00c380, 0x00c381, 0x00c382, 0x00c383,
/* c4 */ 0x00c384, 0x00c385, 0x00c386, 0x00c387,
/* c8 */ 0x00c388, 0x00c389, 0x00c38a, 0x00c38b,
/* cc */ 0x00c38c, 0x00c38d, 0x00c38e, 0x00c38f,
/* d0 */ 0x00c390, 0x00c391, 0x00c392, 0x00c393,
/* d4 */ 0x00c394, 0x00c395, 0x00c396, 0x00c397,
/* d8 */ 0x00c398, 0x00c399, 0x00c39a, 0x00c39b,
/* dc */ 0x00c39c, 0x00c39d, 0x00c39e, 0x00c39f,
/* e0 */ 0x00c3a0, 0x00c3a1, 0x00c3a2, 0x00c3a3,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c3a6, 0x00c3a7,
/* e8 */ 0x00c3a8, 0x00c3a9, 0x00c3aa, 0x00c3ab,
/* ec */ 0x00c3ac, 0x00c3ad, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00c3b0, 0x00c3b1, 0x00c3b2, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c3b5, 0x00c3b6, 0x00c3b7,
/* f8 */ 0x00c3b8, 0x00c3b9, 0x00c3ba, 0x00c3bb,
/* fc */ 0x00c3bc, 0x00c3bd, 0x00c3be, 0x00c3bf
};

View File

@ -1,115 +1,111 @@
/* src/backend/utils/mb/Unicode/win1253_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1253[ 111 ] = {
{0x0080, 0xe282ac},
{0x0082, 0xe2809a},
{0x0083, 0xc692},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0089, 0xe280b0},
{0x008b, 0xe280b9},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0099, 0xe284a2},
{0x009b, 0xe280ba},
{0x00a0, 0xc2a0},
{0x00a1, 0xce85},
{0x00a2, 0xce86},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xe28095},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xce84},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xce88},
{0x00b9, 0xce89},
{0x00ba, 0xce8a},
{0x00bb, 0xc2bb},
{0x00bc, 0xce8c},
{0x00bd, 0xc2bd},
{0x00be, 0xce8e},
{0x00bf, 0xce8f},
{0x00c0, 0xce90},
{0x00c1, 0xce91},
{0x00c2, 0xce92},
{0x00c3, 0xce93},
{0x00c4, 0xce94},
{0x00c5, 0xce95},
{0x00c6, 0xce96},
{0x00c7, 0xce97},
{0x00c8, 0xce98},
{0x00c9, 0xce99},
{0x00ca, 0xce9a},
{0x00cb, 0xce9b},
{0x00cc, 0xce9c},
{0x00cd, 0xce9d},
{0x00ce, 0xce9e},
{0x00cf, 0xce9f},
{0x00d0, 0xcea0},
{0x00d1, 0xcea1},
{0x00d3, 0xcea3},
{0x00d4, 0xcea4},
{0x00d5, 0xcea5},
{0x00d6, 0xcea6},
{0x00d7, 0xcea7},
{0x00d8, 0xcea8},
{0x00d9, 0xcea9},
{0x00da, 0xceaa},
{0x00db, 0xceab},
{0x00dc, 0xceac},
{0x00dd, 0xcead},
{0x00de, 0xceae},
{0x00df, 0xceaf},
{0x00e0, 0xceb0},
{0x00e1, 0xceb1},
{0x00e2, 0xceb2},
{0x00e3, 0xceb3},
{0x00e4, 0xceb4},
{0x00e5, 0xceb5},
{0x00e6, 0xceb6},
{0x00e7, 0xceb7},
{0x00e8, 0xceb8},
{0x00e9, 0xceb9},
{0x00ea, 0xceba},
{0x00eb, 0xcebb},
{0x00ec, 0xcebc},
{0x00ed, 0xcebd},
{0x00ee, 0xcebe},
{0x00ef, 0xcebf},
{0x00f0, 0xcf80},
{0x00f1, 0xcf81},
{0x00f2, 0xcf82},
{0x00f3, 0xcf83},
{0x00f4, 0xcf84},
{0x00f5, 0xcf85},
{0x00f6, 0xcf86},
{0x00f7, 0xcf87},
{0x00f8, 0xcf88},
{0x00f9, 0xcf89},
{0x00fa, 0xcf8a},
{0x00fb, 0xcf8b},
{0x00fc, 0xcf8c},
{0x00fd, 0xcf8d},
{0x00fe, 0xcf8e}
static const uint32 win1253_to_unicode_tree_table[];
static const pg_mb_radix_tree win1253_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1253_to_unicode_tree_table,
0x007f, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xfe, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1253_to_unicode_tree_table[254] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x0007f ***/
/* 80 */ 0xe282ac, 0x000000, 0xe2809a, 0x00c692,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x000000, 0xe280b0, 0x000000, 0xe280b9,
/* 8c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x000000, 0xe284a2, 0x000000, 0xe280ba,
/* 9c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* a0 */ 0x00c2a0, 0x00ce85, 0x00ce86, 0x00c2a3,
/* a4 */ 0x00c2a4, 0x00c2a5, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x000000, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0xe28095,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00ce84, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00ce88, 0x00ce89, 0x00ce8a, 0x00c2bb,
/* bc */ 0x00ce8c, 0x00c2bd, 0x00ce8e, 0x00ce8f,
/* c0 */ 0x00ce90, 0x00ce91, 0x00ce92, 0x00ce93,
/* c4 */ 0x00ce94, 0x00ce95, 0x00ce96, 0x00ce97,
/* c8 */ 0x00ce98, 0x00ce99, 0x00ce9a, 0x00ce9b,
/* cc */ 0x00ce9c, 0x00ce9d, 0x00ce9e, 0x00ce9f,
/* d0 */ 0x00cea0, 0x00cea1, 0x000000, 0x00cea3,
/* d4 */ 0x00cea4, 0x00cea5, 0x00cea6, 0x00cea7,
/* d8 */ 0x00cea8, 0x00cea9, 0x00ceaa, 0x00ceab,
/* dc */ 0x00ceac, 0x00cead, 0x00ceae, 0x00ceaf,
/* e0 */ 0x00ceb0, 0x00ceb1, 0x00ceb2, 0x00ceb3,
/* e4 */ 0x00ceb4, 0x00ceb5, 0x00ceb6, 0x00ceb7,
/* e8 */ 0x00ceb8, 0x00ceb9, 0x00ceba, 0x00cebb,
/* ec */ 0x00cebc, 0x00cebd, 0x00cebe, 0x00cebf,
/* f0 */ 0x00cf80, 0x00cf81, 0x00cf82, 0x00cf83,
/* f4 */ 0x00cf84, 0x00cf85, 0x00cf86, 0x00cf87,
/* f8 */ 0x00cf88, 0x00cf89, 0x00cf8a, 0x00cf8b,
/* fc */ 0x00cf8c, 0x00cf8d, 0x00cf8e
};

View File

@ -1,125 +1,111 @@
/* src/backend/utils/mb/Unicode/win1254_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1254[ 121 ] = {
{0x0080, 0xe282ac},
{0x0082, 0xe2809a},
{0x0083, 0xc692},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0088, 0xcb86},
{0x0089, 0xe280b0},
{0x008a, 0xc5a0},
{0x008b, 0xe280b9},
{0x008c, 0xc592},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0098, 0xcb9c},
{0x0099, 0xe284a2},
{0x009a, 0xc5a1},
{0x009b, 0xe280ba},
{0x009c, 0xc593},
{0x009f, 0xc5b8},
{0x00a0, 0xc2a0},
{0x00a1, 0xc2a1},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xc2aa},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc2ba},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xc2bf},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc383},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xc38c},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc49e},
{0x00d1, 0xc391},
{0x00d2, 0xc392},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc398},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc4b0},
{0x00de, 0xc59e},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc3a3},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xc3ac},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc49f},
{0x00f1, 0xc3b1},
{0x00f2, 0xc3b2},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc3b8},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc4b1},
{0x00fe, 0xc59f},
{0x00ff, 0xc3bf}
static const uint32 win1254_to_unicode_tree_table[];
static const pg_mb_radix_tree win1254_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1254_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1254_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe282ac, 0x000000, 0xe2809a, 0x00c692,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x00cb86, 0xe280b0, 0x00c5a0, 0xe280b9,
/* 8c */ 0x00c592, 0x000000, 0x000000, 0x000000,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x00cb9c, 0xe284a2, 0x00c5a1, 0xe280ba,
/* 9c */ 0x00c593, 0x000000, 0x000000, 0x00c5b8,
/* a0 */ 0x00c2a0, 0x00c2a1, 0x00c2a2, 0x00c2a3,
/* a4 */ 0x00c2a4, 0x00c2a5, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00c2aa, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c2af,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c2b8, 0x00c2b9, 0x00c2ba, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x00c2bf,
/* c0 */ 0x00c380, 0x00c381, 0x00c382, 0x00c383,
/* c4 */ 0x00c384, 0x00c385, 0x00c386, 0x00c387,
/* c8 */ 0x00c388, 0x00c389, 0x00c38a, 0x00c38b,
/* cc */ 0x00c38c, 0x00c38d, 0x00c38e, 0x00c38f,
/* d0 */ 0x00c49e, 0x00c391, 0x00c392, 0x00c393,
/* d4 */ 0x00c394, 0x00c395, 0x00c396, 0x00c397,
/* d8 */ 0x00c398, 0x00c399, 0x00c39a, 0x00c39b,
/* dc */ 0x00c39c, 0x00c4b0, 0x00c59e, 0x00c39f,
/* e0 */ 0x00c3a0, 0x00c3a1, 0x00c3a2, 0x00c3a3,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c3a6, 0x00c3a7,
/* e8 */ 0x00c3a8, 0x00c3a9, 0x00c3aa, 0x00c3ab,
/* ec */ 0x00c3ac, 0x00c3ad, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00c49f, 0x00c3b1, 0x00c3b2, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c3b5, 0x00c3b6, 0x00c3b7,
/* f8 */ 0x00c3b8, 0x00c3b9, 0x00c3ba, 0x00c3bb,
/* fc */ 0x00c3bc, 0x00c4b1, 0x00c59f, 0x00c3bf
};

View File

@ -1,109 +1,111 @@
/* src/backend/utils/mb/Unicode/win1255_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1255[ 105 ] = {
{0x0080, 0xe282ac},
{0x0082, 0xe2809a},
{0x0083, 0xc692},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0088, 0xcb86},
{0x0089, 0xe280b0},
{0x008b, 0xe280b9},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0098, 0xcb9c},
{0x0099, 0xe284a2},
{0x009b, 0xe280ba},
{0x00a0, 0xc2a0},
{0x00a1, 0xc2a1},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xe282aa},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xc397},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc3b7},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xc2bf},
{0x00c0, 0xd6b0},
{0x00c1, 0xd6b1},
{0x00c2, 0xd6b2},
{0x00c3, 0xd6b3},
{0x00c4, 0xd6b4},
{0x00c5, 0xd6b5},
{0x00c6, 0xd6b6},
{0x00c7, 0xd6b7},
{0x00c8, 0xd6b8},
{0x00c9, 0xd6b9},
{0x00cb, 0xd6bb},
{0x00cc, 0xd6bc},
{0x00cd, 0xd6bd},
{0x00ce, 0xd6be},
{0x00cf, 0xd6bf},
{0x00d0, 0xd780},
{0x00d1, 0xd781},
{0x00d2, 0xd782},
{0x00d3, 0xd783},
{0x00d4, 0xd7b0},
{0x00d5, 0xd7b1},
{0x00d6, 0xd7b2},
{0x00d7, 0xd7b3},
{0x00d8, 0xd7b4},
{0x00e0, 0xd790},
{0x00e1, 0xd791},
{0x00e2, 0xd792},
{0x00e3, 0xd793},
{0x00e4, 0xd794},
{0x00e5, 0xd795},
{0x00e6, 0xd796},
{0x00e7, 0xd797},
{0x00e8, 0xd798},
{0x00e9, 0xd799},
{0x00ea, 0xd79a},
{0x00eb, 0xd79b},
{0x00ec, 0xd79c},
{0x00ed, 0xd79d},
{0x00ee, 0xd79e},
{0x00ef, 0xd79f},
{0x00f0, 0xd7a0},
{0x00f1, 0xd7a1},
{0x00f2, 0xd7a2},
{0x00f3, 0xd7a3},
{0x00f4, 0xd7a4},
{0x00f5, 0xd7a5},
{0x00f6, 0xd7a6},
{0x00f7, 0xd7a7},
{0x00f8, 0xd7a8},
{0x00f9, 0xd7a9},
{0x00fa, 0xd7aa},
{0x00fd, 0xe2808e},
{0x00fe, 0xe2808f}
static const uint32 win1255_to_unicode_tree_table[];
static const pg_mb_radix_tree win1255_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1255_to_unicode_tree_table,
0x007f, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xfe, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1255_to_unicode_tree_table[254] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x0007f ***/
/* 80 */ 0xe282ac, 0x000000, 0xe2809a, 0x00c692,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x00cb86, 0xe280b0, 0x000000, 0xe280b9,
/* 8c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x00cb9c, 0xe284a2, 0x000000, 0xe280ba,
/* 9c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* a0 */ 0x00c2a0, 0x00c2a1, 0x00c2a2, 0x00c2a3,
/* a4 */ 0xe282aa, 0x00c2a5, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00c397, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c2af,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c2b8, 0x00c2b9, 0x00c3b7, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x00c2bf,
/* c0 */ 0x00d6b0, 0x00d6b1, 0x00d6b2, 0x00d6b3,
/* c4 */ 0x00d6b4, 0x00d6b5, 0x00d6b6, 0x00d6b7,
/* c8 */ 0x00d6b8, 0x00d6b9, 0x000000, 0x00d6bb,
/* cc */ 0x00d6bc, 0x00d6bd, 0x00d6be, 0x00d6bf,
/* d0 */ 0x00d780, 0x00d781, 0x00d782, 0x00d783,
/* d4 */ 0x00d7b0, 0x00d7b1, 0x00d7b2, 0x00d7b3,
/* d8 */ 0x00d7b4, 0x000000, 0x000000, 0x000000,
/* dc */ 0x000000, 0x000000, 0x000000, 0x000000,
/* e0 */ 0x00d790, 0x00d791, 0x00d792, 0x00d793,
/* e4 */ 0x00d794, 0x00d795, 0x00d796, 0x00d797,
/* e8 */ 0x00d798, 0x00d799, 0x00d79a, 0x00d79b,
/* ec */ 0x00d79c, 0x00d79d, 0x00d79e, 0x00d79f,
/* f0 */ 0x00d7a0, 0x00d7a1, 0x00d7a2, 0x00d7a3,
/* f4 */ 0x00d7a4, 0x00d7a5, 0x00d7a6, 0x00d7a7,
/* f8 */ 0x00d7a8, 0x00d7a9, 0x00d7aa, 0x000000,
/* fc */ 0x000000, 0xe2808e, 0xe2808f
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/win1256_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1256[ 128 ] = {
{0x0080, 0xe282ac},
{0x0081, 0xd9be},
{0x0082, 0xe2809a},
{0x0083, 0xc692},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0088, 0xcb86},
{0x0089, 0xe280b0},
{0x008a, 0xd9b9},
{0x008b, 0xe280b9},
{0x008c, 0xc592},
{0x008d, 0xda86},
{0x008e, 0xda98},
{0x008f, 0xda88},
{0x0090, 0xdaaf},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0098, 0xdaa9},
{0x0099, 0xe284a2},
{0x009a, 0xda91},
{0x009b, 0xe280ba},
{0x009c, 0xc593},
{0x009d, 0xe2808c},
{0x009e, 0xe2808d},
{0x009f, 0xdaba},
{0x00a0, 0xc2a0},
{0x00a1, 0xd88c},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xdabe},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xd89b},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xd89f},
{0x00c0, 0xdb81},
{0x00c1, 0xd8a1},
{0x00c2, 0xd8a2},
{0x00c3, 0xd8a3},
{0x00c4, 0xd8a4},
{0x00c5, 0xd8a5},
{0x00c6, 0xd8a6},
{0x00c7, 0xd8a7},
{0x00c8, 0xd8a8},
{0x00c9, 0xd8a9},
{0x00ca, 0xd8aa},
{0x00cb, 0xd8ab},
{0x00cc, 0xd8ac},
{0x00cd, 0xd8ad},
{0x00ce, 0xd8ae},
{0x00cf, 0xd8af},
{0x00d0, 0xd8b0},
{0x00d1, 0xd8b1},
{0x00d2, 0xd8b2},
{0x00d3, 0xd8b3},
{0x00d4, 0xd8b4},
{0x00d5, 0xd8b5},
{0x00d6, 0xd8b6},
{0x00d7, 0xc397},
{0x00d8, 0xd8b7},
{0x00d9, 0xd8b8},
{0x00da, 0xd8b9},
{0x00db, 0xd8ba},
{0x00dc, 0xd980},
{0x00dd, 0xd981},
{0x00de, 0xd982},
{0x00df, 0xd983},
{0x00e0, 0xc3a0},
{0x00e1, 0xd984},
{0x00e2, 0xc3a2},
{0x00e3, 0xd985},
{0x00e4, 0xd986},
{0x00e5, 0xd987},
{0x00e6, 0xd988},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xd989},
{0x00ed, 0xd98a},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xd98b},
{0x00f1, 0xd98c},
{0x00f2, 0xd98d},
{0x00f3, 0xd98e},
{0x00f4, 0xc3b4},
{0x00f5, 0xd98f},
{0x00f6, 0xd990},
{0x00f7, 0xc3b7},
{0x00f8, 0xd991},
{0x00f9, 0xc3b9},
{0x00fa, 0xd992},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xe2808e},
{0x00fe, 0xe2808f},
{0x00ff, 0xdb92}
static const uint32 win1256_to_unicode_tree_table[];
static const pg_mb_radix_tree win1256_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1256_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1256_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe282ac, 0x00d9be, 0xe2809a, 0x00c692,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x00cb86, 0xe280b0, 0x00d9b9, 0xe280b9,
/* 8c */ 0x00c592, 0x00da86, 0x00da98, 0x00da88,
/* 90 */ 0x00daaf, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x00daa9, 0xe284a2, 0x00da91, 0xe280ba,
/* 9c */ 0x00c593, 0xe2808c, 0xe2808d, 0x00daba,
/* a0 */ 0x00c2a0, 0x00d88c, 0x00c2a2, 0x00c2a3,
/* a4 */ 0x00c2a4, 0x00c2a5, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00dabe, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c2af,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c2b8, 0x00c2b9, 0x00d89b, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x00d89f,
/* c0 */ 0x00db81, 0x00d8a1, 0x00d8a2, 0x00d8a3,
/* c4 */ 0x00d8a4, 0x00d8a5, 0x00d8a6, 0x00d8a7,
/* c8 */ 0x00d8a8, 0x00d8a9, 0x00d8aa, 0x00d8ab,
/* cc */ 0x00d8ac, 0x00d8ad, 0x00d8ae, 0x00d8af,
/* d0 */ 0x00d8b0, 0x00d8b1, 0x00d8b2, 0x00d8b3,
/* d4 */ 0x00d8b4, 0x00d8b5, 0x00d8b6, 0x00c397,
/* d8 */ 0x00d8b7, 0x00d8b8, 0x00d8b9, 0x00d8ba,
/* dc */ 0x00d980, 0x00d981, 0x00d982, 0x00d983,
/* e0 */ 0x00c3a0, 0x00d984, 0x00c3a2, 0x00d985,
/* e4 */ 0x00d986, 0x00d987, 0x00d988, 0x00c3a7,
/* e8 */ 0x00c3a8, 0x00c3a9, 0x00c3aa, 0x00c3ab,
/* ec */ 0x00d989, 0x00d98a, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00d98b, 0x00d98c, 0x00d98d, 0x00d98e,
/* f4 */ 0x00c3b4, 0x00d98f, 0x00d990, 0x00c3b7,
/* f8 */ 0x00d991, 0x00c3b9, 0x00d992, 0x00c3bb,
/* fc */ 0x00c3bc, 0xe2808e, 0xe2808f, 0x00db92
};

View File

@ -1,120 +1,111 @@
/* src/backend/utils/mb/Unicode/win1257_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1257[ 116 ] = {
{0x0080, 0xe282ac},
{0x0082, 0xe2809a},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0089, 0xe280b0},
{0x008b, 0xe280b9},
{0x008d, 0xc2a8},
{0x008e, 0xcb87},
{0x008f, 0xc2b8},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0099, 0xe284a2},
{0x009b, 0xe280ba},
{0x009d, 0xc2af},
{0x009e, 0xcb9b},
{0x00a0, 0xc2a0},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc398},
{0x00a9, 0xc2a9},
{0x00aa, 0xc596},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc386},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc3b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc597},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xc3a6},
{0x00c0, 0xc484},
{0x00c1, 0xc4ae},
{0x00c2, 0xc480},
{0x00c3, 0xc486},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc498},
{0x00c7, 0xc492},
{0x00c8, 0xc48c},
{0x00c9, 0xc389},
{0x00ca, 0xc5b9},
{0x00cb, 0xc496},
{0x00cc, 0xc4a2},
{0x00cd, 0xc4b6},
{0x00ce, 0xc4aa},
{0x00cf, 0xc4bb},
{0x00d0, 0xc5a0},
{0x00d1, 0xc583},
{0x00d2, 0xc585},
{0x00d3, 0xc393},
{0x00d4, 0xc58c},
{0x00d5, 0xc395},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc5b2},
{0x00d9, 0xc581},
{0x00da, 0xc59a},
{0x00db, 0xc5aa},
{0x00dc, 0xc39c},
{0x00dd, 0xc5bb},
{0x00de, 0xc5bd},
{0x00df, 0xc39f},
{0x00e0, 0xc485},
{0x00e1, 0xc4af},
{0x00e2, 0xc481},
{0x00e3, 0xc487},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc499},
{0x00e7, 0xc493},
{0x00e8, 0xc48d},
{0x00e9, 0xc3a9},
{0x00ea, 0xc5ba},
{0x00eb, 0xc497},
{0x00ec, 0xc4a3},
{0x00ed, 0xc4b7},
{0x00ee, 0xc4ab},
{0x00ef, 0xc4bc},
{0x00f0, 0xc5a1},
{0x00f1, 0xc584},
{0x00f2, 0xc586},
{0x00f3, 0xc3b3},
{0x00f4, 0xc58d},
{0x00f5, 0xc3b5},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc5b3},
{0x00f9, 0xc582},
{0x00fa, 0xc59b},
{0x00fb, 0xc5ab},
{0x00fc, 0xc3bc},
{0x00fd, 0xc5bc},
{0x00fe, 0xc5be},
{0x00ff, 0xcb99}
static const uint32 win1257_to_unicode_tree_table[];
static const pg_mb_radix_tree win1257_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1257_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1257_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe282ac, 0x000000, 0xe2809a, 0x000000,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x000000, 0xe280b0, 0x000000, 0xe280b9,
/* 8c */ 0x000000, 0x00c2a8, 0x00cb87, 0x00c2b8,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x000000, 0xe284a2, 0x000000, 0xe280ba,
/* 9c */ 0x000000, 0x00c2af, 0x00cb9b, 0x000000,
/* a0 */ 0x00c2a0, 0x000000, 0x00c2a2, 0x00c2a3,
/* a4 */ 0x00c2a4, 0x000000, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c398, 0x00c2a9, 0x00c596, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c386,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c3b8, 0x00c2b9, 0x00c597, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x00c3a6,
/* c0 */ 0x00c484, 0x00c4ae, 0x00c480, 0x00c486,
/* c4 */ 0x00c384, 0x00c385, 0x00c498, 0x00c492,
/* c8 */ 0x00c48c, 0x00c389, 0x00c5b9, 0x00c496,
/* cc */ 0x00c4a2, 0x00c4b6, 0x00c4aa, 0x00c4bb,
/* d0 */ 0x00c5a0, 0x00c583, 0x00c585, 0x00c393,
/* d4 */ 0x00c58c, 0x00c395, 0x00c396, 0x00c397,
/* d8 */ 0x00c5b2, 0x00c581, 0x00c59a, 0x00c5aa,
/* dc */ 0x00c39c, 0x00c5bb, 0x00c5bd, 0x00c39f,
/* e0 */ 0x00c485, 0x00c4af, 0x00c481, 0x00c487,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c499, 0x00c493,
/* e8 */ 0x00c48d, 0x00c3a9, 0x00c5ba, 0x00c497,
/* ec */ 0x00c4a3, 0x00c4b7, 0x00c4ab, 0x00c4bc,
/* f0 */ 0x00c5a1, 0x00c584, 0x00c586, 0x00c3b3,
/* f4 */ 0x00c58d, 0x00c3b5, 0x00c3b6, 0x00c3b7,
/* f8 */ 0x00c5b3, 0x00c582, 0x00c59b, 0x00c5ab,
/* fc */ 0x00c3bc, 0x00c5bc, 0x00c5be, 0x00cb99
};

View File

@ -1,123 +1,111 @@
/* src/backend/utils/mb/Unicode/win1258_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN1258[ 119 ] = {
{0x0080, 0xe282ac},
{0x0082, 0xe2809a},
{0x0083, 0xc692},
{0x0084, 0xe2809e},
{0x0085, 0xe280a6},
{0x0086, 0xe280a0},
{0x0087, 0xe280a1},
{0x0088, 0xcb86},
{0x0089, 0xe280b0},
{0x008b, 0xe280b9},
{0x008c, 0xc592},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x0098, 0xcb9c},
{0x0099, 0xe284a2},
{0x009b, 0xe280ba},
{0x009c, 0xc593},
{0x009f, 0xc5b8},
{0x00a0, 0xc2a0},
{0x00a1, 0xc2a1},
{0x00a2, 0xc2a2},
{0x00a3, 0xc2a3},
{0x00a4, 0xc2a4},
{0x00a5, 0xc2a5},
{0x00a6, 0xc2a6},
{0x00a7, 0xc2a7},
{0x00a8, 0xc2a8},
{0x00a9, 0xc2a9},
{0x00aa, 0xc2aa},
{0x00ab, 0xc2ab},
{0x00ac, 0xc2ac},
{0x00ad, 0xc2ad},
{0x00ae, 0xc2ae},
{0x00af, 0xc2af},
{0x00b0, 0xc2b0},
{0x00b1, 0xc2b1},
{0x00b2, 0xc2b2},
{0x00b3, 0xc2b3},
{0x00b4, 0xc2b4},
{0x00b5, 0xc2b5},
{0x00b6, 0xc2b6},
{0x00b7, 0xc2b7},
{0x00b8, 0xc2b8},
{0x00b9, 0xc2b9},
{0x00ba, 0xc2ba},
{0x00bb, 0xc2bb},
{0x00bc, 0xc2bc},
{0x00bd, 0xc2bd},
{0x00be, 0xc2be},
{0x00bf, 0xc2bf},
{0x00c0, 0xc380},
{0x00c1, 0xc381},
{0x00c2, 0xc382},
{0x00c3, 0xc482},
{0x00c4, 0xc384},
{0x00c5, 0xc385},
{0x00c6, 0xc386},
{0x00c7, 0xc387},
{0x00c8, 0xc388},
{0x00c9, 0xc389},
{0x00ca, 0xc38a},
{0x00cb, 0xc38b},
{0x00cc, 0xcc80},
{0x00cd, 0xc38d},
{0x00ce, 0xc38e},
{0x00cf, 0xc38f},
{0x00d0, 0xc490},
{0x00d1, 0xc391},
{0x00d2, 0xcc89},
{0x00d3, 0xc393},
{0x00d4, 0xc394},
{0x00d5, 0xc6a0},
{0x00d6, 0xc396},
{0x00d7, 0xc397},
{0x00d8, 0xc398},
{0x00d9, 0xc399},
{0x00da, 0xc39a},
{0x00db, 0xc39b},
{0x00dc, 0xc39c},
{0x00dd, 0xc6af},
{0x00de, 0xcc83},
{0x00df, 0xc39f},
{0x00e0, 0xc3a0},
{0x00e1, 0xc3a1},
{0x00e2, 0xc3a2},
{0x00e3, 0xc483},
{0x00e4, 0xc3a4},
{0x00e5, 0xc3a5},
{0x00e6, 0xc3a6},
{0x00e7, 0xc3a7},
{0x00e8, 0xc3a8},
{0x00e9, 0xc3a9},
{0x00ea, 0xc3aa},
{0x00eb, 0xc3ab},
{0x00ec, 0xcc81},
{0x00ed, 0xc3ad},
{0x00ee, 0xc3ae},
{0x00ef, 0xc3af},
{0x00f0, 0xc491},
{0x00f1, 0xc3b1},
{0x00f2, 0xcca3},
{0x00f3, 0xc3b3},
{0x00f4, 0xc3b4},
{0x00f5, 0xc6a1},
{0x00f6, 0xc3b6},
{0x00f7, 0xc3b7},
{0x00f8, 0xc3b8},
{0x00f9, 0xc3b9},
{0x00fa, 0xc3ba},
{0x00fb, 0xc3bb},
{0x00fc, 0xc3bc},
{0x00fd, 0xc6b0},
{0x00fe, 0xe282ab},
{0x00ff, 0xc3bf}
static const uint32 win1258_to_unicode_tree_table[];
static const pg_mb_radix_tree win1258_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win1258_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win1258_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0xe282ac, 0x000000, 0xe2809a, 0x00c692,
/* 84 */ 0xe2809e, 0xe280a6, 0xe280a0, 0xe280a1,
/* 88 */ 0x00cb86, 0xe280b0, 0x000000, 0xe280b9,
/* 8c */ 0x00c592, 0x000000, 0x000000, 0x000000,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x00cb9c, 0xe284a2, 0x000000, 0xe280ba,
/* 9c */ 0x00c593, 0x000000, 0x000000, 0x00c5b8,
/* a0 */ 0x00c2a0, 0x00c2a1, 0x00c2a2, 0x00c2a3,
/* a4 */ 0x00c2a4, 0x00c2a5, 0x00c2a6, 0x00c2a7,
/* a8 */ 0x00c2a8, 0x00c2a9, 0x00c2aa, 0x00c2ab,
/* ac */ 0x00c2ac, 0x00c2ad, 0x00c2ae, 0x00c2af,
/* b0 */ 0x00c2b0, 0x00c2b1, 0x00c2b2, 0x00c2b3,
/* b4 */ 0x00c2b4, 0x00c2b5, 0x00c2b6, 0x00c2b7,
/* b8 */ 0x00c2b8, 0x00c2b9, 0x00c2ba, 0x00c2bb,
/* bc */ 0x00c2bc, 0x00c2bd, 0x00c2be, 0x00c2bf,
/* c0 */ 0x00c380, 0x00c381, 0x00c382, 0x00c482,
/* c4 */ 0x00c384, 0x00c385, 0x00c386, 0x00c387,
/* c8 */ 0x00c388, 0x00c389, 0x00c38a, 0x00c38b,
/* cc */ 0x00cc80, 0x00c38d, 0x00c38e, 0x00c38f,
/* d0 */ 0x00c490, 0x00c391, 0x00cc89, 0x00c393,
/* d4 */ 0x00c394, 0x00c6a0, 0x00c396, 0x00c397,
/* d8 */ 0x00c398, 0x00c399, 0x00c39a, 0x00c39b,
/* dc */ 0x00c39c, 0x00c6af, 0x00cc83, 0x00c39f,
/* e0 */ 0x00c3a0, 0x00c3a1, 0x00c3a2, 0x00c483,
/* e4 */ 0x00c3a4, 0x00c3a5, 0x00c3a6, 0x00c3a7,
/* e8 */ 0x00c3a8, 0x00c3a9, 0x00c3aa, 0x00c3ab,
/* ec */ 0x00cc81, 0x00c3ad, 0x00c3ae, 0x00c3af,
/* f0 */ 0x00c491, 0x00c3b1, 0x00cca3, 0x00c3b3,
/* f4 */ 0x00c3b4, 0x00c6a1, 0x00c3b6, 0x00c3b7,
/* f8 */ 0x00c3b8, 0x00c3b9, 0x00c3ba, 0x00c3bb,
/* fc */ 0x00c3bc, 0x00c6b0, 0xe282ab, 0x00c3bf
};

View File

@ -1,132 +1,111 @@
/* src/backend/utils/mb/Unicode/win866_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN866[ 128 ] = {
{0x0080, 0xd090},
{0x0081, 0xd091},
{0x0082, 0xd092},
{0x0083, 0xd093},
{0x0084, 0xd094},
{0x0085, 0xd095},
{0x0086, 0xd096},
{0x0087, 0xd097},
{0x0088, 0xd098},
{0x0089, 0xd099},
{0x008a, 0xd09a},
{0x008b, 0xd09b},
{0x008c, 0xd09c},
{0x008d, 0xd09d},
{0x008e, 0xd09e},
{0x008f, 0xd09f},
{0x0090, 0xd0a0},
{0x0091, 0xd0a1},
{0x0092, 0xd0a2},
{0x0093, 0xd0a3},
{0x0094, 0xd0a4},
{0x0095, 0xd0a5},
{0x0096, 0xd0a6},
{0x0097, 0xd0a7},
{0x0098, 0xd0a8},
{0x0099, 0xd0a9},
{0x009a, 0xd0aa},
{0x009b, 0xd0ab},
{0x009c, 0xd0ac},
{0x009d, 0xd0ad},
{0x009e, 0xd0ae},
{0x009f, 0xd0af},
{0x00a0, 0xd0b0},
{0x00a1, 0xd0b1},
{0x00a2, 0xd0b2},
{0x00a3, 0xd0b3},
{0x00a4, 0xd0b4},
{0x00a5, 0xd0b5},
{0x00a6, 0xd0b6},
{0x00a7, 0xd0b7},
{0x00a8, 0xd0b8},
{0x00a9, 0xd0b9},
{0x00aa, 0xd0ba},
{0x00ab, 0xd0bb},
{0x00ac, 0xd0bc},
{0x00ad, 0xd0bd},
{0x00ae, 0xd0be},
{0x00af, 0xd0bf},
{0x00b0, 0xe29691},
{0x00b1, 0xe29692},
{0x00b2, 0xe29693},
{0x00b3, 0xe29482},
{0x00b4, 0xe294a4},
{0x00b5, 0xe295a1},
{0x00b6, 0xe295a2},
{0x00b7, 0xe29596},
{0x00b8, 0xe29595},
{0x00b9, 0xe295a3},
{0x00ba, 0xe29591},
{0x00bb, 0xe29597},
{0x00bc, 0xe2959d},
{0x00bd, 0xe2959c},
{0x00be, 0xe2959b},
{0x00bf, 0xe29490},
{0x00c0, 0xe29494},
{0x00c1, 0xe294b4},
{0x00c2, 0xe294ac},
{0x00c3, 0xe2949c},
{0x00c4, 0xe29480},
{0x00c5, 0xe294bc},
{0x00c6, 0xe2959e},
{0x00c7, 0xe2959f},
{0x00c8, 0xe2959a},
{0x00c9, 0xe29594},
{0x00ca, 0xe295a9},
{0x00cb, 0xe295a6},
{0x00cc, 0xe295a0},
{0x00cd, 0xe29590},
{0x00ce, 0xe295ac},
{0x00cf, 0xe295a7},
{0x00d0, 0xe295a8},
{0x00d1, 0xe295a4},
{0x00d2, 0xe295a5},
{0x00d3, 0xe29599},
{0x00d4, 0xe29598},
{0x00d5, 0xe29592},
{0x00d6, 0xe29593},
{0x00d7, 0xe295ab},
{0x00d8, 0xe295aa},
{0x00d9, 0xe29498},
{0x00da, 0xe2948c},
{0x00db, 0xe29688},
{0x00dc, 0xe29684},
{0x00dd, 0xe2968c},
{0x00de, 0xe29690},
{0x00df, 0xe29680},
{0x00e0, 0xd180},
{0x00e1, 0xd181},
{0x00e2, 0xd182},
{0x00e3, 0xd183},
{0x00e4, 0xd184},
{0x00e5, 0xd185},
{0x00e6, 0xd186},
{0x00e7, 0xd187},
{0x00e8, 0xd188},
{0x00e9, 0xd189},
{0x00ea, 0xd18a},
{0x00eb, 0xd18b},
{0x00ec, 0xd18c},
{0x00ed, 0xd18d},
{0x00ee, 0xd18e},
{0x00ef, 0xd18f},
{0x00f0, 0xd081},
{0x00f1, 0xd191},
{0x00f2, 0xd084},
{0x00f3, 0xd194},
{0x00f4, 0xd087},
{0x00f5, 0xd197},
{0x00f6, 0xd08e},
{0x00f7, 0xd19e},
{0x00f8, 0xc2b0},
{0x00f9, 0xe28899},
{0x00fa, 0xc2b7},
{0x00fb, 0xe2889a},
{0x00fc, 0xe28496},
{0x00fd, 0xc2a4},
{0x00fe, 0xe296a0},
{0x00ff, 0xc2a0}
static const uint32 win866_to_unicode_tree_table[];
static const pg_mb_radix_tree win866_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win866_to_unicode_tree_table,
0x0080, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xff, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win866_to_unicode_tree_table[256] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 7c */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x00080 ***/
/* 80 */ 0x00d090, 0x00d091, 0x00d092, 0x00d093,
/* 84 */ 0x00d094, 0x00d095, 0x00d096, 0x00d097,
/* 88 */ 0x00d098, 0x00d099, 0x00d09a, 0x00d09b,
/* 8c */ 0x00d09c, 0x00d09d, 0x00d09e, 0x00d09f,
/* 90 */ 0x00d0a0, 0x00d0a1, 0x00d0a2, 0x00d0a3,
/* 94 */ 0x00d0a4, 0x00d0a5, 0x00d0a6, 0x00d0a7,
/* 98 */ 0x00d0a8, 0x00d0a9, 0x00d0aa, 0x00d0ab,
/* 9c */ 0x00d0ac, 0x00d0ad, 0x00d0ae, 0x00d0af,
/* a0 */ 0x00d0b0, 0x00d0b1, 0x00d0b2, 0x00d0b3,
/* a4 */ 0x00d0b4, 0x00d0b5, 0x00d0b6, 0x00d0b7,
/* a8 */ 0x00d0b8, 0x00d0b9, 0x00d0ba, 0x00d0bb,
/* ac */ 0x00d0bc, 0x00d0bd, 0x00d0be, 0x00d0bf,
/* b0 */ 0xe29691, 0xe29692, 0xe29693, 0xe29482,
/* b4 */ 0xe294a4, 0xe295a1, 0xe295a2, 0xe29596,
/* b8 */ 0xe29595, 0xe295a3, 0xe29591, 0xe29597,
/* bc */ 0xe2959d, 0xe2959c, 0xe2959b, 0xe29490,
/* c0 */ 0xe29494, 0xe294b4, 0xe294ac, 0xe2949c,
/* c4 */ 0xe29480, 0xe294bc, 0xe2959e, 0xe2959f,
/* c8 */ 0xe2959a, 0xe29594, 0xe295a9, 0xe295a6,
/* cc */ 0xe295a0, 0xe29590, 0xe295ac, 0xe295a7,
/* d0 */ 0xe295a8, 0xe295a4, 0xe295a5, 0xe29599,
/* d4 */ 0xe29598, 0xe29592, 0xe29593, 0xe295ab,
/* d8 */ 0xe295aa, 0xe29498, 0xe2948c, 0xe29688,
/* dc */ 0xe29684, 0xe2968c, 0xe29690, 0xe29680,
/* e0 */ 0x00d180, 0x00d181, 0x00d182, 0x00d183,
/* e4 */ 0x00d184, 0x00d185, 0x00d186, 0x00d187,
/* e8 */ 0x00d188, 0x00d189, 0x00d18a, 0x00d18b,
/* ec */ 0x00d18c, 0x00d18d, 0x00d18e, 0x00d18f,
/* f0 */ 0x00d081, 0x00d191, 0x00d084, 0x00d194,
/* f4 */ 0x00d087, 0x00d197, 0x00d08e, 0x00d19e,
/* f8 */ 0x00c2b0, 0xe28899, 0x00c2b7, 0xe2889a,
/* fc */ 0xe28496, 0x00c2a4, 0xe296a0, 0x00c2a0
};

View File

@ -1,101 +1,109 @@
/* src/backend/utils/mb/Unicode/win874_to_utf8.map */
/* This file is generated by UCS_to_most.pl */
static const pg_local_to_utf LUmapWIN874[ 97 ] = {
{0x0080, 0xe282ac},
{0x0085, 0xe280a6},
{0x0091, 0xe28098},
{0x0092, 0xe28099},
{0x0093, 0xe2809c},
{0x0094, 0xe2809d},
{0x0095, 0xe280a2},
{0x0096, 0xe28093},
{0x0097, 0xe28094},
{0x00a0, 0xc2a0},
{0x00a1, 0xe0b881},
{0x00a2, 0xe0b882},
{0x00a3, 0xe0b883},
{0x00a4, 0xe0b884},
{0x00a5, 0xe0b885},
{0x00a6, 0xe0b886},
{0x00a7, 0xe0b887},
{0x00a8, 0xe0b888},
{0x00a9, 0xe0b889},
{0x00aa, 0xe0b88a},
{0x00ab, 0xe0b88b},
{0x00ac, 0xe0b88c},
{0x00ad, 0xe0b88d},
{0x00ae, 0xe0b88e},
{0x00af, 0xe0b88f},
{0x00b0, 0xe0b890},
{0x00b1, 0xe0b891},
{0x00b2, 0xe0b892},
{0x00b3, 0xe0b893},
{0x00b4, 0xe0b894},
{0x00b5, 0xe0b895},
{0x00b6, 0xe0b896},
{0x00b7, 0xe0b897},
{0x00b8, 0xe0b898},
{0x00b9, 0xe0b899},
{0x00ba, 0xe0b89a},
{0x00bb, 0xe0b89b},
{0x00bc, 0xe0b89c},
{0x00bd, 0xe0b89d},
{0x00be, 0xe0b89e},
{0x00bf, 0xe0b89f},
{0x00c0, 0xe0b8a0},
{0x00c1, 0xe0b8a1},
{0x00c2, 0xe0b8a2},
{0x00c3, 0xe0b8a3},
{0x00c4, 0xe0b8a4},
{0x00c5, 0xe0b8a5},
{0x00c6, 0xe0b8a6},
{0x00c7, 0xe0b8a7},
{0x00c8, 0xe0b8a8},
{0x00c9, 0xe0b8a9},
{0x00ca, 0xe0b8aa},
{0x00cb, 0xe0b8ab},
{0x00cc, 0xe0b8ac},
{0x00cd, 0xe0b8ad},
{0x00ce, 0xe0b8ae},
{0x00cf, 0xe0b8af},
{0x00d0, 0xe0b8b0},
{0x00d1, 0xe0b8b1},
{0x00d2, 0xe0b8b2},
{0x00d3, 0xe0b8b3},
{0x00d4, 0xe0b8b4},
{0x00d5, 0xe0b8b5},
{0x00d6, 0xe0b8b6},
{0x00d7, 0xe0b8b7},
{0x00d8, 0xe0b8b8},
{0x00d9, 0xe0b8b9},
{0x00da, 0xe0b8ba},
{0x00df, 0xe0b8bf},
{0x00e0, 0xe0b980},
{0x00e1, 0xe0b981},
{0x00e2, 0xe0b982},
{0x00e3, 0xe0b983},
{0x00e4, 0xe0b984},
{0x00e5, 0xe0b985},
{0x00e6, 0xe0b986},
{0x00e7, 0xe0b987},
{0x00e8, 0xe0b988},
{0x00e9, 0xe0b989},
{0x00ea, 0xe0b98a},
{0x00eb, 0xe0b98b},
{0x00ec, 0xe0b98c},
{0x00ed, 0xe0b98d},
{0x00ee, 0xe0b98e},
{0x00ef, 0xe0b98f},
{0x00f0, 0xe0b990},
{0x00f1, 0xe0b991},
{0x00f2, 0xe0b992},
{0x00f3, 0xe0b993},
{0x00f4, 0xe0b994},
{0x00f5, 0xe0b995},
{0x00f6, 0xe0b996},
{0x00f7, 0xe0b997},
{0x00f8, 0xe0b998},
{0x00f9, 0xe0b999},
{0x00fa, 0xe0b99a},
{0x00fb, 0xe0b99b}
static const uint32 win874_to_unicode_tree_table[];
static const pg_mb_radix_tree win874_to_unicode_tree =
{
NULL, /* 16-bit table not used */
win874_to_unicode_tree_table,
0x007c, /* offset of table for 1-byte inputs */
0x80, /* b1_lower */
0xfb, /* b1_upper */
0x0000, /* offset of table for 2-byte inputs */
0x00, /* b2_1_lower */
0x00, /* b2_1_upper */
0x00, /* b2_2_lower */
0x00, /* b2_2_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b3_1_lower */
0x00, /* b3_1_upper */
0x00, /* b3_2_lower */
0x00, /* b3_2_upper */
0x00, /* b3_3_lower */
0x00, /* b3_3_upper */
0x0000, /* offset of table for 3-byte inputs */
0x00, /* b4_1_lower */
0x00, /* b4_1_upper */
0x00, /* b4_2_lower */
0x00, /* b4_2_upper */
0x00, /* b4_3_lower */
0x00, /* b4_3_upper */
0x00, /* b4_4_lower */
0x00 /* b4_4_upper */
};
static const uint32 win874_to_unicode_tree_table[248] =
{
/*** Dummy map, for invalid values - offset 0x00000 ***/
/* 00 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 04 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 08 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 0c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 10 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 14 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 18 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 1c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 20 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 24 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 28 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 2c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 30 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 34 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 38 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 3c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 40 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 44 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 48 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 4c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 50 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 54 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 58 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 5c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 60 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 64 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 68 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 6c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 70 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 74 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 78 */ 0x000000, 0x000000, 0x000000, 0x000000,
/*** Single byte table, leaf: xx - offset 0x0007c ***/
/* 80 */ 0xe282ac, 0x000000, 0x000000, 0x000000,
/* 84 */ 0x000000, 0xe280a6, 0x000000, 0x000000,
/* 88 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 8c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 90 */ 0x000000, 0xe28098, 0xe28099, 0xe2809c,
/* 94 */ 0xe2809d, 0xe280a2, 0xe28093, 0xe28094,
/* 98 */ 0x000000, 0x000000, 0x000000, 0x000000,
/* 9c */ 0x000000, 0x000000, 0x000000, 0x000000,
/* a0 */ 0x00c2a0, 0xe0b881, 0xe0b882, 0xe0b883,
/* a4 */ 0xe0b884, 0xe0b885, 0xe0b886, 0xe0b887,
/* a8 */ 0xe0b888, 0xe0b889, 0xe0b88a, 0xe0b88b,
/* ac */ 0xe0b88c, 0xe0b88d, 0xe0b88e, 0xe0b88f,
/* b0 */ 0xe0b890, 0xe0b891, 0xe0b892, 0xe0b893,
/* b4 */ 0xe0b894, 0xe0b895, 0xe0b896, 0xe0b897,
/* b8 */ 0xe0b898, 0xe0b899, 0xe0b89a, 0xe0b89b,
/* bc */ 0xe0b89c, 0xe0b89d, 0xe0b89e, 0xe0b89f,
/* c0 */ 0xe0b8a0, 0xe0b8a1, 0xe0b8a2, 0xe0b8a3,
/* c4 */ 0xe0b8a4, 0xe0b8a5, 0xe0b8a6, 0xe0b8a7,
/* c8 */ 0xe0b8a8, 0xe0b8a9, 0xe0b8aa, 0xe0b8ab,
/* cc */ 0xe0b8ac, 0xe0b8ad, 0xe0b8ae, 0xe0b8af,
/* d0 */ 0xe0b8b0, 0xe0b8b1, 0xe0b8b2, 0xe0b8b3,
/* d4 */ 0xe0b8b4, 0xe0b8b5, 0xe0b8b6, 0xe0b8b7,
/* d8 */ 0xe0b8b8, 0xe0b8b9, 0xe0b8ba, 0x000000,
/* dc */ 0x000000, 0x000000, 0x000000, 0xe0b8bf,
/* e0 */ 0xe0b980, 0xe0b981, 0xe0b982, 0xe0b983,
/* e4 */ 0xe0b984, 0xe0b985, 0xe0b986, 0xe0b987,
/* e8 */ 0xe0b988, 0xe0b989, 0xe0b98a, 0xe0b98b,
/* ec */ 0xe0b98c, 0xe0b98d, 0xe0b98e, 0xe0b98f,
/* f0 */ 0xe0b990, 0xe0b991, 0xe0b992, 0xe0b993,
/* f4 */ 0xe0b994, 0xe0b995, 0xe0b996, 0xe0b997,
/* f8 */ 0xe0b998, 0xe0b999, 0xe0b99a, 0xe0b99b
};

View File

@ -282,36 +282,6 @@ mic2latin_with_table(const unsigned char *mic,
*p = '\0';
}
/*
* comparison routine for bsearch()
* this routine is intended for UTF8 -> local code
*/
static int
compare1(const void *p1, const void *p2)
{
uint32 v1,
v2;
v1 = *(const uint32 *) p1;
v2 = ((const pg_utf_to_local *) p2)->utf;
return (v1 > v2) ? 1 : ((v1 == v2) ? 0 : -1);
}
/*
* comparison routine for bsearch()
* this routine is intended for local code -> UTF8
*/
static int
compare2(const void *p1, const void *p2)
{
uint32 v1,
v2;
v1 = *(const uint32 *) p1;
v2 = ((const pg_local_to_utf *) p2)->code;
return (v1 > v2) ? 1 : ((v1 == v2) ? 0 : -1);
}
/*
* comparison routine for bsearch()
* this routine is intended for combined UTF8 -> local code
@ -363,6 +333,121 @@ store_coded_char(unsigned char *dest, uint32 code)
return dest;
}
/*
* Convert a character using a conversion radix tree.
*
* 'l' is the length of the input character in bytes, and b1-b4 are
* the input character's bytes.
*/
static inline uint32
pg_mb_radix_conv(const pg_mb_radix_tree *rt,
int l,
unsigned char b1,
unsigned char b2,
unsigned char b3,
unsigned char b4)
{
if (l == 4)
{
/* 4-byte code */
/* check code validity */
if (b1 < rt->b4_1_lower || b1 > rt->b4_1_upper ||
b2 < rt->b4_2_lower || b2 > rt->b4_2_upper ||
b3 < rt->b4_3_lower || b3 > rt->b4_3_upper ||
b4 < rt->b4_4_lower || b4 > rt->b4_4_upper)
return 0;
/* perform lookup */
if (rt->chars32)
{
uint32 idx = rt->b4root;
idx = rt->chars32[b1 + idx - rt->b4_1_lower];
idx = rt->chars32[b2 + idx - rt->b4_2_lower];
idx = rt->chars32[b3 + idx - rt->b4_3_lower];
return rt->chars32[b4 + idx - rt->b4_4_lower];
}
else
{
uint16 idx = rt->b4root;
idx = rt->chars16[b1 + idx - rt->b4_1_lower];
idx = rt->chars16[b2 + idx - rt->b4_2_lower];
idx = rt->chars16[b3 + idx - rt->b4_3_lower];
return rt->chars16[b4 + idx - rt->b4_4_lower];
}
}
else if (l == 3)
{
/* 3-byte code */
/* check code validity */
if (b2 < rt->b3_1_lower || b2 > rt->b3_1_upper ||
b3 < rt->b3_2_lower || b3 > rt->b3_2_upper ||
b4 < rt->b3_3_lower || b4 > rt->b3_3_upper)
return 0;
/* perform lookup */
if (rt->chars32)
{
uint32 idx = rt->b3root;
idx = rt->chars32[b2 + idx - rt->b3_1_lower];
idx = rt->chars32[b3 + idx - rt->b3_2_lower];
return rt->chars32[b4 + idx - rt->b3_3_lower];
}
else
{
uint16 idx = rt->b3root;
idx = rt->chars16[b2 + idx - rt->b3_1_lower];
idx = rt->chars16[b3 + idx - rt->b3_2_lower];
return rt->chars16[b4 + idx - rt->b3_3_lower];
}
}
else if (l == 2)
{
/* 2-byte code */
/* check code validity - first byte */
if (b3 < rt->b2_1_lower || b3 > rt->b2_1_upper ||
b4 < rt->b2_2_lower || b4 > rt->b2_2_upper)
return 0;
/* perform lookup */
if (rt->chars32)
{
uint32 idx = rt->b2root;
idx = rt->chars32[b3 + idx - rt->b2_1_lower];
return rt->chars32[b4 + idx - rt->b2_2_lower];
}
else
{
uint16 idx = rt->b2root;
idx = rt->chars16[b3 + idx - rt->b2_1_lower];
return rt->chars16[b4 + idx - rt->b2_2_lower];
}
}
else if (l == 1)
{
/* 1-byte code */
/* check code validity - first byte */
if (b4 < rt->b1_lower || b4 > rt->b1_upper)
return 0;
/* perform lookup */
if (rt->chars32)
return rt->chars32[b4 + rt->b1root - rt->b1_lower];
else
return rt->chars16[b4 + rt->b1root - rt->b1_lower];
}
return 0; /* shouldn't happen */
}
/*
* UTF8 ---> local code
*
@ -371,7 +456,6 @@ store_coded_char(unsigned char *dest, uint32 code)
* iso: pointer to the output area (must be large enough!)
(output string will be null-terminated)
* map: conversion map for single characters
* mapsize: number of entries in the conversion map
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
* cmapsize: number of entries in the conversion map for combined characters
@ -389,14 +473,13 @@ store_coded_char(unsigned char *dest, uint32 code)
void
UtfToLocal(const unsigned char *utf, int len,
unsigned char *iso,
const pg_utf_to_local *map, int mapsize,
const pg_mb_radix_tree *map,
const pg_utf_to_local_combined *cmap, int cmapsize,
utf_local_conversion_func conv_func,
int encoding)
{
uint32 iutf;
int l;
const pg_utf_to_local *p;
const pg_utf_to_local_combined *cp;
if (!PG_VALID_ENCODING(encoding))
@ -406,6 +489,11 @@ UtfToLocal(const unsigned char *utf, int len,
for (; len > 0; len -= l)
{
unsigned char b1 = 0;
unsigned char b2 = 0;
unsigned char b3 = 0;
unsigned char b4 = 0;
/* "break" cases all represent errors */
if (*utf == '\0')
break;
@ -427,27 +515,28 @@ UtfToLocal(const unsigned char *utf, int len,
/* collect coded char of length l */
if (l == 2)
{
iutf = *utf++ << 8;
iutf |= *utf++;
b3 = *utf++;
b4 = *utf++;
}
else if (l == 3)
{
iutf = *utf++ << 16;
iutf |= *utf++ << 8;
iutf |= *utf++;
b2 = *utf++;
b3 = *utf++;
b4 = *utf++;
}
else if (l == 4)
{
iutf = *utf++ << 24;
iutf |= *utf++ << 16;
iutf |= *utf++ << 8;
iutf |= *utf++;
b1 = *utf++;
b2 = *utf++;
b3 = *utf++;
b4 = *utf++;
}
else
{
elog(ERROR, "unsupported character length %d", l);
iutf = 0; /* keep compiler quiet */
}
iutf = (b1 << 24 | b2 << 16 | b3 << 8 | b4);
/* First, try with combined map if possible */
if (cmap && len > l)
@ -516,13 +605,14 @@ UtfToLocal(const unsigned char *utf, int len,
}
/* Now check ordinary map */
p = bsearch(&iutf, map, mapsize,
sizeof(pg_utf_to_local), compare1);
if (p)
if (map)
{
iso = store_coded_char(iso, p->code);
continue;
uint32 converted = pg_mb_radix_conv(map, l, b1, b2, b3, b4);
if (converted)
{
iso = store_coded_char(iso, converted);
continue;
}
}
/* if there's a conversion function, try that */
@ -557,7 +647,6 @@ UtfToLocal(const unsigned char *utf, int len,
* utf: pointer to the output area (must be large enough!)
(output string will be null-terminated)
* map: conversion map for single characters
* mapsize: number of entries in the conversion map
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
* cmapsize: number of entries in the conversion map for combined characters
@ -575,14 +664,13 @@ UtfToLocal(const unsigned char *utf, int len,
void
LocalToUtf(const unsigned char *iso, int len,
unsigned char *utf,
const pg_local_to_utf *map, int mapsize,
const pg_mb_radix_tree *map,
const pg_local_to_utf_combined *cmap, int cmapsize,
utf_local_conversion_func conv_func,
int encoding)
{
uint32 iiso;
int l;
const pg_local_to_utf *p;
const pg_local_to_utf_combined *cp;
if (!PG_VALID_ENCODING(encoding))
@ -592,6 +680,11 @@ LocalToUtf(const unsigned char *iso, int len,
for (; len > 0; len -= l)
{
unsigned char b1 = 0;
unsigned char b2 = 0;
unsigned char b3 = 0;
unsigned char b4 = 0;
/* "break" cases all represent errors */
if (*iso == '\0')
break;
@ -610,53 +703,55 @@ LocalToUtf(const unsigned char *iso, int len,
/* collect coded char of length l */
if (l == 1)
iiso = *iso++;
b4 = *iso++;
else if (l == 2)
{
iiso = *iso++ << 8;
iiso |= *iso++;
b3 = *iso++;
b4 = *iso++;
}
else if (l == 3)
{
iiso = *iso++ << 16;
iiso |= *iso++ << 8;
iiso |= *iso++;
b2 = *iso++;
b3 = *iso++;
b4 = *iso++;
}
else if (l == 4)
{
iiso = *iso++ << 24;
iiso |= *iso++ << 16;
iiso |= *iso++ << 8;
iiso |= *iso++;
b1 = *iso++;
b2 = *iso++;
b3 = *iso++;
b4 = *iso++;
}
else
{
elog(ERROR, "unsupported character length %d", l);
iiso = 0; /* keep compiler quiet */
}
iiso = (b1 << 24 | b2 << 16 | b3 << 8 | b4);
/* First check ordinary map */
p = bsearch(&iiso, map, mapsize,
sizeof(pg_local_to_utf), compare2);
if (p)
if (map)
{
utf = store_coded_char(utf, p->utf);
continue;
}
uint32 converted = pg_mb_radix_conv(map, l, b1, b2, b3, b4);
/* If there's a combined character map, try that */
if (cmap)
{
cp = bsearch(&iiso, cmap, cmapsize,
sizeof(pg_local_to_utf_combined), compare4);
if (cp)
if (converted)
{
utf = store_coded_char(utf, cp->utf1);
utf = store_coded_char(utf, cp->utf2);
utf = store_coded_char(utf, converted);
continue;
}
/* If there's a combined character map, try that */
if (cmap)
{
cp = bsearch(&iiso, cmap, cmapsize,
sizeof(pg_local_to_utf_combined), compare4);
if (cp)
{
utf = store_coded_char(utf, cp->utf1);
utf = store_coded_char(utf, cp->utf2);
continue;
}
}
}
/* if there's a conversion function, try that */

View File

@ -42,7 +42,7 @@ big5_to_utf8(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_BIG5, PG_UTF8);
LocalToUtf(src, len, dest,
LUmapBIG5, lengthof(LUmapBIG5),
&big5_to_unicode_tree,
NULL, 0,
NULL,
PG_BIG5);
@ -60,7 +60,7 @@ utf8_to_big5(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_UTF8, PG_BIG5);
UtfToLocal(src, len, dest,
ULmapBIG5, lengthof(ULmapBIG5),
&big5_from_unicode_tree,
NULL, 0,
NULL,
PG_BIG5);

View File

@ -48,7 +48,7 @@ utf8_to_koi8r(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_UTF8, PG_KOI8R);
UtfToLocal(src, len, dest,
ULmapKOI8R, lengthof(ULmapKOI8R),
&koi8r_from_unicode_tree,
NULL, 0,
NULL,
PG_KOI8R);
@ -66,7 +66,7 @@ koi8r_to_utf8(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_KOI8R, PG_UTF8);
LocalToUtf(src, len, dest,
LUmapKOI8R, lengthof(LUmapKOI8R),
&koi8r_to_unicode_tree,
NULL, 0,
NULL,
PG_KOI8R);
@ -84,7 +84,7 @@ utf8_to_koi8u(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_UTF8, PG_KOI8U);
UtfToLocal(src, len, dest,
ULmapKOI8U, lengthof(ULmapKOI8U),
&koi8u_from_unicode_tree,
NULL, 0,
NULL,
PG_KOI8U);
@ -102,7 +102,7 @@ koi8u_to_utf8(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_KOI8U, PG_UTF8);
LocalToUtf(src, len, dest,
LUmapKOI8U, lengthof(LUmapKOI8U),
&koi8u_to_unicode_tree,
NULL, 0,
NULL,
PG_KOI8U);

View File

@ -16,8 +16,6 @@
#include "mb/pg_wchar.h"
#include "../../Unicode/euc_jis_2004_to_utf8.map"
#include "../../Unicode/utf8_to_euc_jis_2004.map"
#include "../../Unicode/euc_jis_2004_to_utf8_combined.map"
#include "../../Unicode/utf8_to_euc_jis_2004_combined.map"
PG_MODULE_MAGIC;
@ -44,7 +42,7 @@ euc_jis_2004_to_utf8(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_EUC_JIS_2004, PG_UTF8);
LocalToUtf(src, len, dest,
LUmapEUC_JIS_2004, lengthof(LUmapEUC_JIS_2004),
&euc_jis_2004_to_unicode_tree,
LUmapEUC_JIS_2004_combined, lengthof(LUmapEUC_JIS_2004_combined),
NULL,
PG_EUC_JIS_2004);
@ -62,7 +60,7 @@ utf8_to_euc_jis_2004(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_UTF8, PG_EUC_JIS_2004);
UtfToLocal(src, len, dest,
ULmapEUC_JIS_2004, lengthof(ULmapEUC_JIS_2004),
&euc_jis_2004_from_unicode_tree,
ULmapEUC_JIS_2004_combined, lengthof(ULmapEUC_JIS_2004_combined),
NULL,
PG_EUC_JIS_2004);

View File

@ -42,7 +42,7 @@ euc_cn_to_utf8(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_EUC_CN, PG_UTF8);
LocalToUtf(src, len, dest,
LUmapEUC_CN, lengthof(LUmapEUC_CN),
&euc_cn_to_unicode_tree,
NULL, 0,
NULL,
PG_EUC_CN);
@ -60,7 +60,7 @@ utf8_to_euc_cn(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_UTF8, PG_EUC_CN);
UtfToLocal(src, len, dest,
ULmapEUC_CN, lengthof(ULmapEUC_CN),
&euc_cn_from_unicode_tree,
NULL, 0,
NULL,
PG_EUC_CN);

View File

@ -42,7 +42,7 @@ euc_jp_to_utf8(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_EUC_JP, PG_UTF8);
LocalToUtf(src, len, dest,
LUmapEUC_JP, lengthof(LUmapEUC_JP),
&euc_jp_to_unicode_tree,
NULL, 0,
NULL,
PG_EUC_JP);
@ -60,7 +60,7 @@ utf8_to_euc_jp(PG_FUNCTION_ARGS)
CHECK_ENCODING_CONVERSION_ARGS(PG_UTF8, PG_EUC_JP);
UtfToLocal(src, len, dest,
ULmapEUC_JP, lengthof(ULmapEUC_JP),
&euc_jp_from_unicode_tree,
NULL, 0,
NULL,
PG_EUC_JP);

Some files were not shown because too many files have changed in this diff Show More