Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
EQUAL_CTYPE_MASK.cpp
Go to the documentation of this file.
1
// checking that ctype mask's for char and wchar_t are equal
2
3
25
#include "config.h"
26
27
#include <
locale.h
>
28
#include <
ctype.h
>
29
30
#ifndef _RWSTD_NO_WCTYPE_H
31
# include <
wctype.h
>
32
#endif
33
34
int
main
()
35
{
36
setlocale (
LC_ALL
,
"C"
);
37
38
for
(
int
i
= 0;
i
< 256; ++
i
) {
39
40
#ifndef _RWSTD_NO_ISWSPACE
41
if
(!!isspace (
i
) != !!iswspace (
i
))
42
return
1;
43
#endif
44
45
#ifndef _RWSTD_NO_ISWPRINT
46
if
(!!isprint (
i
) != !!iswprint (
i
))
47
return
1;
48
#endif
49
50
#ifndef _RWSTD_NO_ISWCNTRL
51
if
(!!iscntrl (
i
) != !!iswcntrl (
i
))
52
return
1;
53
#endif
54
55
#ifndef _RWSTD_NO_ISWUPPER
56
if
(!!isupper (
i
) != !!iswupper (
i
))
57
return
1;
58
#endif
59
60
#ifndef _RWSTD_NO_ISWLOWER
61
if
(!!islower (
i
) != !!iswlower (
i
))
62
return
1;
63
#endif
64
65
#ifndef _RWSTD_NO_ISWALPHA
66
if
(!!isalpha (
i
) != !!iswalpha (
i
))
67
return
1;
68
#endif
69
70
#ifndef _RWSTD_NO_ISWDIGIT
71
if
(!!isdigit (
i
) != !!iswdigit (
i
))
72
return
1;
73
#endif
74
75
#ifndef _RWSTD_NO_ISWPUNCT
76
if
(!!ispunct (
i
) != !!iswpunct (
i
))
77
return
1;
78
#endif
79
80
#ifndef _RWSTD_NO_ISWXDIGIT
81
if
(!!isxdigit (
i
) != !!iswxdigit (
i
))
82
return
1;
83
#endif
84
85
#ifndef _RWSTD_NO_ISWALNUM
86
if
(!!isalnum (
i
) != !!iswalnum (
i
))
87
return
1;
88
#endif
89
90
#ifndef _RWSTD_NO_ISWGRAPH
91
if
(!!isgraph (
i
) != !!iswgraph (
i
))
92
return
1;
93
#endif
94
}
95
96
return
0;
97
}
i
#define i
Definition
17.names.cpp:126
main
int main()
Definition
EQUAL_CTYPE_MASK.cpp:34
LC_ALL
#define LC_ALL
ctype.h
locale.h
wctype.h
Generated by
1.9.8