diff options
author | David Mitchell <davem@iabyn.com> | 2013-04-18 15:42:35 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2013-04-20 17:23:12 +0100 |
commit | aec899470a3eab4f34d5c0404678e42b6823085a (patch) | |
tree | 358ae5884bc26cfa6d61333f708080a693cad4c0 /op.c | |
parent | f38c51964e1ebd1ac1abf7e8ae85f728ae25b97b (diff) | |
download | perl-aec899470a3eab4f34d5c0404678e42b6823085a.tar.gz |
S_pat_upgrade_to_utf8(): add num_code_blocks arg
This function was added a few commits ago in this branch. It's intended
to upgrade a pattern string to utf8, while simultaneously adjusting the
start/end byte indices of any code blocks. In two of the three places
it is called from, all code blocks will already have been processed,
so the number of code blocks equals pRExC_state->num_code_blocks.
In the third place however (S_concat_pat), not all code blocks have yet
been processed, so using num_code_blocks causes us to fall off the end of
the index array.
Add an extra arg to S_pat_upgrade_to_utf8() to tell it how many code
blocks exist so far.
Diffstat (limited to 'op.c')
0 files changed, 0 insertions, 0 deletions