Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:59:23

0001 /*
0002  *
0003  * Copyright (c) 1998-2002
0004  * John Maddock
0005  *
0006  * Use, modification and distribution are subject to the 
0007  * Boost Software License, Version 1.0. (See accompanying file 
0008  * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009  *
0010  */
0011  
0012  /*
0013   *   LOCATION:    see http://www.boost.org for most recent version.
0014   *   FILE         boost/regex/config/cwchar.hpp
0015   *   VERSION      see <boost/version.hpp>
0016   *   DESCRIPTION: regex wide character string fixes.
0017   */
0018 
0019 #ifndef BOOST_REGEX_CONFIG_CWCHAR_HPP
0020 #define BOOST_REGEX_CONFIG_CWCHAR_HPP
0021 
0022 #include <cwchar>
0023 #include <cwctype>
0024 #include <boost/config.hpp>
0025 
0026 #if defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
0027 // apparently this is required for the RW STL on Linux:
0028 #undef iswalnum
0029 #undef iswalpha
0030 #undef iswblank
0031 #undef iswcntrl
0032 #undef iswdigit
0033 #undef iswgraph
0034 #undef iswlower
0035 #undef iswprint
0036 #undef iswprint
0037 #undef iswpunct
0038 #undef iswspace
0039 #undef iswupper
0040 #undef iswxdigit
0041 #undef iswctype
0042 #undef towlower
0043 #undef towupper
0044 #undef towctrans
0045 #undef wctrans
0046 #undef wctype
0047 #endif
0048 
0049 namespace std{
0050 
0051 #ifndef BOOST_NO_STDC_NAMESPACE
0052 extern "C"{
0053 #endif
0054 
0055 #ifdef iswalnum
0056 inline int (iswalnum)(wint_t i)
0057 { return iswalnum(i); }
0058 #undef iswalnum
0059 #elif defined(BOOST_NO_STDC_NAMESPACE)
0060 using ::iswalnum;
0061 #endif
0062 
0063 #ifdef iswalpha
0064 inline int (iswalpha)(wint_t i)
0065 { return iswalpha(i); }
0066 #undef iswalpha
0067 #elif defined(BOOST_NO_STDC_NAMESPACE)
0068 using ::iswalpha;
0069 #endif
0070 
0071 #ifdef iswcntrl
0072 inline int (iswcntrl)(wint_t i)
0073 { return iswcntrl(i); }
0074 #undef iswcntrl
0075 #elif defined(BOOST_NO_STDC_NAMESPACE)
0076 using ::iswcntrl;
0077 #endif
0078 
0079 #ifdef iswdigit
0080 inline int (iswdigit)(wint_t i)
0081 { return iswdigit(i); }
0082 #undef iswdigit
0083 #elif defined(BOOST_NO_STDC_NAMESPACE)
0084 using ::iswdigit;
0085 #endif
0086 
0087 #ifdef iswgraph
0088 inline int (iswgraph)(wint_t i)
0089 { return iswgraph(i); }
0090 #undef iswgraph
0091 #elif defined(BOOST_NO_STDC_NAMESPACE)
0092 using ::iswgraph;
0093 #endif
0094 
0095 #ifdef iswlower
0096 inline int (iswlower)(wint_t i)
0097 { return iswlower(i); }
0098 #undef iswlower
0099 #elif defined(BOOST_NO_STDC_NAMESPACE)
0100 using ::iswlower;
0101 #endif
0102 
0103 #ifdef iswprint
0104 inline int (iswprint)(wint_t i)
0105 { return iswprint(i); }
0106 #undef iswprint
0107 #elif defined(BOOST_NO_STDC_NAMESPACE)
0108 using ::iswprint;
0109 #endif
0110 
0111 #ifdef iswpunct
0112 inline int (iswpunct)(wint_t i)
0113 { return iswpunct(i); }
0114 #undef iswpunct
0115 #elif defined(BOOST_NO_STDC_NAMESPACE)
0116 using ::iswpunct;
0117 #endif
0118 
0119 #ifdef iswspace
0120 inline int (iswspace)(wint_t i)
0121 { return iswspace(i); }
0122 #undef iswspace
0123 #elif defined(BOOST_NO_STDC_NAMESPACE)
0124 using ::iswspace;
0125 #endif
0126 
0127 #ifdef iswupper
0128 inline int (iswupper)(wint_t i)
0129 { return iswupper(i); }
0130 #undef iswupper
0131 #elif defined(BOOST_NO_STDC_NAMESPACE)
0132 using ::iswupper;
0133 #endif
0134 
0135 #ifdef iswxdigit
0136 inline int (iswxdigit)(wint_t i)
0137 { return iswxdigit(i); }
0138 #undef iswxdigit
0139 #elif defined(BOOST_NO_STDC_NAMESPACE)
0140 using ::iswxdigit;
0141 #endif
0142 
0143 #ifdef towlower
0144 inline wint_t (towlower)(wint_t i)
0145 { return towlower(i); }
0146 #undef towlower
0147 #elif defined(BOOST_NO_STDC_NAMESPACE)
0148 using ::towlower;
0149 #endif
0150 
0151 #ifdef towupper
0152 inline wint_t (towupper)(wint_t i)
0153 { return towupper(i); }
0154 #undef towupper
0155 #elif defined(BOOST_NO_STDC_NAMESPACE)
0156 using :: towupper;
0157 #endif
0158 
0159 #ifdef wcscmp
0160 inline int (wcscmp)(const wchar_t *p1, const wchar_t *p2)
0161 { return wcscmp(p1,p2); }
0162 #undef wcscmp
0163 #elif defined(BOOST_NO_STDC_NAMESPACE)
0164 using ::wcscmp;
0165 #endif
0166 
0167 #ifdef wcscoll
0168 inline int (wcscoll)(const wchar_t *p1, const wchar_t *p2)
0169 { return wcscoll(p1,p2); }
0170 #undef wcscoll
0171 #elif defined(BOOST_NO_STDC_NAMESPACE) && !defined(UNDER_CE)
0172 using ::wcscoll;
0173 #endif
0174 
0175 #ifdef wcscpy
0176 inline wchar_t *(wcscpy)(wchar_t *p1, const wchar_t *p2)
0177 { return wcscpy(p1,p2); }
0178 #undef wcscpy
0179 #elif defined(BOOST_NO_STDC_NAMESPACE)
0180 using ::wcscpy;
0181 #endif
0182 
0183 #ifdef wcslen
0184 inline size_t (wcslen)(const wchar_t *p)
0185 { return wcslen(p); }
0186 #undef wcslen
0187 #elif defined(BOOST_NO_STDC_NAMESPACE)
0188 using ::wcslen;
0189 #endif
0190 
0191 #ifdef wcsxfrm
0192 size_t wcsxfrm(wchar_t *p1, const wchar_t *p2, size_t s)
0193 { return wcsxfrm(p1,p2,s); }
0194 #undef wcsxfrm
0195 #elif defined(BOOST_NO_STDC_NAMESPACE)
0196 using ::wcsxfrm;
0197 #endif
0198 
0199 
0200 #ifndef BOOST_NO_STDC_NAMESPACE
0201 } // extern "C"
0202 #endif
0203 
0204 } // namespace std
0205 
0206 #endif
0207