Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenwctype.h
Go to the documentation of this file.
00001 00006 #ifndef _INC_WCTYPE 00007 #define _INC_WCTYPE 00008 00009 #ifndef _WIN32 00010 #error Only Win32 target is supported! 00011 #endif 00012 00013 #include <crtdefs.h> 00014 00015 #pragma pack(push,_CRT_PACKING) 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00021 #ifndef _CRTIMP 00022 #define _CRTIMP __declspec(dllimport) 00023 #endif 00024 00025 #ifndef _WCHAR_T_DEFINED 00026 typedef unsigned short wchar_t; 00027 #define _WCHAR_T_DEFINED 00028 #endif 00029 00030 #ifndef _WCTYPE_T_DEFINED 00031 typedef unsigned short wint_t; 00032 typedef unsigned short wctype_t; 00033 #define _WCTYPE_T_DEFINED 00034 #endif 00035 00036 #ifndef WEOF 00037 #define WEOF (wint_t)(0xFFFF) 00038 #endif 00039 00040 #ifndef _CRT_CTYPEDATA_DEFINED 00041 #define _CRT_CTYPEDATA_DEFINED 00042 #ifndef _CTYPE_DISABLE_MACROS 00043 00044 #ifndef __PCTYPE_FUNC 00045 #define __PCTYPE_FUNC __pctype_func() 00046 #ifdef _MSVCRT_ 00047 #define __pctype_func() (_pctype) 00048 #else 00049 #define __pctype_func() (*_imp___pctype) 00050 #endif 00051 #endif 00052 00053 #ifndef _pctype 00054 #ifdef _MSVCRT_ 00055 extern unsigned short *_pctype; 00056 #else 00057 extern unsigned short **_imp___pctype; 00058 #define _pctype (*_imp___pctype) 00059 #endif 00060 #endif 00061 00062 #endif 00063 #endif 00064 00065 #ifndef _CRT_WCTYPEDATA_DEFINED 00066 #define _CRT_WCTYPEDATA_DEFINED 00067 #ifndef _CTYPE_DISABLE_MACROS 00068 #ifndef _wctype 00069 #ifdef _MSVCRT_ 00070 extern unsigned short *_wctype; 00071 #else 00072 extern unsigned short **_imp___wctype; 00073 #define _wctype (*_imp___wctype) 00074 #endif 00075 #endif 00076 00077 #ifndef _pwctype 00078 #ifdef _MSVCRT_ 00079 extern unsigned short *_pwctype; 00080 #else 00081 extern unsigned short **_imp___pwctype; 00082 #define _pwctype (*_imp___pwctype) 00083 #define __pwctype_func() (*_imp___pwctype) 00084 #endif 00085 #endif 00086 #endif 00087 #endif 00088 00089 #define _UPPER 0x1 00090 #define _LOWER 0x2 00091 #define _DIGIT 0x4 00092 #define _SPACE 0x8 00093 00094 #define _PUNCT 0x10 00095 #define _CONTROL 0x20 00096 #define _BLANK 0x40 00097 #define _HEX 0x80 00098 00099 #define _LEADBYTE 0x8000 00100 #define _ALPHA (0x0100|_UPPER|_LOWER) 00101 00102 #ifndef _WCTYPE_DEFINED 00103 #define _WCTYPE_DEFINED 00104 00105 int __cdecl iswalpha(wint_t); 00106 int __cdecl iswupper(wint_t); 00107 int __cdecl iswlower(wint_t); 00108 int __cdecl iswdigit(wint_t); 00109 int __cdecl iswxdigit(wint_t); 00110 int __cdecl iswspace(wint_t); 00111 int __cdecl iswpunct(wint_t); 00112 int __cdecl iswalnum(wint_t); 00113 int __cdecl iswprint(wint_t); 00114 int __cdecl iswgraph(wint_t); 00115 int __cdecl iswcntrl(wint_t); 00116 int __cdecl iswascii(wint_t); 00117 int __cdecl isleadbyte(int); 00118 wint_t __cdecl towupper(wint_t); 00119 wint_t __cdecl towlower(wint_t); 00120 int __cdecl iswctype(wint_t,wctype_t); 00121 _CRTIMP int __cdecl __iswcsymf(wint_t); 00122 _CRTIMP int __cdecl __iswcsym(wint_t); 00123 int __cdecl is_wctype(wint_t,wctype_t); 00124 #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || !defined (NO_OLDNAMES) 00125 _CRTIMP int __cdecl iswblank(wint_t _C); 00126 #endif 00127 #endif 00128 00129 #ifndef _WCTYPE_INLINE_DEFINED 00130 #define _WCTYPE_INLINE_DEFINED 00131 #ifndef __cplusplus 00132 #define iswalpha(_c) (iswctype(_c,_ALPHA)) 00133 #define iswupper(_c) (iswctype(_c,_UPPER)) 00134 #define iswlower(_c) (iswctype(_c,_LOWER)) 00135 #define iswdigit(_c) (iswctype(_c,_DIGIT)) 00136 #define iswxdigit(_c) (iswctype(_c,_HEX)) 00137 #define iswspace(_c) (iswctype(_c,_SPACE)) 00138 #define iswpunct(_c) (iswctype(_c,_PUNCT)) 00139 #define iswalnum(_c) (iswctype(_c,_ALPHA|_DIGIT)) 00140 #define iswprint(_c) (iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT)) 00141 #define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT)) 00142 #define iswcntrl(_c) (iswctype(_c,_CONTROL)) 00143 #define iswascii(_c) ((unsigned)(_c) < 0x80) 00144 #define isleadbyte(c) (__pctype_func()[(unsigned char)(c)] & _LEADBYTE) 00145 #else 00146 __CRT_INLINE int __cdecl iswalpha(wint_t _C) {return (iswctype(_C,_ALPHA)); } 00147 __CRT_INLINE int __cdecl iswupper(wint_t _C) {return (iswctype(_C,_UPPER)); } 00148 __CRT_INLINE int __cdecl iswlower(wint_t _C) {return (iswctype(_C,_LOWER)); } 00149 __CRT_INLINE int __cdecl iswdigit(wint_t _C) {return (iswctype(_C,_DIGIT)); } 00150 __CRT_INLINE int __cdecl iswxdigit(wint_t _C) {return (iswctype(_C,_HEX)); } 00151 __CRT_INLINE int __cdecl iswspace(wint_t _C) {return (iswctype(_C,_SPACE)); } 00152 __CRT_INLINE int __cdecl iswpunct(wint_t _C) {return (iswctype(_C,_PUNCT)); } 00153 __CRT_INLINE int __cdecl iswalnum(wint_t _C) {return (iswctype(_C,_ALPHA|_DIGIT)); } 00154 __CRT_INLINE int __cdecl iswprint(wint_t _C) {return (iswctype(_C,_BLANK|_PUNCT|_ALPHA|_DIGIT)); } 00155 __CRT_INLINE int __cdecl iswgraph(wint_t _C) {return (iswctype(_C,_PUNCT|_ALPHA|_DIGIT)); } 00156 __CRT_INLINE int __cdecl iswcntrl(wint_t _C) {return (iswctype(_C,_CONTROL)); } 00157 __CRT_INLINE int __cdecl iswascii(wint_t _C) {return ((unsigned)(_C) < 0x80); } 00158 __CRT_INLINE int __cdecl isleadbyte(int _C) {return (__pctype_func()[(unsigned char)(_C)] & _LEADBYTE); } 00159 #endif 00160 #endif 00161 00162 typedef wchar_t wctrans_t; 00163 wint_t __cdecl towctrans(wint_t,wctrans_t); 00164 wctrans_t __cdecl wctrans(const char *); 00165 wctype_t __cdecl wctype(const char *); 00166 00167 #ifdef __cplusplus 00168 } 00169 #endif 00170 00171 #pragma pack(pop) 00172 #endif Generated on Mon May 28 2012 04:29:42 for ReactOS by
1.7.6.1
|