imgtools/imglib/boostlibrary/boost/regex/config/cwchar.hpp
author jascui
Mon, 29 Nov 2010 15:46:44 +0800
changeset 711 03a6f48f6e14
parent 600 6d08f4a05d93
permissions -rw-r--r--
Updating release text
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     1
/*
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     2
 *
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     3
 * Copyright (c) 1998-2002
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     4
 * John Maddock
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     5
 *
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     6
 * Use, modification and distribution are subject to the 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     7
 * Boost Software License, Version 1.0. (See accompanying file 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     8
 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     9
 *
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    10
 */
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    11
 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    12
 /*
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    13
  *   LOCATION:    see http://www.boost.org for most recent version.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    14
  *   FILE         boost/regex/config/cwchar.hpp
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    15
  *   VERSION      see <boost/version.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    16
  *   DESCRIPTION: regex wide character string fixes.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    17
  */
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    18
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    19
#ifndef BOOST_REGEX_CONFIG_CWCHAR_HPP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    20
#define BOOST_REGEX_CONFIG_CWCHAR_HPP
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    21
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    22
#include <cwchar>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    23
#include <cwctype>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    24
#include <boost/config.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    25
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    26
#if defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    27
// apparently this is required for the RW STL on Linux:
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    28
#undef iswalnum
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    29
#undef iswalpha
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    30
#undef iswblank
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    31
#undef iswcntrl
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    32
#undef iswdigit
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    33
#undef iswgraph
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    34
#undef iswlower
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    35
#undef iswprint
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    36
#undef iswprint
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    37
#undef iswpunct
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    38
#undef iswspace
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    39
#undef iswupper
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    40
#undef iswxdigit
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    41
#undef iswctype
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    42
#undef towlower
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    43
#undef towupper
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    44
#undef towctrans
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    45
#undef wctrans
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    46
#undef wctype
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    47
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    48
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    49
namespace std{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    50
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    51
#ifndef BOOST_NO_STDC_NAMESPACE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    52
extern "C"{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    53
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    54
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    55
#ifdef iswalnum
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    56
inline int (iswalnum)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    57
{ return iswalnum(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    58
#undef iswalnum
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    59
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    60
using ::iswalnum;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    61
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    62
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    63
#ifdef iswalpha
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    64
inline int (iswalpha)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    65
{ return iswalpha(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    66
#undef iswalpha
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    67
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    68
using ::iswalpha;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    69
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    70
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    71
#ifdef iswcntrl
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    72
inline int (iswcntrl)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    73
{ return iswcntrl(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    74
#undef iswcntrl
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    75
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    76
using ::iswcntrl;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    77
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    78
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    79
#ifdef iswdigit
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    80
inline int (iswdigit)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    81
{ return iswdigit(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    82
#undef iswdigit
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    83
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    84
using ::iswdigit;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    85
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    86
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    87
#ifdef iswgraph
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    88
inline int (iswgraph)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    89
{ return iswgraph(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    90
#undef iswgraph
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    91
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    92
using ::iswgraph;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    93
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    94
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    95
#ifdef iswlower
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    96
inline int (iswlower)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    97
{ return iswlower(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    98
#undef iswlower
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    99
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   100
using ::iswlower;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   101
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   102
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   103
#ifdef iswprint
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   104
inline int (iswprint)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   105
{ return iswprint(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   106
#undef iswprint
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   107
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   108
using ::iswprint;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   109
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   110
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   111
#ifdef iswpunct
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   112
inline int (iswpunct)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   113
{ return iswpunct(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   114
#undef iswpunct
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   115
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   116
using ::iswpunct;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   117
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   118
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   119
#ifdef iswspace
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   120
inline int (iswspace)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   121
{ return iswspace(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   122
#undef iswspace
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   123
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   124
using ::iswspace;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   125
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   126
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   127
#ifdef iswupper
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   128
inline int (iswupper)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   129
{ return iswupper(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   130
#undef iswupper
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   131
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   132
using ::iswupper;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   133
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   134
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   135
#ifdef iswxdigit
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   136
inline int (iswxdigit)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   137
{ return iswxdigit(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   138
#undef iswxdigit
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   139
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   140
using ::iswxdigit;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   141
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   142
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   143
#ifdef towlower
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   144
inline wint_t (towlower)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   145
{ return towlower(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   146
#undef towlower
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   147
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   148
using ::towlower;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   149
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   150
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   151
#ifdef towupper
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   152
inline wint_t (towupper)(wint_t i)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   153
{ return towupper(i); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   154
#undef towupper
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   155
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   156
using :: towupper;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   157
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   158
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   159
#ifdef wcscmp
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   160
inline int (wcscmp)(const wchar_t *p1, const wchar_t *p2)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   161
{ return wcscmp(p1,p2); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   162
#undef wcscmp
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   163
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   164
using ::wcscmp;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   165
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   166
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   167
#ifdef wcscoll
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   168
inline int (wcscoll)(const wchar_t *p1, const wchar_t *p2)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   169
{ return wcscoll(p1,p2); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   170
#undef wcscoll
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   171
#elif defined(BOOST_NO_STDC_NAMESPACE) && !defined(UNDER_CE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   172
using ::wcscoll;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   173
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   174
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   175
#ifdef wcscpy
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   176
inline wchar_t *(wcscpy)(wchar_t *p1, const wchar_t *p2)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   177
{ return wcscpy(p1,p2); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   178
#undef wcscpy
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   179
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   180
using ::wcscpy;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   181
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   182
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   183
#ifdef wcslen
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   184
inline size_t (wcslen)(const wchar_t *p)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   185
{ return wcslen(p); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   186
#undef wcslen
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   187
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   188
using ::wcslen;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   189
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   190
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   191
#ifdef wcsxfrm
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   192
size_t wcsxfrm(wchar_t *p1, const wchar_t *p2, size_t s)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   193
{ return wcsxfrm(p1,p2,s); }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   194
#undef wcsxfrm
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   195
#elif defined(BOOST_NO_STDC_NAMESPACE)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   196
using ::wcsxfrm;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   197
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   198
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   199
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   200
#ifndef BOOST_NO_STDC_NAMESPACE
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   201
} // extern "C"
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   202
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   203
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   204
} // namespace std
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   205
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   206
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
   207