w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 4d69122c2fc2aa968c604f0f8df6fc1268f96fb5
parent e140b719f5e40d5b3936d69395571c7cfddab304
Author: ukai <ukai>
Date:   Tue, 26 Nov 2002 18:51:15 +0000

[w3m-dev 03491] Re: case insensitive regexp search
* regex.c (matchWhich): tolower
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mregex.c | 4++--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2002-11-27 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03491] Re: case insensitive regexp search + * regex.c (matchWhich): tolower + +2002-11-27 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * use local_cookie for support local-cgi commands * file.c (loadGeneralFile): pass Local_cookie to DirBufferCommand * fm.h (Local_cookie): Str diff --git a/regex.c b/regex.c @@ -660,8 +660,8 @@ matchWhich(longchar * pattern, longchar c, int igncase) break; } else if (igncase && c < 127 && IS_ALPHA(c) && - ((*p <= c && tolower(c) <= *(p + 2)) || - (*p <= c && toupper(c) <= *(p + 2)))) { + ((*p <= tolower(c) && tolower(c) <= *(p + 2)) || + (*p <= toupper(c) && toupper(c) <= *(p + 2)))) { ans = 1; break; }