my $table_ref = shift;
my $name = shift;
+ my $size = @$table_ref;
+
# 0 => print in decimal
# 1 => print in hex (translates code point to code point)
# >= 2 => is a dfa table, like https://bjoern.hoehrmann.de/utf-8/decoder/dfa/
my $TYPE = 'U8';
$TYPE = 'U16' if grep { $_ > 255 } @$table_ref;
- output_table_start $out_fh, $TYPE, $name;
+ output_table_start $out_fh, $TYPE, $name, $size;
# First the headers for the columns
print $out_fh get_column_headers($row_hdr_length, $field_width);
* is A-Z; all other code points map to themselves */
END
output_table(\@ascii_fold, "PL_fold");
+
+ # This table is also the correct folding for the default C locale
+ output_table(\@ascii_fold, "PL_fold_locale");
}
{