diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-24 20:15:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-24 20:15:51 +0000 |
commit | 4a623e436d71abaaa4d1ebda0aec183af7a6eb53 (patch) | |
tree | b52fc7d1c34d7d2a14aa708f9c189bd276c16ea2 /regexec.c | |
parent | 2f3bf0116fb4a02e09f97f517a7e1ff497539a2d (diff) | |
download | perl-4a623e436d71abaaa4d1ebda0aec183af7a6eb53.tar.gz |
Tiny code cleanup.
p4raw-id: //depot/perl@14856
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -4260,9 +4260,6 @@ S_reginclasslen(pTHX_ register regnode *n, register U8* p, STRLEN* lenp, registe if (swash_fetch(sw, p, do_utf8)) match = TRUE; else if (flags & ANYOF_FOLD) { - U8 tmpbuf[UTF8_MAXLEN_FOLD+1]; - STRLEN tmplen; - if (!match && lenp && av) { I32 i; @@ -4279,15 +4276,13 @@ S_reginclasslen(pTHX_ register regnode *n, register U8* p, STRLEN* lenp, registe } } if (!match) { + U8 tmpbuf[UTF8_MAXLEN_FOLD+1]; + STRLEN tmplen; + to_utf8_fold(p, tmpbuf, &tmplen); if (swash_fetch(sw, tmpbuf, do_utf8)) match = TRUE; } - if (!match) { - to_utf8_upper(p, tmpbuf, &tmplen); - if (swash_fetch(sw, tmpbuf, do_utf8)) - match = TRUE; - } } } } |