This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: EXACTF nodes can never be UTF
authorKarl Williamson <public@khwilliamson.com>
Fri, 23 Dec 2011 02:51:37 +0000 (19:51 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 19 Jan 2012 18:58:17 +0000 (11:58 -0700)
commit62bf7766b2964d5b9c742a3a611a1a246381e7a6
treeb995a27d62b7762ac82df0f3e4ff0e1b8905e740
parenta27f093bebb7f1f00bb3e91e69cfaaa7c7275fd7
regexec.c: EXACTF nodes can never be UTF

By definition a regex pattern that is in UTF-8 uses Unicode matching
rules, and EXACTF is non-Unicode (unless the target string is UTF-8).
Therefore an EXACTF node will never be generated for a UTF-8 pattern,
and there is no need to test for it being so.
regexec.c