defined %utf8::In || do "unicore/In.pl";
- $type =~ s/^In(?:[-_]|\s+)?//i;
+ $type =~ s/^In(?:[-_]|\s+)?(?!herited$)//i;
$type =~ s/\s+$//;
my $inprefix = substr(lc($type), 0, 3);
unless (defined $file) {
# This is separate from 'To' in preparation of Is.pl (a la In.pl).
- if ($type =~ /^Is([A-Z][A-Za-z]*|L&)$/) {
+ if ($type =~ /^Is([A-Z][A-Za-z]*|L&)$/ || $type =~ /^(L&)$/ ) {
my $cat = $1 eq 'L&' ? 'L' : $1;
$file = "unicore/Is/$cat";
} elsif ((not defined $file) && $type =~ /^To([A-Z][A-Za-z]*)$/) {
=item *
-Allow for the metaproperties C<Any> and C<Assigned>, and C<Common>;
+Allow for the metaproperties C<Any> and C<Assigned>;
C<Alphabetic>, C<Ideographic>, C<Lowercase>, C<Uppercase> (note that
-are large classes than the general categories C<Lu> and C<Ll>),
+these are larger classes than the general categories C<Lu> and C<Ll>),
C<White Space>, C<Bidi Control>, C<Join Control>, C<ASCII Hex Digit>,
C<Hex Digit>, <Noncharacter Code Point>, C<ID Start>, C<ID Continue>,
C<XID Start>, C<XID Continue>, C<NF*_NO>, C<NF*_MAYBE>.
$| = 1;
-print "1..738\n";
+print "1..744\n";
BEGIN {
chdir 't' if -d 't';
print "ok 738\n";
}
+
+{
+ print "not " if "a" =~ /\p{Common}/;
+ print "ok 739\n";
+
+ print "not " unless "1" =~ /\p{Common}/;
+ print "ok 740\n";
+}
+
+{
+ print "not " if "a" =~ /\p{Inherited}/;
+ print "ok 741\n";
+
+ print "not " unless "\x{300}" =~ /\p{Inherited}/;
+ print "ok 742\n";
+}
+
+{
+ print "not " unless "a" =~ /\p{L&}/;
+ print "ok 743\n";
+
+ print "not " if "1" =~ /\p{L&}/;
+ print "ok 744\n";
+}