Perl_re_op_compile(): add S_pat_upgrade_to_utf8()
authorDavid Mitchell <davem@iabyn.com>
Mon, 15 Apr 2013 13:20:40 +0000 (14:20 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sat, 20 Apr 2013 16:23:12 +0000 (17:23 +0100)
commit865743b28d75b008dc85ed78f1dda14f622c93c4
tree8d1e500d7161c311fd56f558801493e8686afc6d
parentc9faaf043f46e24bff598696e3c3504501d23e81
Perl_re_op_compile(): add S_pat_upgrade_to_utf8()

Extract out the code that upgrades the pattern string to utf8 (and adjusts
any code-block indices) into a separate function, S_pat_upgrade_to_utf8().

As well as being tidier, we'll be calling the code from other places
shortly.
regcomp.c