123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- #ifndef _CTYPE_H
- #define _CTYPE_H
- #include <features.h>
- #include <bits/uClibc_ctype.h>
- __BEGIN_DECLS
- extern int isalnum(int c) __THROW;
- extern int isalpha(int c) __THROW;
- #ifdef __USE_ISOC99
- extern int isblank(int c) __THROW;
- #endif
- extern int iscntrl(int c) __THROW;
- extern int isdigit(int c) __THROW;
- extern int isgraph(int c) __THROW;
- extern int islower(int c) __THROW;
- extern int isprint(int c) __THROW;
- extern int ispunct(int c) __THROW;
- extern int isspace(int c) __THROW;
- extern int isupper(int c) __THROW;
- extern int isxdigit(int c) __THROW;
- extern int tolower(int c) __THROW;
- extern int toupper(int c) __THROW;
- #if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
- extern int isascii(int c) __THROW;
- extern int toascii(int c) __THROW;
- #endif
- #ifdef __USE_MISC
- extern int isxlower(int c) __THROW;
- extern int isxupper(int c) __THROW;
- #endif
- #define __isspace(c) __C_isspace(c)
- #define __isblank(c) __C_isblank(c)
- #define __isdigit(c) __C_isdigit(c)
- #define __isxdigit(c) __C_isxdigit(c)
- #define __isascii(c) (((c) & ~0x7f) == 0)
- #define __toascii(c) ((c) & 0x7f)
- #define _toupper(c) ((c) ^ 0x20)
- #define _tolower(c) ((c) | 0x20)
- #define __isxlower(c) __C_isxlower(c)
- #define __isxupper(c) __C_isxupper(c)
- #if 0
- #define isdigit(c) __isdigit(c)
- #define isxdigit(c) __isxdigit(c)
- #define isspace(c) __isspace(c)
- #ifdef __USE_ISOC99
- #define isblank(c) __isblank(c)
- #endif
- #if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
- #define isascii(c) __isascii(c)
- #define toascii(c) __toascii(c)
- #endif
- #ifdef __USE_MISC
- #define isxlower(c) __C_isxlower(c)
- #define isxupper(c) __C_isxupper(c)
- #endif
- #ifndef __UCLIBC_HAS_LOCALE__
- #define isalnum(c) __C_isalnum(c)
- #define isalpha(c) __C_isalpha(c)
- #define iscntrl(c) __C_iscntrl(c)
- #define isgraph(c) __C_isgraph(c)
- #define islower(c) __C_islower(c)
- #define isprint(c) __C_isprint(c)
- #define ispunct(c) __C_ispunct(c)
- #define isupper(c) __C_isupper(c)
- #define tolower(c) __C_tolower(c)
- #define toupper(c) __C_toupper(c)
- #endif
- #endif
- __END_DECLS
- #endif
|