diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-11 17:12:49 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-11 17:12:49 +0000 |
commit | 30edbf31611701ee49012392542f33ef851b0523 (patch) | |
tree | 26d82b88bd406e18bce52667d4c5f819bbd6b302 /regexec.c | |
parent | 66fd8cb95c4406632e1d0e384b66b49a32063913 (diff) | |
download | perl-30edbf31611701ee49012392542f33ef851b0523.tar.gz |
Retract #8762.
p4raw-id: //depot/perl@8769
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -2075,6 +2075,13 @@ S_regmatch(pTHX_ regnode *prog) sayNO; break; case SANY: + if (do_utf8) { + locinput += PL_utf8skip[nextchr]; + if (locinput > PL_regeol) + sayNO; + nextchr = UCHARAT(locinput); + break; + } if (!nextchr && locinput >= PL_regeol) sayNO; nextchr = UCHARAT(++locinput); @@ -3556,7 +3563,15 @@ S_regrepeat(pTHX_ regnode *p, I32 max) } break; case SANY: - scan = loceol; + if (do_utf8) { + loceol = PL_regeol; + while (hardcount < max && scan < loceol) { + scan += UTF8SKIP(scan); + hardcount++; + } + } else { + scan = loceol; + } break; case EXACT: /* length of string is 1 */ c = (U8)*STRING(p); |