os/ossrv/ossrv_pub/boost_apis/boost/regex/config/cwchar.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/regex/config/cwchar.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,207 @@
     1.4 +/*
     1.5 + *
     1.6 + * Copyright (c) 1998-2002
     1.7 + * John Maddock
     1.8 + *
     1.9 + * Use, modification and distribution are subject to the 
    1.10 + * Boost Software License, Version 1.0. (See accompanying file 
    1.11 + * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    1.12 + *
    1.13 + */
    1.14 + 
    1.15 + /*
    1.16 +  *   LOCATION:    see http://www.boost.org for most recent version.
    1.17 +  *   FILE         boost/regex/config/cwchar.hpp
    1.18 +  *   VERSION      see <boost/version.hpp>
    1.19 +  *   DESCRIPTION: regex wide character string fixes.
    1.20 +  */
    1.21 +
    1.22 +#ifndef BOOST_REGEX_CONFIG_CWCHAR_HPP
    1.23 +#define BOOST_REGEX_CONFIG_CWCHAR_HPP
    1.24 +
    1.25 +#include <cwchar>
    1.26 +#include <cwctype>
    1.27 +#include <boost/config.hpp>
    1.28 +
    1.29 +#if defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
    1.30 +// apparently this is required for the RW STL on Linux:
    1.31 +#undef iswalnum
    1.32 +#undef iswalpha
    1.33 +#undef iswblank
    1.34 +#undef iswcntrl
    1.35 +#undef iswdigit
    1.36 +#undef iswgraph
    1.37 +#undef iswlower
    1.38 +#undef iswprint
    1.39 +#undef iswprint
    1.40 +#undef iswpunct
    1.41 +#undef iswspace
    1.42 +#undef iswupper
    1.43 +#undef iswxdigit
    1.44 +#undef iswctype
    1.45 +#undef towlower
    1.46 +#undef towupper
    1.47 +#undef towctrans
    1.48 +#undef wctrans
    1.49 +#undef wctype
    1.50 +#endif
    1.51 +
    1.52 +namespace std{
    1.53 +
    1.54 +#ifndef BOOST_NO_STDC_NAMESPACE
    1.55 +extern "C"{
    1.56 +#endif
    1.57 +
    1.58 +#ifdef iswalnum
    1.59 +inline int (iswalnum)(wint_t i)
    1.60 +{ return iswalnum(i); }
    1.61 +#undef iswalnum
    1.62 +#elif defined(BOOST_NO_STDC_NAMESPACE)
    1.63 +using ::iswalnum;
    1.64 +#endif
    1.65 +
    1.66 +#ifdef iswalpha
    1.67 +inline int (iswalpha)(wint_t i)
    1.68 +{ return iswalpha(i); }
    1.69 +#undef iswalpha
    1.70 +#elif defined(BOOST_NO_STDC_NAMESPACE)
    1.71 +using ::iswalpha;
    1.72 +#endif
    1.73 +
    1.74 +#ifdef iswcntrl
    1.75 +inline int (iswcntrl)(wint_t i)
    1.76 +{ return iswcntrl(i); }
    1.77 +#undef iswcntrl
    1.78 +#elif defined(BOOST_NO_STDC_NAMESPACE)
    1.79 +using ::iswcntrl;
    1.80 +#endif
    1.81 +
    1.82 +#ifdef iswdigit
    1.83 +inline int (iswdigit)(wint_t i)
    1.84 +{ return iswdigit(i); }
    1.85 +#undef iswdigit
    1.86 +#elif defined(BOOST_NO_STDC_NAMESPACE)
    1.87 +using ::iswdigit;
    1.88 +#endif
    1.89 +
    1.90 +#ifdef iswgraph
    1.91 +inline int (iswgraph)(wint_t i)
    1.92 +{ return iswgraph(i); }
    1.93 +#undef iswgraph
    1.94 +#elif defined(BOOST_NO_STDC_NAMESPACE)
    1.95 +using ::iswgraph;
    1.96 +#endif
    1.97 +
    1.98 +#ifdef iswlower
    1.99 +inline int (iswlower)(wint_t i)
   1.100 +{ return iswlower(i); }
   1.101 +#undef iswlower
   1.102 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.103 +using ::iswlower;
   1.104 +#endif
   1.105 +
   1.106 +#ifdef iswprint
   1.107 +inline int (iswprint)(wint_t i)
   1.108 +{ return iswprint(i); }
   1.109 +#undef iswprint
   1.110 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.111 +using ::iswprint;
   1.112 +#endif
   1.113 +
   1.114 +#ifdef iswpunct
   1.115 +inline int (iswpunct)(wint_t i)
   1.116 +{ return iswpunct(i); }
   1.117 +#undef iswpunct
   1.118 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.119 +using ::iswpunct;
   1.120 +#endif
   1.121 +
   1.122 +#ifdef iswspace
   1.123 +inline int (iswspace)(wint_t i)
   1.124 +{ return iswspace(i); }
   1.125 +#undef iswspace
   1.126 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.127 +using ::iswspace;
   1.128 +#endif
   1.129 +
   1.130 +#ifdef iswupper
   1.131 +inline int (iswupper)(wint_t i)
   1.132 +{ return iswupper(i); }
   1.133 +#undef iswupper
   1.134 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.135 +using ::iswupper;
   1.136 +#endif
   1.137 +
   1.138 +#ifdef iswxdigit
   1.139 +inline int (iswxdigit)(wint_t i)
   1.140 +{ return iswxdigit(i); }
   1.141 +#undef iswxdigit
   1.142 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.143 +using ::iswxdigit;
   1.144 +#endif
   1.145 +
   1.146 +#ifdef towlower
   1.147 +inline wint_t (towlower)(wint_t i)
   1.148 +{ return towlower(i); }
   1.149 +#undef towlower
   1.150 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.151 +using ::towlower;
   1.152 +#endif
   1.153 +
   1.154 +#ifdef towupper
   1.155 +inline wint_t (towupper)(wint_t i)
   1.156 +{ return towupper(i); }
   1.157 +#undef towupper
   1.158 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.159 +using :: towupper;
   1.160 +#endif
   1.161 +
   1.162 +#ifdef wcscmp
   1.163 +inline int (wcscmp)(const wchar_t *p1, const wchar_t *p2)
   1.164 +{ return wcscmp(p1,p2); }
   1.165 +#undef wcscmp
   1.166 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.167 +using ::wcscmp;
   1.168 +#endif
   1.169 +
   1.170 +#ifdef wcscoll
   1.171 +inline int (wcscoll)(const wchar_t *p1, const wchar_t *p2)
   1.172 +{ return wcscoll(p1,p2); }
   1.173 +#undef wcscoll
   1.174 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.175 +using ::wcscoll;
   1.176 +#endif
   1.177 +
   1.178 +#ifdef wcscpy
   1.179 +inline wchar_t *(wcscpy)(wchar_t *p1, const wchar_t *p2)
   1.180 +{ return wcscpy(p1,p2); }
   1.181 +#undef wcscpy
   1.182 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.183 +using ::wcscpy;
   1.184 +#endif
   1.185 +
   1.186 +#ifdef wcslen
   1.187 +inline size_t (wcslen)(const wchar_t *p)
   1.188 +{ return wcslen(p); }
   1.189 +#undef wcslen
   1.190 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.191 +using ::wcslen;
   1.192 +#endif
   1.193 +
   1.194 +#ifdef wcsxfrm
   1.195 +size_t wcsxfrm(wchar_t *p1, const wchar_t *p2, size_t s)
   1.196 +{ return wcsxfrm(p1,p2,s); }
   1.197 +#undef wcsxfrm
   1.198 +#elif defined(BOOST_NO_STDC_NAMESPACE)
   1.199 +using ::wcsxfrm;
   1.200 +#endif
   1.201 +
   1.202 +
   1.203 +#ifndef BOOST_NO_STDC_NAMESPACE
   1.204 +} // extern "C"
   1.205 +#endif
   1.206 +
   1.207 +} // namespace std
   1.208 +
   1.209 +#endif
   1.210 +