This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add /d, /l, /u (infixed) regex modifiers
authorKarl Williamson <public@khwilliamson.com>
Tue, 21 Sep 2010 00:57:24 +0000 (18:57 -0600)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 23 Sep 2010 05:54:23 +0000 (22:54 -0700)
commit9de15fec376a8ff90a38fad0ff322c72c2995765
tree95729b4e82e14d795b481df7902da07be8c9ab67
parent4c2c679ff9fc18054795b9b7b28e37453e57d146
Add /d, /l, /u (infixed) regex modifiers

This patch adds recognition of these modifiers, with appropriate action
for d and l.  u does nothing useful yet.  This allows for the
interpolation of a regex into another one without losing the character
set semantics that it was compiled with, as for the first time, the
semantics is now specified in the stringification as one of these
modifiers.

To this end, it allocates an unused bit in the structures.  The off-
sets change so as to not disturb other bits.
13 files changed:
op.c
op.h
op_reg_common.h
pod/perldelta.pod
pod/perldiag.pod
pod/perlre.pod
regcomp.c
regexp.h
regnodes.h
t/re/pat.t
t/re/re.t
t/re/reg_mesg.t
universal.c