Go to the documentation of this file. 32 #define OS_ISASCII(c) ((unsigned)(c) < 0x80) 34 #define OS_ISUPPER(c) (c >= 'A' && c <= 'Z') 35 #define OS_ISLOWER(c) (c >= 'a' && c <= 'z') 36 #define OS_ISDIGIT(c) (c >= '0' && c <= '9') 37 #define OS_ISALPHA(c) (OS_ISUPPER(c) || OS_ISLOWER(c)) 38 #define OS_ISSPACE(c) ((c >= 0x09 && c <= 0x0d) || (c == ' ')) 39 #define OS_ISPUNCT(c) (c >= 0 && c <= 0x20) 40 #define OS_ISALNUM(c) (OS_ISALPHA(c) || OS_ISDIGIT(c)) 41 #define OS_ISPRINT(c) (c >= ' ' && c <= '~') 42 #define OS_ISGRAPH(c) (c >= '!' && c <= '~') 43 #define OS_ISCNTRL(c) ((c >= 0 && c <= 0x1F) || c == 0x7F) 44 #define OS_ISXDIGIT(c) \ 45 (OS_ISDIGIT(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f')) 46 #define OS_ISBASE64(c) (OS_ISALNUM(c) || c == '+' || c == '/' || c == '=') 48 #define OS_TOLOWER(c) (OS_ISUPPER(c) ? (c) - 'A' + 'a' : (c)) 49 #define OS_TOUPPER(c) (OS_ISLOWER(c) ? (c) - 'a' + 'A' : (c))