Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4680 | right-hear | 1 | // -*- C++ -*- header wrapper. |
2 | |||
3 | // Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc. |
||
4 | // |
||
5 | // This file is part of the GNU ISO C++ Library. This library is free |
||
6 | // software; you can redistribute it and/or modify it under the |
||
7 | // terms of the GNU General Public License as published by the |
||
8 | // Free Software Foundation; either version 2, or (at your option) |
||
9 | // any later version. |
||
10 | |||
11 | // This library is distributed in the hope that it will be useful, |
||
12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
14 | // GNU General Public License for more details. |
||
15 | |||
16 | // You should have received a copy of the GNU General Public License along |
||
17 | // with this library; see the file COPYING. If not, write to the Free |
||
18 | // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
||
19 | // USA. |
||
20 | |||
21 | // As a special exception, you may use this file as part of a free software |
||
22 | // library without restriction. Specifically, if other files instantiate |
||
23 | // templates or use macros or inline functions from this file, or you compile |
||
24 | // this file and link it with other files to produce an executable, this |
||
25 | // file does not by itself cause the resulting executable to be covered by |
||
26 | // the GNU General Public License. This exception does not however |
||
27 | // invalidate any other reasons why the executable file might be covered by |
||
28 | // the GNU General Public License. |
||
29 | |||
30 | // |
||
31 | // ISO C++ 14882: |
||
32 | // |
||
33 | |||
34 | #ifndef _CPP_CWCTYPE |
||
35 | #define _CPP_CWCTYPE 1 |
||
36 | |||
37 | # include |
||
38 | |||
39 | namespace _C_legacy { |
||
40 | extern "C" { |
||
41 | # define _IN_C_LEGACY_ |
||
42 | # pragma GCC system_header |
||
43 | # include_next |
||
44 | } |
||
45 | } // namespace _C_legacy |
||
46 | |||
47 | |||
48 | # undef wctype_t |
||
49 | # undef wctrans_t |
||
50 | # undef iswalpha |
||
51 | # undef iswupper |
||
52 | # undef iswlower |
||
53 | # undef iswdigit |
||
54 | # undef iswxdigit |
||
55 | # undef iswalnum |
||
56 | # undef iswspace |
||
57 | # undef iswpunct |
||
58 | # undef iswprint |
||
59 | # undef iswgraph |
||
60 | # undef iswcntrl |
||
61 | # undef iswctype |
||
62 | # undef towctrans |
||
63 | # undef towlower |
||
64 | # undef towupper |
||
65 | # undef wctrans |
||
66 | # undef wctype |
||
67 | |||
68 | namespace std { |
||
69 | using _C_legacy::wctype_t; |
||
70 | using _C_legacy::wctrans_t; |
||
71 | |||
72 | inline int |
||
73 | iswalpha(wint_t __wc) { return _C_legacy::iswalpha(__wc); } |
||
74 | |||
75 | inline int |
||
76 | iswupper(wint_t __wc) { return _C_legacy::iswupper(__wc); } |
||
77 | |||
78 | inline int |
||
79 | iswlower(wint_t __wc) { return _C_legacy::iswlower(__wc); } |
||
80 | |||
81 | inline int |
||
82 | iswdigit(wint_t __wc) { return _C_legacy::iswdigit(__wc); } |
||
83 | |||
84 | inline int |
||
85 | iswxdigit(wint_t __wc) { return _C_legacy::iswxdigit(__wc); } |
||
86 | |||
87 | inline int |
||
88 | iswalnum(wint_t __wc) { return _C_legacy::iswalnum(__wc); } |
||
89 | |||
90 | inline int |
||
91 | iswspace(wint_t __wc) { return _C_legacy::iswspace(__wc); } |
||
92 | |||
93 | inline int |
||
94 | iswpunct(wint_t __wc) { return _C_legacy::iswpunct(__wc); } |
||
95 | |||
96 | inline int |
||
97 | iswprint(wint_t __wc) { return _C_legacy::iswprint(__wc); } |
||
98 | |||
99 | inline int |
||
100 | iswgraph(wint_t __wc) { return _C_legacy::iswgraph(__wc); } |
||
101 | |||
102 | inline int |
||
103 | iswcntrl(wint_t __wc) { return _C_legacy::iswcntrl(__wc); } |
||
104 | |||
105 | inline int |
||
106 | towlower(wint_t __wc) { return _C_legacy::towlower(__wc); } |
||
107 | |||
108 | inline int |
||
109 | towupper(wint_t __wc) { return _C_legacy::towupper(__wc); } |
||
110 | |||
111 | inline int |
||
112 | iswctype(wint_t __wc, wctype_t __desc) |
||
113 | { return _C_legacy::iswctype(__wc, __desc); } |
||
114 | |||
115 | inline wint_t |
||
116 | towctrans(wint_t __wc, wctrans_t __desc) |
||
117 | { return _C_legacy::towctrans (__wc, __desc); } |
||
118 | |||
119 | inline wctrans_t |
||
120 | wctrans(const char *__property) { return _C_legacy::wctrans(__property); } |
||
121 | |||
122 | inline wctype_t |
||
123 | wctype(char const* __property) { return _C_legacy::wctype(__property); } |
||
124 | } // namespace std |
||
125 | |||
126 | # undef _IN_C_LEGACY_ |
||
127 | |||
128 | #endif |
||
129 |