From: Martin Mares Date: Fri, 30 Mar 2001 18:42:56 +0000 (+0000) Subject: Cupcase() works even for non-letters, so there is no need to call Cupper(). X-Git-Tag: holmes-import~1490 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f4c16347b6a8c1fa1b7ea6df4f4714f22e7293d5;p=libucw.git Cupcase() works even for non-letters, so there is no need to call Cupper(). --- diff --git a/lib/regex.c b/lib/regex.c index dd08c499..2e9db4b7 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -36,7 +36,7 @@ rx_compile(byte *p, int icase) r->buf.translate = xmalloc (CHAR_SET_SIZE); /* Map uppercase characters to corresponding lowercase ones. */ for (i = 0; i < CHAR_SET_SIZE; i++) - r->buf.translate[i] = Clower(i) ? Cupcase(i) : i; + r->buf.translate[i] = Cupcase(i); } else r->buf.translate = NULL;