2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 #ifndef _XLOCALE__WCTYPE_H_
25 #define _XLOCALE__WCTYPE_H_
27 #if !defined(_DONT_USE_CTYPE_INLINE_) && \
28 (defined(_USE_CTYPE_INLINE_) || defined(__GNUC__) || defined(__cplusplus))
30 __DARWIN_WCTYPE_TOP_static_inline
int
31 iswblank_l(wint_t _wc
, locale_t _l
)
33 return (__istype_l(_wc
, _CTYPE_B
, _l
));
36 __DARWIN_WCTYPE_TOP_static_inline
int
37 iswhexnumber_l(wint_t _wc
, locale_t _l
)
39 return (__istype_l(_wc
, _CTYPE_X
, _l
));
42 __DARWIN_WCTYPE_TOP_static_inline
int
43 iswideogram_l(wint_t _wc
, locale_t _l
)
45 return (__istype_l(_wc
, _CTYPE_I
, _l
));
48 __DARWIN_WCTYPE_TOP_static_inline
int
49 iswnumber_l(wint_t _wc
, locale_t _l
)
51 return (__istype_l(_wc
, _CTYPE_D
, _l
));
54 __DARWIN_WCTYPE_TOP_static_inline
int
55 iswphonogram_l(wint_t _wc
, locale_t _l
)
57 return (__istype_l(_wc
, _CTYPE_Q
, _l
));
60 __DARWIN_WCTYPE_TOP_static_inline
int
61 iswrune_l(wint_t _wc
, locale_t _l
)
63 return (__istype_l(_wc
, 0xFFFFFFF0L
, _l
));
66 __DARWIN_WCTYPE_TOP_static_inline
int
67 iswspecial_l(wint_t _wc
, locale_t _l
)
69 return (__istype_l(_wc
, _CTYPE_T
, _l
));
72 #else /* not using inlines */
75 int iswblank_l(wint_t, locale_t
);
76 wint_t iswhexnumber_l(wint_t, locale_t
);
77 wint_t iswideogram_l(wint_t, locale_t
);
78 wint_t iswnumber_l(wint_t, locale_t
);
79 wint_t iswphonogram_l(wint_t, locale_t
);
80 wint_t iswrune_l(wint_t, locale_t
);
81 wint_t iswspecial_l(wint_t, locale_t
);
84 #endif /* using inlines */
87 wint_t nextwctype_l(wint_t, wctype_t, locale_t
);
88 wint_t towctrans_l(wint_t, wctrans_t, locale_t
);
90 wctrans_l(const char *, locale_t
);
93 #endif /* _XLOCALE__WCTYPE_H_ */