Skip to content

Commit 97f88e3

Browse files
committed
Unicode::UCD.pm: Handle properties that have no code points
This has long been done for matching properties. But it has never happened before Unicode 16.0 that an entire mapping property would have no code points.
1 parent 569c7cd commit 97f88e3

6 files changed

+10
-6
lines changed

charclass_invlists.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -436006,7 +436006,7 @@ static const U8 WB_table[23][23] = {
436006436006
#endif /* defined(PERL_IN_REGEXEC_C) */
436007436007

436008436008
/* Generated from:
436009-
* 0e8307ab7c654d9c133ea885f5413a4eb5c0123ed2178f7e1cbabed36b67792c lib/Unicode/UCD.pm
436009+
* 485e4e11a91e6660c4d93f352039f52346f17faba8b848fe06a1226d8918a13d lib/Unicode/UCD.pm
436010436010
* eb840f36e0a7446293578c684a54c6d83d249abde7bdd4dfa89794af1d7fe9e9 lib/unicore/ArabicShaping.txt
436011436011
* 333ae1e99db0504ca8a046a07dc45b5e7aa91869c685e6bf955ebe674804827a lib/unicore/BidiBrackets.txt
436012436012
* b4b9e1d87d8ea273613880de9d2b2f0b0b696244b42152bfa0a3106e7d983a20 lib/unicore/BidiMirroring.txt

lib/Unicode/UCD.pm

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55
no warnings 'surrogate'; # surrogates can be inputs to this
66
use charnames ();
77

8-
our $VERSION = '0.79';
8+
our $VERSION = '0.80';
99

1010
sub DEBUG () { 0 }
1111
$|=1 if DEBUG;
@@ -4265,6 +4265,10 @@ RETRY:
42654265
# assumed to be 'Y'.
42664266

42674267
foreach my $range (split "\n", $swash->{'LIST'}) {
4268+
4269+
# No code points matched
4270+
last if $range eq '!Unicode::UCD::All';
4271+
42684272
$range =~ s/ \s* (?: \# .* )? $ //xg; # rmv trailing space, comments
42694273

42704274
# Find the beginning and end of the range on the line

lib/unicore/uni_keywords.pl

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regcharclass.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regexp_constants.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define MAX_FOLD_FROMS 3
3030

3131
/* Generated from:
32-
* 0e8307ab7c654d9c133ea885f5413a4eb5c0123ed2178f7e1cbabed36b67792c lib/Unicode/UCD.pm
32+
* 485e4e11a91e6660c4d93f352039f52346f17faba8b848fe06a1226d8918a13d lib/Unicode/UCD.pm
3333
* eb840f36e0a7446293578c684a54c6d83d249abde7bdd4dfa89794af1d7fe9e9 lib/unicore/ArabicShaping.txt
3434
* 333ae1e99db0504ca8a046a07dc45b5e7aa91869c685e6bf955ebe674804827a lib/unicore/BidiBrackets.txt
3535
* b4b9e1d87d8ea273613880de9d2b2f0b0b696244b42152bfa0a3106e7d983a20 lib/unicore/BidiMirroring.txt

uni_keywords.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)