This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexes: Remove uses of ANYOF_LOCALE flag
authorKarl Williamson <public@khwilliamson.com>
Mon, 17 Feb 2014 20:47:00 +0000 (13:47 -0700)
committerKarl Williamson <public@khwilliamson.com>
Wed, 19 Feb 2014 15:32:59 +0000 (08:32 -0700)
commit1462525b8916fe18637f62742c02f7016eb23fab
tree9a7ed42da8cfd74b3865ae5f5c403514abb26bcb
parente0e1be5fc663ef0fdda840a92e286b8eece99537
regexes: Remove uses of ANYOF_LOCALE flag

This flag no longer adds any useful information and can be removed.  An
ANYOF node that depends on locale either matches a POSIX class like /d,
or matches case insensitively, or both.  There are flags for both these
cases, and to see if something matches locale, one merely needs to see
if either flag is set.

Not having to keep track of this extra flag simplifies things, and will
allow it to be removed.  There was a time when this flag was shared with
one of the remaining locale ones, and there was relict code that allowed
that sharing to be reinstated, and which this commit also removes.
regcomp.c
regcomp.h
regexec.c