summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-01-01 18:27:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-01 18:27:50 +0000
commit0b20a7e9c202dd47ad80fa74a4b74690d7d37bd5 (patch)
tree585cae4c8711231690ecd63879e82287400db073 /regexec.c
parentd3fa951d1a777fed63c03612068547db2a6ed82f (diff)
downloadperl-0b20a7e9c202dd47ad80fa74a4b74690d7d37bd5.tar.gz
Now that to_utf8_fold() was fixed.
p4raw-id: //depot/perl@14004
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/regexec.c b/regexec.c
index 4db47290fa..be1f2b2b9b 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1002,8 +1002,7 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta
goto got_it;
else {
uvchr_to_utf8(tmpbuf, c);
- to_utf8_fold(tmpbuf, foldbuf, &foldlen);
- f = utf8_to_uvchr(foldbuf, 0);
+ f = to_utf8_fold(tmpbuf, foldbuf, &foldlen);
if ( f != c
&& (f == c1 || f == c2)
&& (ln == foldlen ||
@@ -1041,8 +1040,7 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta
goto got_it;
else {
uvchr_to_utf8(tmpbuf, c);
- to_utf8_fold(tmpbuf, foldbuf, &foldlen);
- f = utf8_to_uvchr(foldbuf, 0);
+ f = to_utf8_fold(tmpbuf, foldbuf, &foldlen);
if ( f != c
&& (f == c1 || f == c2)
&& (ln == foldlen ||