diff options
author | Karl Williamson <khw@cpan.org> | 2020-02-15 14:28:32 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-11 09:00:04 -0600 |
commit | b1a91f306fb94c677de276c489b16fb5c5664544 (patch) | |
tree | f4ab6c438f8ff72189ada40a41432c44376efc05 /lib/_charnames.pm | |
parent | ffd8e5150761a7856dacc0c140fbd618377d71eb (diff) | |
download | perl-b1a91f306fb94c677de276c489b16fb5c5664544.tar.gz |
Implement \p{Name=/.../} wildcards
This commit adds wildcard subpatterns for the Name and Name Aliases
properties.
Diffstat (limited to 'lib/_charnames.pm')
-rw-r--r-- | lib/_charnames.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/_charnames.pm b/lib/_charnames.pm index 4c706f4003..b7b7400caa 100644 --- a/lib/_charnames.pm +++ b/lib/_charnames.pm @@ -641,6 +641,14 @@ sub _loose_regcomp_lookup { ); } +sub _get_names_info { + # For use only by regcomp.c to compile \p{name=/.../} + populate_txt() unless $txt; + + + return ( \$txt, \@charnames::code_points_ending_in_code_point ); +} + sub import { shift; ## ignore class name |