This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add Perl_reg_set_capture_string() function
authorDavid Mitchell <davem@iabyn.com>
Sat, 15 Jun 2013 16:54:10 +0000 (17:54 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 28 Jul 2013 09:33:34 +0000 (10:33 +0100)
commit60165aa4bc7ef12661c54168e5dd07abb3881564
tree2a9f0928bc9ca82ce666abf8967eba4be1a0a0c1
parent8088f39e7b6276147727ae77eecaa0bb20cfbf2d
add Perl_reg_set_capture_string() function

Cut and paste into a separate function, the block of code in
regexec_flags() that is responsible (on successful match) for setting
RX_SAVED_COPY, RX_SUBBEG etc, ready for use by capture vars like $1, $&.

Although this function is currently only called from one place, we will
shortly use it elsewhere too.

This should contain no functional changes.
embed.fnc
embed.h
proto.h
regexec.c