|
|
| version 1.1, 2002/06/21 12:42:20 | version 1.2, 2003/11/20 15:35:30 |
|---|---|
| Line 75 p = yield; | Line 75 p = yield; |
| /* First comes the lower casing table */ | /* First comes the lower casing table */ |
| for (i = 0; i < 256; i++) *p++ = tolower(i); | for (i = 0; i < 256; i++) *p++ = (unsigned char)tolower(i); |
| /* Next the case-flipping table */ | /* Next the case-flipping table */ |
| for (i = 0; i < 256; i++) *p++ = islower(i)? toupper(i) : tolower(i); | for (i = 0; i < 256; i++) *p++ = (unsigned char)(islower(i)? toupper(i) : tolower(i)); |
| /* Then the character class tables */ | /* Then the character class tables */ |
| Line 104 for (i = 0; i < 256; i++) | Line 104 for (i = 0; i < 256; i++) |
| if (isxdigit(i)) x += ctype_xdigit; | if (isxdigit(i)) x += ctype_xdigit; |
| if (isalnum(i) || i == '_') x += ctype_word; | if (isalnum(i) || i == '_') x += ctype_word; |
| if (strchr("*+?{^.$|()[", i) != 0) x += ctype_meta; | if (strchr("*+?{^.$|()[", i) != 0) x += ctype_meta; |
| *p++ = x; | *p++ = (unsigned char)x; |
| } | } |
| return yield; | return yield; |