rtxCtype.h File Reference

Go to the source code of this file.

Defines

#define OS_ISASCII(c)   ((unsigned)(c) < 0x80)
#define OS_ISUPPER(c)   (c >= 'A' && c <= 'Z')
#define OS_ISLOWER(c)   (c >= 'a' && c <= 'z')
#define OS_ISDIGIT(c)   (c >= '0' && c <= '9')
#define OS_ISALPHA(c)   (OS_ISUPPER(c) || OS_ISLOWER(c))
#define OS_ISSPACE(c)   ((c >= 0x09 && c <= 0x0d) || (c == ' '))
#define OS_ISPUNCT(c)   (c >= 0 && c <= 0x20)
#define OS_ISALNUM(c)   (OS_ISALPHA(c) || OS_ISDIGIT(c))
#define OS_ISPRINT(c)   (c >= ' ' && c <= '~')
#define OS_ISGRAPH(c)   (c >= '!' && c <= '~')
#define OS_ISCNTRL(c)   ((c >= 0 && c <= 0x1F) || c == 0x7F)
#define OS_ISXDIGIT(c)   (OS_ISDIGIT(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'))
#define OS_TOLOWER(c)   (OS_ISUPPER(c) ? (c) - 'A' + 'a' : (c))
#define OS_TOUPPER(c)   (OS_ISLOWER(c) ? (c) - 'a' + 'A' : (c))

Detailed Description