wchar.h (103793) | wchar.h (103856) |
---|---|
1/*- 2 * Copyright (c)1999 Citrus Project, 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c)1999 Citrus Project, 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/include/wchar.h 103793 2002-09-22 08:06:45Z tjr $ | 26 * $FreeBSD: head/include/wchar.h 103856 2002-09-23 12:40:06Z tjr $ |
27 */ 28 29/*- 30 * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. 31 * All rights reserved. 32 * 33 * This code is derived from software contributed to The NetBSD Foundation 34 * by Julian Coleman. --- 72 unchanged lines hidden (view full) --- 107wint_t btowc(int); 108wint_t fgetwc(struct __sFILE *); 109wchar_t * 110 fgetws(wchar_t * __restrict, int, struct __sFILE * __restrict); 111wint_t fputwc(wchar_t, struct __sFILE *); 112int fputws(const wchar_t * __restrict, struct __sFILE * __restrict); 113int fwide(struct __sFILE *, int); 114int fwprintf(struct __sFILE * __restrict, const wchar_t * __restrict, ...); | 27 */ 28 29/*- 30 * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. 31 * All rights reserved. 32 * 33 * This code is derived from software contributed to The NetBSD Foundation 34 * by Julian Coleman. --- 72 unchanged lines hidden (view full) --- 107wint_t btowc(int); 108wint_t fgetwc(struct __sFILE *); 109wchar_t * 110 fgetws(wchar_t * __restrict, int, struct __sFILE * __restrict); 111wint_t fputwc(wchar_t, struct __sFILE *); 112int fputws(const wchar_t * __restrict, struct __sFILE * __restrict); 113int fwide(struct __sFILE *, int); 114int fwprintf(struct __sFILE * __restrict, const wchar_t * __restrict, ...); |
115int fwscanf(struct __sFILE * __restrict, const wchar_t * __restrict, ...); |
|
115wint_t getwc(struct __sFILE *); 116wint_t getwchar(void); 117size_t mbrlen(const char * __restrict, size_t, mbstate_t * __restrict); 118size_t mbrtowc(wchar_t * __restrict, const char * __restrict, size_t, 119 mbstate_t * __restrict); 120int mbsinit(const mbstate_t *); 121size_t mbsrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, 122 mbstate_t * __restrict); 123wint_t putwc(wchar_t, struct __sFILE *); 124wint_t putwchar(wchar_t); 125int swprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, 126 ...); | 116wint_t getwc(struct __sFILE *); 117wint_t getwchar(void); 118size_t mbrlen(const char * __restrict, size_t, mbstate_t * __restrict); 119size_t mbrtowc(wchar_t * __restrict, const char * __restrict, size_t, 120 mbstate_t * __restrict); 121int mbsinit(const mbstate_t *); 122size_t mbsrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, 123 mbstate_t * __restrict); 124wint_t putwc(wchar_t, struct __sFILE *); 125wint_t putwchar(wchar_t); 126int swprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, 127 ...); |
128int swscanf(const wchar_t * __restrict, const wchar_t * __restrict, ...); |
|
127wint_t ungetwc(wint_t, struct __sFILE *); 128int vfwprintf(struct __sFILE * __restrict, const wchar_t * __restrict, 129 __va_list); | 129wint_t ungetwc(wint_t, struct __sFILE *); 130int vfwprintf(struct __sFILE * __restrict, const wchar_t * __restrict, 131 __va_list); |
132int vfwscanf(struct __sFILE * __restrict, const wchar_t * __restrict, 133 __va_list); |
|
130int vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, 131 __va_list); | 134int vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, 135 __va_list); |
136int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict, 137 __va_list); |
|
132int vwprintf(const wchar_t * __restrict, __va_list); | 138int vwprintf(const wchar_t * __restrict, __va_list); |
139int vwscanf(const wchar_t * __restrict, __va_list); |
|
133size_t wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict); 134wchar_t *wcscat(wchar_t * __restrict, const wchar_t * __restrict); 135wchar_t *wcschr(const wchar_t *, wchar_t); 136int wcscmp(const wchar_t *, const wchar_t *); 137wchar_t *wcscpy(wchar_t * __restrict, const wchar_t * __restrict); 138size_t wcscspn(const wchar_t *, const wchar_t *); 139size_t wcsftime(wchar_t * __restrict, size_t, const wchar_t * __restrict, 140 const struct tm * __restrict); --- 20 unchanged lines hidden (view full) --- 161unsigned long long 162 wcstoull(const wchar_t * __restrict, wchar_t ** __restrict, int); 163wchar_t *wmemchr(const wchar_t *, wchar_t, size_t); 164int wmemcmp(const wchar_t *, const wchar_t *, size_t); 165wchar_t *wmemcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t); 166wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t); 167wchar_t *wmemset(wchar_t *, wchar_t, size_t); 168int wprintf(const wchar_t * __restrict, ...); | 140size_t wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict); 141wchar_t *wcscat(wchar_t * __restrict, const wchar_t * __restrict); 142wchar_t *wcschr(const wchar_t *, wchar_t); 143int wcscmp(const wchar_t *, const wchar_t *); 144wchar_t *wcscpy(wchar_t * __restrict, const wchar_t * __restrict); 145size_t wcscspn(const wchar_t *, const wchar_t *); 146size_t wcsftime(wchar_t * __restrict, size_t, const wchar_t * __restrict, 147 const struct tm * __restrict); --- 20 unchanged lines hidden (view full) --- 168unsigned long long 169 wcstoull(const wchar_t * __restrict, wchar_t ** __restrict, int); 170wchar_t *wmemchr(const wchar_t *, wchar_t, size_t); 171int wmemcmp(const wchar_t *, const wchar_t *, size_t); 172wchar_t *wmemcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t); 173wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t); 174wchar_t *wmemset(wchar_t *, wchar_t, size_t); 175int wprintf(const wchar_t * __restrict, ...); |
176int wscanf(const wchar_t * __restrict, ...); |
|
169 170#if __XSI_VISIBLE 171int wcswidth(const wchar_t *, size_t); 172int wcwidth(wchar_t); 173#endif 174 175#if __BSD_VISIBLE 176size_t wcslcat(wchar_t *, const wchar_t *, size_t); 177size_t wcslcpy(wchar_t *, const wchar_t *, size_t); 178#endif 179__END_DECLS 180 181#define getwc(fp) fgetwc(fp) 182#define getwchar() fgetwc(stdin) 183#define putwc(wc, fp) fputwc((wc), (fp)) 184#define putwchar(wc) fputwc((wc), stdout) 185 186#endif /* !_WCHAR_H_ */ | 177 178#if __XSI_VISIBLE 179int wcswidth(const wchar_t *, size_t); 180int wcwidth(wchar_t); 181#endif 182 183#if __BSD_VISIBLE 184size_t wcslcat(wchar_t *, const wchar_t *, size_t); 185size_t wcslcpy(wchar_t *, const wchar_t *, size_t); 186#endif 187__END_DECLS 188 189#define getwc(fp) fgetwc(fp) 190#define getwchar() fgetwc(stdin) 191#define putwc(wc, fp) fputwc((wc), (fp)) 192#define putwchar(wc) fputwc((wc), stdout) 193 194#endif /* !_WCHAR_H_ */ |