Rev 215 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 215 | Rev 647 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | #define isprint(c)(_is[c] & PRINT ) /* ' '-'~' */ |
27 | #define isprint(c)(_is[c] & PRINT ) /* ' '-'~' */ |
28 | #define ispunct(c)(_is[c] & PUNCT ) /* !alnum && !cntrl && !space */ |
28 | #define ispunct(c)(_is[c] & PUNCT ) /* !alnum && !cntrl && !space */ |
29 | #define isspace(c)(_is[c] & BLANK ) /* HT, LF, VT, FF, CR, ' ' */ |
29 | #define isspace(c)(_is[c] & BLANK ) /* HT, LF, VT, FF, CR, ' ' */ |
30 | #define isupper(c)(_is[c] & UPPER ) /* 'A'-'Z' */ |
30 | #define isupper(c)(_is[c] & UPPER ) /* 'A'-'Z' */ |
31 | #define isxdigit(c)(_is[c] & XDIGIT) /* '0'-'9', 'a'-'f', 'A'-'F' */ |
31 | #define isxdigit(c)(_is[c] & XDIGIT) /* '0'-'9', 'a'-'f', 'A'-'F' */ |
- | 32 | ||
- | 33 | #define isascii(c) (!((c)&(~0x7f))) |
|
- | 34 | #define toascii(c) ((c)&0x7f) |
|
- | 35 |