7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /* wctype.h 1.13 89/11/02 SMI; JLE */
23 /* from AT&T JAE 2.1 */
24 /* definitions for international functions */
25
26 /*
27 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
28 *
29 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
31 */
32
33 #ifndef _WCTYPE_H
34 #define _WCTYPE_H
35
36 #include <sys/feature_tests.h>
37 #include <iso/wctype_iso.h>
38 #ifndef _STRICT_SYMBOLS
39 #include <ctype.h>
40 #include <wchar.h>
41 #endif
42
43 /*
44 * Allow global visibility for symbols defined in
45 * C++ "std" namespace in <iso/wctype_iso.h>.
46 */
47 #if __cplusplus >= 199711L
124 #define iscodeset2(c) (((c) & WCHAR_CSMASK) == WCHAR_CS2)
125 #define iscodeset3(c) (((c) & WCHAR_CSMASK) == WCHAR_CS3)
126
127 #endif /* !defined(_STRICT_SYMBOLS)... */
128
129
130 /* XPG7 extended locale support */
131 #if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
132
133 #ifndef _LOCALE_T
134 #define _LOCALE_T
135 typedef struct _locale *locale_t;
136 #endif
137
138 extern wint_t towlower_l(wint_t, locale_t);
139 extern wint_t towupper_l(wint_t, locale_t);
140 extern wint_t towctrans_l(wint_t, wctrans_t, locale_t);
141 extern int iswctype_l(wint_t, wctype_t, locale_t);
142 extern int iswalnum_l(wint_t, locale_t);
143 extern int iswalpha_l(wint_t, locale_t);
144 extern int iswcntrl_l(wint_t, locale_t);
145 extern int iswdigit_l(wint_t, locale_t);
146 extern int iswgraph_l(wint_t, locale_t);
147 extern int iswlower_l(wint_t, locale_t);
148 extern int iswprint_l(wint_t, locale_t);
149 extern int iswpunct_l(wint_t, locale_t);
150 extern int iswspace_l(wint_t, locale_t);
151 extern int iswupper_l(wint_t, locale_t);
152 extern int iswxdigit_l(wint_t, locale_t);
153 extern wctrans_t wctrans_l(const char *, locale_t);
154 extern wctype_t wctype_l(const char *, locale_t);
155 #endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
156
157 #ifdef __cplusplus
158 }
159 #endif
160
161 #endif /* _WCTYPE_H */
|
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /* wctype.h 1.13 89/11/02 SMI; JLE */
23 /* from AT&T JAE 2.1 */
24 /* definitions for international functions */
25
26 /*
27 * Copyright 2015 Garrett D'Amore <garrett@damore.org>
28 *
29 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
31 */
32
33 #ifndef _WCTYPE_H
34 #define _WCTYPE_H
35
36 #include <sys/feature_tests.h>
37 #include <iso/wctype_iso.h>
38 #ifndef _STRICT_SYMBOLS
39 #include <ctype.h>
40 #include <wchar.h>
41 #endif
42
43 /*
44 * Allow global visibility for symbols defined in
45 * C++ "std" namespace in <iso/wctype_iso.h>.
46 */
47 #if __cplusplus >= 199711L
124 #define iscodeset2(c) (((c) & WCHAR_CSMASK) == WCHAR_CS2)
125 #define iscodeset3(c) (((c) & WCHAR_CSMASK) == WCHAR_CS3)
126
127 #endif /* !defined(_STRICT_SYMBOLS)... */
128
129
130 /* XPG7 extended locale support */
131 #if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
132
133 #ifndef _LOCALE_T
134 #define _LOCALE_T
135 typedef struct _locale *locale_t;
136 #endif
137
138 extern wint_t towlower_l(wint_t, locale_t);
139 extern wint_t towupper_l(wint_t, locale_t);
140 extern wint_t towctrans_l(wint_t, wctrans_t, locale_t);
141 extern int iswctype_l(wint_t, wctype_t, locale_t);
142 extern int iswalnum_l(wint_t, locale_t);
143 extern int iswalpha_l(wint_t, locale_t);
144 extern int iswblank_l(wint_t, locale_t);
145 extern int iswcntrl_l(wint_t, locale_t);
146 extern int iswdigit_l(wint_t, locale_t);
147 extern int iswgraph_l(wint_t, locale_t);
148 extern int iswlower_l(wint_t, locale_t);
149 extern int iswprint_l(wint_t, locale_t);
150 extern int iswpunct_l(wint_t, locale_t);
151 extern int iswspace_l(wint_t, locale_t);
152 extern int iswupper_l(wint_t, locale_t);
153 extern int iswxdigit_l(wint_t, locale_t);
154 extern wctrans_t wctrans_l(const char *, locale_t);
155 extern wctype_t wctype_l(const char *, locale_t);
156 #endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
157
158 #ifdef __cplusplus
159 }
160 #endif
161
162 #endif /* _WCTYPE_H */
|