diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-18 14:24:42 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-18 14:24:42 +0000 |
commit | d9f424b23bb434af43f899daf2cb6cfe42fe6e1a (patch) | |
tree | a04a1a4067438cca3b5395a68ab540e71418e9c9 /mg.c | |
parent | 8b1981a6c4fcb68914e5a9c635d9471dbbe6f42a (diff) | |
download | perl-d9f424b23bb434af43f899daf2cb6cfe42fe6e1a.tar.gz |
New try for ID 20010407.006: detach the semantics
"was the last match target UTF8" into its own variable.
p4raw-id: //depot/perl@11717
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -392,7 +392,7 @@ Perl_magic_regdatum_get(pTHX_ SV *sv, MAGIC *mg) else /* @- */ i = s; - if (i > 0 && DO_UTF8(PL_reg_sv)) { + if (i > 0 && PL_reg_sv_utf8) { char *b = rx->subbeg; if (b) i = Perl_utf8_length(aTHX_ (U8*)b, (U8*)(b+i)); @@ -433,7 +433,7 @@ Perl_magic_len(pTHX_ SV *sv, MAGIC *mg) { i = t1 - s1; getlen: - if (i > 0 && DO_UTF8(PL_reg_sv)) { + if (i > 0 && PL_reg_sv_utf8) { char *s = rx->subbeg + s1; char *send = rx->subbeg + t1; @@ -666,7 +666,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg) PL_tainted = FALSE; } sv_setpvn(sv, s, i); - if (PL_reg_sv && DO_UTF8(PL_reg_sv) && is_utf8_string((U8*)s, i)) + if (PL_reg_sv_utf8 && is_utf8_string((U8*)s, i)) SvUTF8_on(sv); else SvUTF8_off(sv); |