|
1 --- stdcxx-4.2.1/include/ansi/cwctype 2008-04-24 20:23:56.000000000 -0400 |
|
2 +++ stdcxx-4.2.1/include/ansi/cwctype 2009-03-12 16:35:36.000000000 -0400 |
|
3 @@ -1,263 +1,35 @@ |
|
4 // -*- C++ -*- |
|
5 -/*************************************************************************** |
|
6 +/** |
|
7 + * CDDL HEADER START |
|
8 * |
|
9 - * cwctype - C++ Standard library interface to the ANSI C header wctype.h |
|
10 + * The contents of this file are subject to the terms of the |
|
11 + * Common Development and Distribution License (the "License"). |
|
12 + * You may not use this file except in compliance with the License. |
|
13 * |
|
14 - * $Id: cwctype 550991 2007-06-26 23:58:07Z sebor $ |
|
15 + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
16 + * or http://www.opensolaris.org/os/licensing. |
|
17 + * See the License for the specific language governing permissions |
|
18 + * and limitations under the License. |
|
19 * |
|
20 - *************************************************************************** |
|
21 + * When distributing Covered Code, include this CDDL HEADER in each |
|
22 + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
23 + * If applicable, add the following below this CDDL HEADER, with the |
|
24 + * fields enclosed by brackets "[]" replaced with your own identifying |
|
25 + * information: Portions Copyright [yyyy] [name of copyright owner] |
|
26 * |
|
27 - * Licensed to the Apache Software Foundation (ASF) under one or more |
|
28 - * contributor license agreements. See the NOTICE file distributed |
|
29 - * with this work for additional information regarding copyright |
|
30 - * ownership. The ASF licenses this file to you under the Apache |
|
31 - * License, Version 2.0 (the "License"); you may not use this file |
|
32 - * except in compliance with the License. You may obtain a copy of |
|
33 - * the License at |
|
34 + * CDDL HEADER END |
|
35 * |
|
36 - * http://www.apache.org/licenses/LICENSE-2.0 |
|
37 * |
|
38 - * Unless required by applicable law or agreed to in writing, software |
|
39 - * distributed under the License is distributed on an "AS IS" BASIS, |
|
40 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
|
41 - * implied. See the License for the specific language governing |
|
42 - * permissions and limitations under the License. |
|
43 + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
|
44 + * Use is subject to license terms. |
|
45 * |
|
46 - * Copyright 1994-2006 Rogue Wave Software. |
|
47 - * |
|
48 - **************************************************************************/ |
|
49 - |
|
50 -#include <rw/_defs.h> |
|
51 - |
|
52 -#ifndef _RWSTD_NO_PURE_C_HEADERS |
|
53 -# include <ansi/_cwctype.h> |
|
54 -#else |
|
55 - |
|
56 -#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS |
|
57 - |
|
58 -#ifndef _RWSTD_NAMESPACE_STD_OPEN |
|
59 -#define _RWSTD_NAMESPACE_STD_OPEN 18 |
|
60 - |
|
61 -_RWSTD_NAMESPACE (std) { |
|
62 - |
|
63 -#endif // _RWSTD_NAMESPACE_STD_OPEN |
|
64 - |
|
65 - |
|
66 -#include _RWSTD_ANSI_C_WCTYPE_H |
|
67 - |
|
68 - |
|
69 -#if _RWSTD_NAMESPACE_STD_OPEN == 18 |
|
70 -#undef _RWSTD_NAMESPACE_STD_OPEN |
|
71 - |
|
72 -} // namespace std |
|
73 - |
|
74 -#endif // _RWSTD_NAMESPACE_STD_OPEN == 18 |
|
75 - |
|
76 -#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS) |
|
77 - |
|
78 -#ifndef _RWSTD_CWCTYPE_INCLUDED |
|
79 -#define _RWSTD_CWCTYPE_INCLUDED |
|
80 - |
|
81 -#include _RWSTD_ANSI_C_WCTYPE_H |
|
82 - |
|
83 -#ifdef __hpux |
|
84 -# include _RWSTD_ANSI_C_WCHAR_H |
|
85 -#endif // __hpux |
|
86 - |
|
87 -// #define WEOF when not #defined (see also <cwchar>) |
|
88 -#if !defined WEOF |
|
89 -# ifndef _RWSTD_NO_WINT_T |
|
90 -# define WEOF _RWSTD_STATIC_CAST (_RWSTD_WINT_T, -1) |
|
91 -# else |
|
92 -# define WEOF (-1) |
|
93 -# endif |
|
94 -#endif // WEOF |
|
95 - |
|
96 -#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \ |
|
97 - !defined (_RWSTD_NO_USING_LIBC_IN_STD) |
|
98 - |
|
99 -# ifndef _RWSTD_NO_WCTYPE_H |
|
100 - |
|
101 -namespace std { |
|
102 - |
|
103 -#ifndef _RWSTD_NO_WCTRANS_T |
|
104 - using ::wctrans_t; |
|
105 -#else |
|
106 - typedef int wctrans_t; |
|
107 -#endif // _RWSTD_NO_WCTRANS_T |
|
108 - |
|
109 -#ifndef _RWSTD_NO_WCTYPE_T |
|
110 - using ::wctype_t; |
|
111 -#else |
|
112 - typedef unsigned wctype_t; |
|
113 -#endif // _RWSTD_NO_WCTYPE_T |
|
114 - |
|
115 -#ifndef _RWSTD_NO_WINT_T |
|
116 - using ::wint_t; |
|
117 -#else |
|
118 - typedef unsigned wint_t; |
|
119 -#endif // _RWSTD_NO_WINT_T |
|
120 - |
|
121 -#ifndef _RWSTD_NO_ISWALNUM |
|
122 - using ::iswalnum; |
|
123 -#elif !defined (_RWSTD_NO_ISWALNUM_IN_LIBC) |
|
124 - |
|
125 - extern "C" int iswalnum (wint_t); |
|
126 -#else |
|
127 -#endif // _RWSTD_NO_ISWALNUM |
|
128 - |
|
129 -#ifndef _RWSTD_NO_ISWALPHA |
|
130 - using ::iswalpha; |
|
131 -#elif !defined (_RWSTD_NO_ISWALPHA_IN_LIBC) |
|
132 - |
|
133 - extern "C" int iswalpha (wint_t); |
|
134 - |
|
135 -#else |
|
136 -#endif // _RWSTD_NO_ISWALPHA |
|
137 - |
|
138 -#ifndef _RWSTD_NO_ISWCNTRL |
|
139 - using ::iswcntrl; |
|
140 -#elif !defined (_RWSTD_NO_ISWCNTRL_IN_LIBC) |
|
141 - |
|
142 - extern "C" int iswcntrl (wint_t); |
|
143 - |
|
144 -#else |
|
145 -#endif // _RWSTD_NO_ISWCNTRL |
|
146 - |
|
147 -#ifndef _RWSTD_NO_ISWCTYPE |
|
148 - using ::iswctype; |
|
149 -#elif !defined (_RWSTD_NO_ISWCTYPE_IN_LIBC) |
|
150 - |
|
151 - extern "C" int iswctype (wint_t, wctype_t); |
|
152 - |
|
153 -#else |
|
154 -#endif // _RWSTD_NO_ISWCTYPE |
|
155 - |
|
156 -#ifndef _RWSTD_NO_ISWDIGIT |
|
157 - using ::iswdigit; |
|
158 -#elif !defined (_RWSTD_NO_ISWDIGIT_IN_LIBC) |
|
159 - |
|
160 - extern "C" int iswdigit (wint_t); |
|
161 - |
|
162 -#else |
|
163 -#endif // _RWSTD_NO_ISWDIGIT |
|
164 - |
|
165 -#ifndef _RWSTD_NO_ISWGRAPH |
|
166 - using ::iswgraph; |
|
167 -#elif !defined (_RWSTD_NO_ISWGRAPH_IN_LIBC) |
|
168 - |
|
169 - extern "C" int iswgraph (wint_t); |
|
170 - |
|
171 -#else |
|
172 -#endif // _RWSTD_NO_ISWGRAPH |
|
173 - |
|
174 -#ifndef _RWSTD_NO_ISWLOWER |
|
175 - using ::iswlower; |
|
176 -#elif !defined (_RWSTD_NO_ISWLOWER_IN_LIBC) |
|
177 - |
|
178 - extern "C" int iswlower (wint_t); |
|
179 - |
|
180 -#else |
|
181 -#endif // _RWSTD_NO_ISWLOWER |
|
182 - |
|
183 -#ifndef _RWSTD_NO_ISWPRINT |
|
184 - using ::iswprint; |
|
185 -#elif !defined (_RWSTD_NO_ISWPRINT_IN_LIBC) |
|
186 - |
|
187 - extern "C" int iswprint (wint_t); |
|
188 - |
|
189 -#else |
|
190 -#endif // _RWSTD_NO_ISWPRINT |
|
191 - |
|
192 -#ifndef _RWSTD_NO_ISWPUNCT |
|
193 - using ::iswpunct; |
|
194 -#elif !defined (_RWSTD_NO_ISWPUNCT_IN_LIBC) |
|
195 - |
|
196 - extern "C" int iswpunct (wint_t); |
|
197 - |
|
198 -#else |
|
199 -#endif // _RWSTD_NO_ISWPUNCT |
|
200 - |
|
201 -#ifndef _RWSTD_NO_ISWSPACE |
|
202 - using ::iswspace; |
|
203 -#elif !defined (_RWSTD_NO_ISWSPACE_IN_LIBC) |
|
204 - |
|
205 - extern "C" int iswspace (wint_t); |
|
206 - |
|
207 -#else |
|
208 -#endif // _RWSTD_NO_ISWSPACE |
|
209 - |
|
210 -#ifndef _RWSTD_NO_ISWUPPER |
|
211 - using ::iswupper; |
|
212 -#elif !defined (_RWSTD_NO_ISWUPPER_IN_LIBC) |
|
213 - |
|
214 - extern "C" int iswupper (wint_t); |
|
215 - |
|
216 -#else |
|
217 -#endif // _RWSTD_NO_ISWUPPER |
|
218 - |
|
219 -#ifndef _RWSTD_NO_ISWXDIGIT |
|
220 - using ::iswxdigit; |
|
221 -#elif !defined (_RWSTD_NO_ISWXDIGIT_IN_LIBC) |
|
222 - |
|
223 - extern "C" int iswxdigit (wint_t); |
|
224 - |
|
225 -#else |
|
226 -#endif // _RWSTD_NO_ISWXDIGIT |
|
227 - |
|
228 -#ifndef _RWSTD_NO_TOWCTRANS |
|
229 - using ::towctrans; |
|
230 -#elif !defined (_RWSTD_NO_TOWCTRANS_IN_LIBC) |
|
231 - |
|
232 - extern "C" wint_t towctrans (wint_t, wctrans_t); |
|
233 - |
|
234 -#else |
|
235 -#endif // _RWSTD_NO_TOWCTRANS |
|
236 - |
|
237 -#ifndef _RWSTD_NO_TOWLOWER |
|
238 - using ::towlower; |
|
239 -#elif !defined (_RWSTD_NO_TOWLOWER_IN_LIBC) |
|
240 - |
|
241 - extern "C" wint_t towlower (wint_t); |
|
242 - |
|
243 -#else |
|
244 -#endif // _RWSTD_NO_TOWLOWER |
|
245 - |
|
246 -#ifndef _RWSTD_NO_TOWUPPER |
|
247 - using ::towupper; |
|
248 -#elif !defined (_RWSTD_NO_TOWUPPER_IN_LIBC) |
|
249 - |
|
250 - extern "C" wint_t towupper (wint_t); |
|
251 - |
|
252 -#else |
|
253 -#endif // _RWSTD_NO_TOWUPPER |
|
254 - |
|
255 -#ifndef _RWSTD_NO_WCTRANS |
|
256 - using ::wctrans; |
|
257 -#elif !defined (_RWSTD_NO_WCTRANS_IN_LIBC) |
|
258 - |
|
259 - extern "C" wctrans_t wctrans (const char*); |
|
260 - |
|
261 -#else |
|
262 -#endif // _RWSTD_NO_WCTRANS |
|
263 - |
|
264 -#ifndef _RWSTD_NO_WCTYPE |
|
265 - using ::wctype; |
|
266 -#elif !defined (_RWSTD_NO_WCTYPE_IN_LIBC) |
|
267 - |
|
268 - extern "C" wctype_t wctype (const char*); |
|
269 - |
|
270 -#else |
|
271 -#endif // _RWSTD_NO_WCTYPE |
|
272 - |
|
273 -} // std |
|
274 + * ident "@(#)cwctype.21.diff 1.1 09/08/21 SMI" |
|
275 + */ |
|
276 |
|
277 -# endif // _RWSTD_NO_WCTYPE_H |
|
278 |
|
279 -#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD |
|
280 +#ifndef _WCTYPE_H |
|
281 |
|
282 -#endif // _RWSTD_CWCTYPE_INCLUDED |
|
283 +#include <wctype.h> |
|
284 |
|
285 -#endif // _RWSTD_NO_DEPRECATED_C_HEADERS |
|
286 +#endif /* _WCTYPE_H */ |
|
287 |
|
288 -#endif // _RWSTD_NO_PURE_C_HEADERS |