Subversion Repositories Kolibri OS

Rev

Rev 6424 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6424 Rev 6432
Line 14... Line 14...
14
#define __PUNCT   128
14
#define __PUNCT   128
15
#define __BLANK   256
15
#define __BLANK   256
16
#define __UPPER   512
16
#define __UPPER   512
17
#define __XDIGIT 1024
17
#define __XDIGIT 1024
Line 18... Line 18...
18
 
18
 
Line 19... Line 19...
19
extern char __is[128];
19
extern unsigned short __is[128];
20
 
20
 
21
#define isalnum(c)(__is[c] & __ALNUM ) /* 'a'-'z', 'A'-'Z', '0'-'9' */
21
#define isalnum(c)(__is[c+1] & __ALNUM ) /* 'a'-'z', 'A'-'Z', '0'-'9' */
22
#define isalpha(c)(__is[c] & __ALPHA ) /* 'a'-'z', 'A'-'Z' */
22
#define isalpha(c)(__is[c+1] & __ALPHA ) /* 'a'-'z', 'A'-'Z' */
23
#define iscntrl(c)(__is[c] & __CNTRL ) /* 0-31, 127 */
23
#define iscntrl(c)(__is[c+1] & __CNTRL ) /* 0-31, 127 */
24
#define isdigit(c)(__is[c] & __DIGIT ) /* '0'-'9' */
24
#define isdigit(c)(__is[c+1] & __DIGIT ) /* '0'-'9' */
25
#define isgraph(c)(__is[c] & __GRAPH ) /* '!'-'~' */
25
#define isgraph(c)(__is[c+1] & __GRAPH ) /* '!'-'~' */
26
#define islower(c)(__is[c] & __LOWER ) /* 'a'-'z' */
26
#define islower(c)(__is[c+1] & __LOWER ) /* 'a'-'z' */
27
#define isprint(c)(__is[c] & __PRINT ) /* ' '-'~' */
27
#define isprint(c)(__is[c+1] & __PRINT ) /* ' '-'~' */
28
#define ispunct(c)(__is[c] & __PUNCT ) /* !alnum && !cntrl && !space */
28
#define ispunct(c)(__is[c+1] & __PUNCT ) /* !alnum && !cntrl && !space */
29
#define isspace(c)(__is[c] & __BLANK ) /* HT, LF, VT, FF, CR, ' ' */
29
#define isspace(c)(__is[c+1] & __BLANK ) /* HT, LF, VT, FF, CR, ' ' */
Line 30... Line 30...
30
#define isupper(c)(__is[c] & __UPPER ) /* 'A'-'Z' */
30
#define isupper(c)(__is[c+1] & __UPPER ) /* 'A'-'Z' */
31
#define isxdigit(c)(__is[c] & __XDIGIT) /* '0'-'9', 'a'-'f', 'A'-'F' */
31
#define isxdigit(c)(__is[c+1] & __XDIGIT) /* '0'-'9', 'a'-'f', 'A'-'F' */