aboutsummaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-26 18:51:15 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-26 18:51:15 +0000
commit49f02daae5db143652b8f280850993c29fab721c (patch)
tree7928b9413a3f28b6193ca5ff0ea06becb097a6e4 /regex.c
parentuse local_cookie for support local-cgi commands (diff)
downloadw3m-49f02daae5db143652b8f280850993c29fab721c.tar.gz
w3m-49f02daae5db143652b8f280850993c29fab721c.zip
[w3m-dev 03491] Re: case insensitive regexp search
* regex.c (matchWhich): tolower From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--regex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regex.c b/regex.c
index 3b04ceb..15a1fd0 100644
--- a/regex.c
+++ b/regex.c
@@ -1,4 +1,4 @@
-/* $Id: regex.c,v 1.18 2002/11/22 15:57:29 ukai Exp $ */
+/* $Id: regex.c,v 1.19 2002/11/26 18:51:15 ukai Exp $ */
/*
* regex: Regular expression pattern match library
*
@@ -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;
}