]> git.lyx.org Git - lyx.git/blob - boost/boost/regex/config/cwchar.hpp
Boost 1.31.0
[lyx.git] / boost / boost / regex / config / cwchar.hpp
1 /*
2  *
3  * Copyright (c) 1998-2002
4  * Dr John Maddock
5  *
6  * Use, modification and distribution are subject to the 
7  * Boost Software License, Version 1.0. (See accompanying file 
8  * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9  *
10  */
11  
12  /*
13   *   LOCATION:    see http://www.boost.org for most recent version.
14   *   FILE         boost/regex/config/cwchar.hpp
15   *   VERSION      see <boost/version.hpp>
16   *   DESCRIPTION: regex wide character string fixes.
17   */
18
19 #ifndef BOOST_REGEX_CONFIG_CWCHAR_HPP
20 #define BOOST_REGEX_CONFIG_CWCHAR_HPP
21
22 #include <cwchar>
23 #include <cwctype>
24 #include <boost/config.hpp>
25
26 namespace std{
27
28 #ifndef BOOST_NO_STDC_NAMESPACE
29 extern "C"{
30 #endif
31
32 #ifdef iswalnum
33 inline int (iswalnum)(wint_t i)
34 { return iswalnum(i); }
35 #undef iswalnum
36 #elif defined(BOOST_NO_STDC_NAMESPACE)
37 using ::iswalnum;
38 #endif
39
40 #ifdef iswalpha
41 inline int (iswalpha)(wint_t i)
42 { return iswalpha(i); }
43 #undef iswalpha
44 #elif defined(BOOST_NO_STDC_NAMESPACE)
45 using ::iswalpha;
46 #endif
47
48 #ifdef iswcntrl
49 inline int (iswcntrl)(wint_t i)
50 { return iswcntrl(i); }
51 #undef iswcntrl
52 #elif defined(BOOST_NO_STDC_NAMESPACE)
53 using ::iswcntrl;
54 #endif
55
56 #ifdef iswdigit
57 inline int (iswdigit)(wint_t i)
58 { return iswdigit(i); }
59 #undef iswdigit
60 #elif defined(BOOST_NO_STDC_NAMESPACE)
61 using ::iswdigit;
62 #endif
63
64 #ifdef iswgraph
65 inline int (iswgraph)(wint_t i)
66 { return iswgraph(i); }
67 #undef iswgraph
68 #elif defined(BOOST_NO_STDC_NAMESPACE)
69 using ::iswgraph;
70 #endif
71
72 #ifdef iswlower
73 inline int (iswlower)(wint_t i)
74 { return iswlower(i); }
75 #undef iswlower
76 #elif defined(BOOST_NO_STDC_NAMESPACE)
77 using ::iswlower;
78 #endif
79
80 #ifdef iswprint
81 inline int (iswprint)(wint_t i)
82 { return iswprint(i); }
83 #undef iswprint
84 #elif defined(BOOST_NO_STDC_NAMESPACE)
85 using ::iswprint;
86 #endif
87
88 #ifdef iswpunct
89 inline int (iswpunct)(wint_t i)
90 { return iswpunct(i); }
91 #undef iswpunct
92 #elif defined(BOOST_NO_STDC_NAMESPACE)
93 using ::iswpunct;
94 #endif
95
96 #ifdef iswspace
97 inline int (iswspace)(wint_t i)
98 { return iswspace(i); }
99 #undef iswspace
100 #elif defined(BOOST_NO_STDC_NAMESPACE)
101 using ::iswspace;
102 #endif
103
104 #ifdef iswupper
105 inline int (iswupper)(wint_t i)
106 { return iswupper(i); }
107 #undef iswupper
108 #elif defined(BOOST_NO_STDC_NAMESPACE)
109 using ::iswupper;
110 #endif
111
112 #ifdef iswxdigit
113 inline int (iswxdigit)(wint_t i)
114 { return iswxdigit(i); }
115 #undef iswxdigit
116 #elif defined(BOOST_NO_STDC_NAMESPACE)
117 using ::iswxdigit;
118 #endif
119
120 #ifdef towlower
121 inline wint_t (towlower)(wint_t i)
122 { return towlower(i); }
123 #undef towlower
124 #elif defined(BOOST_NO_STDC_NAMESPACE)
125 using ::towlower;
126 #endif
127
128 #ifdef towupper
129 inline wint_t (towupper)(wint_t i)
130 { return towupper(i); }
131 #undef towupper
132 #elif defined(BOOST_NO_STDC_NAMESPACE)
133 using :: towupper;
134 #endif
135
136 #ifdef wcscmp
137 inline int (wcscmp)(const wchar_t *p1, const wchar_t *p2)
138 { return wcscmp(p1,p2); }
139 #undef wcscmp
140 #elif defined(BOOST_NO_STDC_NAMESPACE)
141 using ::wcscmp;
142 #endif
143
144 #ifdef wcscoll
145 inline int (wcscoll)(const wchar_t *p1, const wchar_t *p2)
146 { return wcscoll(p1,p2); }
147 #undef wcscoll
148 #elif defined(BOOST_NO_STDC_NAMESPACE)
149 using ::wcscoll;
150 #endif
151
152 #ifdef wcscpy
153 inline wchar_t *(wcscpy)(wchar_t *p1, const wchar_t *p2)
154 { return wcscpy(p1,p2); }
155 #undef wcscpy
156 #elif defined(BOOST_NO_STDC_NAMESPACE)
157 using ::wcscpy;
158 #endif
159
160 #ifdef wcslen
161 inline size_t (wcslen)(const wchar_t *p)
162 { return wcslen(p); }
163 #undef wcslen
164 #elif defined(BOOST_NO_STDC_NAMESPACE)
165 using ::wcslen;
166 #endif
167
168 #ifdef wcsxfrm
169 size_t wcsxfrm(wchar_t *p1, const wchar_t *p2, size_t s)
170 { return wcsxfrm(p1,p2,s); }
171 #undef wcsxfrm
172 #elif defined(BOOST_NO_STDC_NAMESPACE)
173 using ::wcsxfrm;
174 #endif
175
176
177 #ifndef BOOST_NO_STDC_NAMESPACE
178 } // extern "C"
179 #endif
180
181 } // namespace std
182
183 #endif
184