]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_cwctype.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cwctype.ipp
1 // (C) Copyright John Maddock 2001.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_NO_CWCTYPE
9 // TITLE: <wctype.h> and <cwctype>
10 // DESCRIPTION: The Platform does not provide <wctype.h> and <cwctype>.
11
12 //
13 // Note that some platforms put these prototypes in the wrong headers,
14 // we have to include pretty well all the string headers on the chance that
15 // one of them will contain what we want!
16 //
17 #include <cwctype>
18 #include <wctype.h>
19 #include <cwchar>
20 #include <wchar.h>
21 #include <cctype>
22 #include <ctype.h>
23
24 namespace boost_no_cwctype{
25
26 int test()
27 {
28 if(!(iswalpha(L'a') &&
29 iswcntrl(L'\r') &&
30 iswdigit(L'2') &&
31 iswlower(L'a') &&
32 iswpunct(L',') &&
33 iswspace(L' ') &&
34 iswupper(L'A') &&
35 iswxdigit(L'A')
36 )) return -1;
37 if(L'a' != towlower(L'A')) return -1;
38 return 0;
39 }
40
41 }
42
43
44
45
46
47