This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Avoid a function call in a common case
authorKarl Williamson <khw@cpan.org>
Wed, 10 Feb 2016 18:22:21 +0000 (11:22 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 11 Feb 2016 04:16:44 +0000 (21:16 -0700)
When the regex pattern is in UTF-8, we can avoid calling the function to
convert it to a code point for the common case where it is the same in
UTF-8 as not,  i.e. if the character is ASCII on ASCII platforms (and
additionally any control on EBCDIC)


No differences found