summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-07-23 10:01:29 -0600
committerKarl Williamson <public@khwilliamson.com>2013-09-24 11:36:12 -0600
commit892d82595257ad4946d399f004a293a79f6ab611 (patch)
tree4e8841914093e2fb1200685aff68a7495c2c20a8 /regen
parentecfdcf399ee052379b6d0552e332d8503d554233 (diff)
downloadperl-892d82595257ad4946d399f004a293a79f6ab611.tar.gz
Add inversion list for U+80 - U+FF
This is the upper half of the Latin1 range. This simplifies some code very slightly, but will be of use in future commits.
Diffstat (limited to 'regen')
-rw-r--r--regen/mk_invlists.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/regen/mk_invlists.pl b/regen/mk_invlists.pl
index b857b10580..954e71412a 100644
--- a/regen/mk_invlists.pl
+++ b/regen/mk_invlists.pl
@@ -121,6 +121,14 @@ sub _Perl_Non_Final_Folds {
return mk_invlist_from_cp_list(\@is_non_final_fold);
}
+sub UpperLatin1 {
+ my @upper_latin1;
+ for my $i (0 .. 255) { # Complicated because of EBCDIC
+ push @upper_latin1, $i if chr($i) =~ /[[:^ascii:]]/;
+ }
+ return mk_invlist_from_cp_list(\@upper_latin1);
+}
+
output_invlist("Latin1", [ 0, 256 ]);
output_invlist("AboveLatin1", [ 256 ]);
@@ -180,6 +188,7 @@ for my $prop (qw(
XPosixXDigit
&NonL1_Perl_Non_Final_Folds
&_Perl_Multi_Char_Folds
+ &UpperLatin1
)
) {