Go to the source code of this file.
Defines | |||
#define | _U 0x01 | ||
upper. | |||
#define | _L 0x02 | ||
lower. | |||
#define | _D 0x04 | ||
digit. | |||
#define | _C 0x08 | ||
cntrl. | |||
#define | _P 0x10 | ||
punct. | |||
#define | _S 0x20 | ||
white space (space/lf/tab). | |||
#define | _X 0x40 | ||
hex digit. | |||
#define | _SP 0x80 | ||
hard space (0x20). | |||
#define | __ismask(x) (_ctype[(int)(unsigned char)(x)]) | ||
#define | isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) | ||
Return a value != 0 only if c is an alphanumeric character. | |||
#define | isalpha(c) ((__ismask(c)&(_U|_L)) != 0) | ||
Return a value != 0 only if c is an alphabetic character. | |||
#define | iscntrl(c) ((__ismask(c)&(_C)) != 0) | ||
Return a value != 0 only if c is a control character. | |||
#define | isdigit(c) ((__ismask(c)&(_D)) != 0) | ||
Return a value != 0 only if c is a digit character. | |||
#define | isgraph(c) ((__ismask(c)&(_P|_U|_L|_D)) != 0) | ||
Return a value != 0 only if c is a printable (not a space) character. | |||
#define | islower(c) ((__ismask(c)&(_L)) != 0) | ||
Return a value != 0 only if c is a lower case character. | |||
#define | isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0) | ||
Return a value != 0 only if c is a printable character. | |||
#define | ispunct(c) ((__ismask(c)&(_P)) != 0) | ||
Return a value != 0 only if c is a punctuation-mark. | |||
#define | isspace(c) ((__ismask(c)&(_S)) != 0) | ||
Return a value != 0 only if c is an empty space like TAB, CR, LF... | |||
#define | isupper(c) ((__ismask(c)&(_U)) != 0) | ||
Return a value != 0 only if c is an upper case character. | |||
#define | isxdigit(c) ((__ismask(c)&(_D|_X)) != 0) | ||
Return a value != 0 only if c is a hexadecimal digit. | |||
#define | isascii(c) (((unsigned char)(c))<=0x7f) | ||
Return a value != 0 only if c is an ASCII character <= 127. | |||
#define | toascii(c) (((unsigned char)(c))&0x7f) | ||
Return only the ASCII lower 7 bits of the c character. | |||
#define | tolower(c) __tolower(c) | ||
Macro equivalent to __tolower(c). | |||
#define | toupper(c) __toupper(c) | ||
Macro equivalent to __toupper(c). | |||
Functions | |||
unsigned char | __tolower (unsigned char c) | ||
Convert a character into the lower case.
| |||
unsigned char | __toupper (unsigned char c) | ||
Convert a character into the upper case.
| |||
Variables | |||
unsigned char | _ctype [] |
Definition in file ctype.h.
|
|
|
cntrl.
|
|
digit.
|
|
lower.
|
|
punct.
|
|
white space (space/lf/tab).
|
|
hard space (0x20).
|
|
upper.
|
|
hex digit.
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return a value != 0 only if
|
|
Return only the ASCII lower 7 bits of the
|
|
Macro equivalent to __tolower(c).
|
|
Macro equivalent to __toupper(c).
|
|
Convert a character into the lower case.
Definition at line 61 of file ctype.h.
00062 { 00063 if (isupper(c)) 00064 c -= 'A'-'a'; 00065 return c; 00066 } |
|
Convert a character into the upper case.
Definition at line 71 of file ctype.h.
00072 { 00073 if (islower(c)) 00074 c -= 'a'-'A'; 00075 return c; 00076 } |
|
|