| /* A part of the Native C Library for Windows NT |
| Copyright 2007-2015 PC GO Ld. |
| Copyright 2026 Rivoreo |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or (at |
| your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| General Public License for more details. |
| */ |
| |
| #ifndef _CTYPE_H |
| #define _CTYPE_H |
| |
| #define _CTYPE_ALPHA 0x00000100 |
| #define _CTYPE_CNTRL 0x00000200 |
| #define _CTYPE_DIGIT 0x00000400 |
| #define _CTYPE_GRAPH 0x00000800 |
| #define _CTYPE_LOWER 0x00001000 |
| #define _CTYPE_PUNCT 0x00002000 |
| #define _CTYPE_SPACE 0x00004000 |
| #define _CTYPE_UPPER 0x00008000 |
| #define _CTYPE_XDIGIT 0x00010000 |
| #define _CTYPE_BLANK 0x00020000 |
| #define _CTYPE_PRINT 0x00040000 |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| int __isctype(int, unsigned int); |
| |
| int isalnum(int); |
| int isalpha(int); |
| int isblank(int); |
| int iscntrl(int); |
| int isdigit(int); |
| int isgraph(int); |
| int islower(int); |
| int isprint(int); |
| int ispunct(int); |
| int isspace(int); |
| int isupper(int); |
| int isxdigit(int); |
| |
| int tolower(int); |
| int toupper(int); |
| |
| #if !defined __NO_CTYPE && !defined __cplusplus |
| # define isalnum(c) __isctype((c), _CTYPE_ALPHA | _CTYPE_DIGIT) |
| # define isalpha(c) __isctype((c), _CTYPE_ALPHA) |
| # define isblank(c) __isctype((c), _CTYPE_BLANK) |
| # define iscntrl(c) __isctype((c), _CTYPE_CNTRL) |
| # define isdigit(c) __isctype((c), _CTYPE_DIGIT) |
| # define islower(c) __isctype((c), _CTYPE_LOWER) |
| # define isgraph(c) __isctype((c), _CTYPE_GRAPH) |
| # define isprint(c) __isctype((c), _CTYPE_PRINT) |
| # define ispunct(c) __isctype((c), _CTYPE_PUNCT) |
| # define isspace(c) __isctype((c), _CTYPE_SPACE) |
| # define isupper(c) __isctype((c), _CTYPE_UPPER) |
| # define isxdigit(c) __isctype((c), _CTYPE_XDIGIT) |
| # define isascii(c) (((c) & ~0x7f) == 0) |
| # define toascii(c) ((c) & ~0x7f) |
| #endif |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif |