]> git.saurik.com Git - apple/libc.git/blob - include/xlocale/_wchar.h
Libc-498.1.5.tar.gz
[apple/libc.git] / include / xlocale / _wchar.h
1 /*
2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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
11 * file.
12 *
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.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 #ifndef _XLOCALE__WCHAR_H_
25 #define _XLOCALE__WCHAR_H_
26
27 __BEGIN_DECLS
28 wint_t btowc_l(int, locale_t);
29 wint_t fgetwc_l(FILE *, locale_t);
30 wchar_t *fgetws_l(wchar_t * __restrict, int, FILE * __restrict, locale_t);
31 wint_t fputwc_l(wchar_t, FILE *, locale_t);
32 int fputws_l(const wchar_t * __restrict, FILE * __restrict, locale_t);
33 int fwprintf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, ...)
34 __DARWIN_LDBL_COMPAT2(fwprintf_l);
35 int fwscanf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, ...)
36 __DARWIN_LDBL_COMPAT2(fwscanf_l);
37 wint_t getwc_l(FILE *, locale_t);
38 wint_t getwchar_l(locale_t);
39 size_t mbrlen_l(const char * __restrict, size_t, mbstate_t * __restrict,
40 locale_t);
41 size_t mbrtowc_l(wchar_t * __restrict, const char * __restrict, size_t,
42 mbstate_t * __restrict, locale_t);
43 int mbsinit_l(const mbstate_t *, locale_t);
44 size_t mbsnrtowcs_l(wchar_t * __restrict, const char ** __restrict, size_t,
45 size_t, mbstate_t * __restrict, locale_t);
46 size_t mbsrtowcs_l(wchar_t * __restrict, const char ** __restrict, size_t,
47 mbstate_t * __restrict, locale_t);
48 wint_t putwc_l(wchar_t, FILE *, locale_t);
49 wint_t putwchar_l(wchar_t, locale_t);
50 int swprintf_l(wchar_t * __restrict, size_t n, locale_t,
51 const wchar_t * __restrict, ...)
52 __DARWIN_LDBL_COMPAT2(swprintf_l);
53 int swscanf_l(const wchar_t * __restrict, locale_t,
54 const wchar_t * __restrict, ...)
55 __DARWIN_LDBL_COMPAT2(swscanf_l);
56 wint_t ungetwc_l(wint_t, FILE *, locale_t);
57 int vfwprintf_l(FILE * __restrict, locale_t, const wchar_t * __restrict,
58 __darwin_va_list) __DARWIN_LDBL_COMPAT2(vfwprintf_l);
59 int vfwscanf_l(FILE * __restrict, locale_t, const wchar_t * __restrict,
60 __darwin_va_list) __DARWIN_LDBL_COMPAT2(vfwscanf_l);
61 int vswprintf_l(wchar_t * __restrict, size_t n, locale_t,
62 const wchar_t * __restrict, __darwin_va_list)
63 __DARWIN_LDBL_COMPAT2(vswprintf_l);
64 int vswscanf_l(const wchar_t * __restrict, locale_t,
65 const wchar_t * __restrict, __darwin_va_list)
66 __DARWIN_LDBL_COMPAT2(vswscanf_l);
67 int vwprintf_l(locale_t, const wchar_t * __restrict, __darwin_va_list)
68 __DARWIN_LDBL_COMPAT2(vwprintf_l);
69 int vwscanf_l(locale_t, const wchar_t * __restrict, __darwin_va_list)
70 __DARWIN_LDBL_COMPAT2(vwscanf_l);
71 size_t wcrtomb_l(char * __restrict, wchar_t, mbstate_t * __restrict,
72 locale_t);
73 int wcscoll_l(const wchar_t *, const wchar_t *, locale_t);
74 //Begin-Libc
75 #ifndef LIBC_ALIAS_WCSFTIME_L
76 //End-Libc
77 size_t wcsftime_l(wchar_t * __restrict, size_t, const wchar_t * __restrict,
78 const struct tm * __restrict, locale_t)
79 __DARWIN_ALIAS(wcsftime_l);
80 //Begin-Libc
81 #else /* LIBC_ALIAS_WCSFTIME_L */
82 size_t wcsftime_l(wchar_t * __restrict, size_t, const wchar_t * __restrict,
83 const struct tm * __restrict, locale_t)
84 LIBC_ALIAS(wcsftime_l);
85 #endif /* !LIBC_ALIAS_WCSFTIME_L */
86 //End-Libc
87 size_t wcsnrtombs_l(char * __restrict, const wchar_t ** __restrict, size_t,
88 size_t, mbstate_t * __restrict, locale_t);
89 size_t wcsrtombs_l(char * __restrict, const wchar_t ** __restrict, size_t,
90 mbstate_t * __restrict, locale_t);
91 double wcstod_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t);
92 float wcstof_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t);
93 long wcstol_l(const wchar_t * __restrict, wchar_t ** __restrict, int,
94 locale_t);
95 long double
96 wcstold_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t)
97 __DARWIN_LDBL_COMPAT2(wcstold_l);
98 long long
99 wcstoll_l(const wchar_t * __restrict, wchar_t ** __restrict, int,
100 locale_t);
101 unsigned long
102 wcstoul_l(const wchar_t * __restrict, wchar_t ** __restrict, int,
103 locale_t);
104 unsigned long long
105 wcstoull_l(const wchar_t * __restrict, wchar_t ** __restrict, int,
106 locale_t);
107 int wcswidth_l(const wchar_t *, size_t, locale_t);
108 size_t wcsxfrm_l(wchar_t * __restrict, const wchar_t * __restrict, size_t,
109 locale_t);
110 int wctob_l(wint_t, locale_t);
111 int wcwidth_l(wchar_t, locale_t);
112 int wprintf_l(locale_t, const wchar_t * __restrict, ...)
113 __DARWIN_LDBL_COMPAT2(wprintf_l);
114 int wscanf_l(locale_t, const wchar_t * __restrict, ...)
115 __DARWIN_LDBL_COMPAT2(wscanf_l);
116
117 /* Poison the following routines if -fshort-wchar is set */
118 #if !defined(__cplusplus) && defined(__WCHAR_MAX__) && __WCHAR_MAX__ <= 0xffffU
119 #pragma GCC poison fgetws_l fputwc_l fputws_l fwprintf_l fwscanf_l mbrtowc_l mbsnrtowcs_l mbsrtowcs_l putwc_l putwchar_l swprintf_l swscanf_l vfwprintf_l vfwscanf_l vswprintf_l vswscanf_l vwprintf_l vwscanf_l wcrtomb_l wcscoll_l wcsftime_l wcsftime_l wcsnrtombs_l wcsrtombs_l wcstod_l wcstof_l wcstol_l wcstold_l wcstoll_l wcstoul_l wcstoull_l wcswidth_l wcsxfrm_l wcwidth_l wprintf_l wscanf_l
120 #endif
121 __END_DECLS
122
123 #endif /* _XLOCALE__WCHAR_H_ */