[w3m-dev 03491] Re: case insensitive regexp search
* regex.c (matchWhich): tolower From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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
|
||||
@@ -5195,4 +5200,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
||||
* release-0-2-1
|
||||
* import w3m-0.2.1
|
||||
|
||||
$Id: ChangeLog,v 1.563 2002/11/26 18:03:18 ukai Exp $
|
||||
$Id: ChangeLog,v 1.564 2002/11/26 18:51:15 ukai Exp $
|
||||
|
||||
6
regex.c
6
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user