mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Post-PG 10 beta1 pgperltidy run
This commit is contained in:
@@ -32,9 +32,11 @@ close $FH;
|
||||
# and character decomposition mapping
|
||||
my @characters = ();
|
||||
my %character_hash = ();
|
||||
open($FH, '<', "UnicodeData.txt") or die "Could not open UnicodeData.txt: $!.";
|
||||
open($FH, '<', "UnicodeData.txt")
|
||||
or die "Could not open UnicodeData.txt: $!.";
|
||||
while (my $line = <$FH>)
|
||||
{
|
||||
|
||||
# Split the line wanted and get the fields needed:
|
||||
# - Unicode code value
|
||||
# - Canonical Combining Class
|
||||
@@ -141,6 +143,7 @@ foreach my $char (@characters)
|
||||
|
||||
if ($decomp_size == 2)
|
||||
{
|
||||
|
||||
# Should this be used for recomposition?
|
||||
if ($compat)
|
||||
{
|
||||
@@ -173,6 +176,7 @@ foreach my $char (@characters)
|
||||
}
|
||||
elsif ($decomp_size == 1 && length($first_decomp) <= 4)
|
||||
{
|
||||
|
||||
# The decomposition consists of a single codepoint, and it fits
|
||||
# in a uint16, so we can store it "inline" in the main table.
|
||||
$flags .= " | DECOMP_INLINE";
|
||||
@@ -201,6 +205,7 @@ foreach my $char (@characters)
|
||||
print $OUTPUT "," unless ($code eq $last_code);
|
||||
if ($comment ne "")
|
||||
{
|
||||
|
||||
# If the line is wide already, indent the comment with one tab,
|
||||
# otherwise with two. This is to make the output match the way
|
||||
# pgindent would mangle it. (This is quite hacky. To do this
|
||||
|
Reference in New Issue
Block a user