This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use strict dfa to translate from UTF-8 to code point
authorKarl Williamson <khw@cpan.org>
Mon, 2 Jul 2018 01:23:35 +0000 (19:23 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 5 Jul 2018 20:47:18 +0000 (14:47 -0600)
commit6c12993c67cedb7be68d2e7c7f52fbd9a39b92c8
tree65bf0d61393e5122fa3f31d2fc8b24c3c6e420a1
parent123deead4a6c7a01eafe0fb40c1b820f44301931
Use strict dfa to translate from UTF-8 to code point

With this commit, if a sequence passes the dfa, the result can be
returned immediately.  Previously some rare potentially problematic
sequences could pass, which would then need further checking, which then
have to be done always.  So this speeds up the general case.
regcharclass.h
regen/regcharclass.pl
utf8.c