X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fchartype.h;h=4eea477dcada8f1c5ed9edf53d08f0f627e4f26c;hb=997624f88f37bec5cb96cf9fc3b3cac05ccc6ed8;hp=ef08205e9777db000edcc39c6ccd90a81296dd0e;hpb=b27eca618acf30cf59bedc41d0d099cf6f3e28b2;p=libucw.git diff --git a/lib/chartype.h b/lib/chartype.h index ef08205e..4eea477d 100644 --- a/lib/chartype.h +++ b/lib/chartype.h @@ -1,7 +1,7 @@ /* * Sherlock Library -- Character Types * - * (c) 1997 Martin Mares + * (c) 1997--2004 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. @@ -24,7 +24,7 @@ #define _C_WORD (_C_ALNUM | _C_INNER) #define _C_WSTART (_C_ALPHA | _C_INNER) -extern const unsigned char _c_cat[256], _c_upper[256]; +extern const unsigned char _c_cat[256], _c_upper[256], _c_lower[256]; #define Category(x) (_c_cat[(unsigned char)(x)]) #define Ccat(x,y) (Category(x) & y) @@ -42,6 +42,7 @@ extern const unsigned char _c_cat[256], _c_upper[256]; #define Cspace(x) Cblank(x) #define Cupcase(x) _c_upper[(unsigned char)(x)] +#define Clocase(x) _c_lower[(unsigned char)(x)] #define Cxvalue(x) (((x)<'A')?((x)-'0'):(((x)&0xdf)-'A'+10))