|
Revision 8245, 2.9 kB
(checked in by vboxsync, 7 months ago)
|
rebranding: IPRT files again.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
#ifndef ___iprt_ctype_h |
|---|
| 31 |
#define ___iprt_ctype_h |
|---|
| 32 |
|
|---|
| 33 |
#ifdef IN_RING3 |
|---|
| 34 |
# include <ctype.h> |
|---|
| 35 |
|
|---|
| 36 |
# if defined(_MSC_VER) && !defined(isblank) |
|---|
| 37 |
|
|---|
| 38 |
# define isblank(ch) ( (ch) == ' ' || (ch) == '\t' ) |
|---|
| 39 |
# endif |
|---|
| 40 |
#endif |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
#define RT_C_IS_BLANK(ch) ( (ch) == ' ' || (ch) == '\t' ) |
|---|
| 49 |
#define RT_C_IS_ALNUM(ch) ( RT_C_IS_DIGIT(ch) || RT_C_IS_ALPHA(ch) ) |
|---|
| 50 |
#define RT_C_IS_ALPHA(ch) ( RT_C_IS_LOWER(ch) || RT_C_IS_UPPER(ch) ) |
|---|
| 51 |
#define RT_C_IS_CNTRL(ch) ( (ch) >= 0 && (ch) < 32 ) |
|---|
| 52 |
#define RT_C_IS_DIGIT(ch) ( (ch) >= '0' && (ch) <= '9' ) |
|---|
| 53 |
#define RT_C_IS_LOWER(ch) ( (ch) >= 'a' && (ch) <= 'z' ) |
|---|
| 54 |
#define RT_C_IS_GRAPH(ch) ( RT_C_IS_PRINT(ch) && !RT_C_IS_BLANK(ch) ) |
|---|
| 55 |
#define RT_C_IS_ODIGIT(ch) ( (ch) >= '0' && (ch) <= '7' ) |
|---|
| 56 |
#define RT_C_IS_PRINT(ch) ( (ch) >= 32 && (ch) < 127 ) |
|---|
| 57 |
#define RT_C_IS_PUNCT(ch) ( (ch) == ',' || (ch) == '.' || (ch) == ':' || (ch) == ';' || (ch) == '!' || (ch) == '?' ) |
|---|
| 58 |
#define RT_C_IS_SPACE(ch) ( (ch) == ' ' || (ch) == '\t' || (ch) == '\n' || (ch) == '\r' || (ch) == '\f' || (ch) == '\v' ) |
|---|
| 59 |
#define RT_C_IS_UPPER(ch) ( (ch) >= 'A' && (ch) <= 'Z' ) |
|---|
| 60 |
#define RT_C_IS_XDIGIT(ch) ( RT_C_IS_DIGIT(ch) || ((ch) >= 'a' && (ch) <= 'f') || ((ch) >= 'A' && (ch) <= 'F') ) |
|---|
| 61 |
|
|---|
| 62 |
#define RT_C_TO_LOWER(ch) ( RT_C_IS_UPPER(ch) ? (ch) + ('a' - 'A') : (ch) ) |
|---|
| 63 |
#define RT_C_TO_UPPER(ch) ( RT_C_IS_LOWER(ch) ? (ch) - ('a' - 'A') : (ch) ) |
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
#endif |
|---|
| 67 |
|
|---|