1 /* 2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _LIBROOT_WCHAR_PRIVATE_H 6 #define _LIBROOT_WCHAR_PRIVATE_H 7 8 9 #include <BeBuild.h> 10 11 #include <sys/cdefs.h> 12 #include <wchar.h> 13 14 15 __BEGIN_DECLS 16 17 18 extern wint_t __btowc(int); 19 20 extern size_t __mbrlen(const char *s, size_t n, mbstate_t *ps); 21 extern size_t __mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps); 22 extern int __mbsinit(const mbstate_t *); 23 extern size_t __mbsrtowcs(wchar_t *dst, const char **src, size_t len, 24 mbstate_t *ps); 25 26 extern size_t __wcrtomb(char *, wchar_t, mbstate_t *); 27 extern wchar_t *__wcscat(wchar_t *, const wchar_t *); 28 extern wchar_t *__wcschr(const wchar_t *, wchar_t); 29 extern int __wcscmp(const wchar_t *ws1, const wchar_t *ws2); 30 extern int __wcscoll(const wchar_t *ws1, const wchar_t *ws2); 31 extern wchar_t *__wcscpy(wchar_t *, const wchar_t *); 32 extern size_t __wcscspn(const wchar_t *, const wchar_t *); 33 extern wchar_t *__wcsdup(const wchar_t *); 34 extern size_t __wcsftime(wchar_t *, size_t, const wchar_t *, 35 const struct tm *); 36 extern size_t __wcslen(const wchar_t *); 37 extern wchar_t *__wcsncat(wchar_t *, const wchar_t *, size_t); 38 extern int __wcsncmp(const wchar_t *, const wchar_t *, size_t); 39 extern wchar_t *__wcsncpy(wchar_t *, const wchar_t *, size_t); 40 extern wchar_t *__wcspbrk(const wchar_t *, const wchar_t *); 41 extern wchar_t *__wcsrchr(const wchar_t *, wchar_t); 42 extern size_t __wcsrtombs(char *dst, const wchar_t **src, size_t len, 43 mbstate_t *ps); 44 extern size_t __wcsspn(const wchar_t *, const wchar_t *); 45 extern wchar_t *__wcsstr(const wchar_t *, const wchar_t *); 46 extern double __wcstod(const wchar_t *, wchar_t **); 47 extern float __wcstof(const wchar_t *, wchar_t **); 48 extern wchar_t *__wcstok(wchar_t *, const wchar_t *, wchar_t **); 49 extern long __wcstol(const wchar_t *, wchar_t **, int); 50 extern long double __wcstold(const wchar_t *, wchar_t **); 51 extern long long __wcstoll(const wchar_t *, wchar_t **, int); 52 extern unsigned long __wcstoul(const wchar_t *, wchar_t **, int); 53 extern unsigned long long __wcstoull(const wchar_t *, wchar_t **, int); 54 extern wchar_t *__wcswcs(const wchar_t *, const wchar_t *); 55 extern int __wcswidth(const wchar_t *, size_t); 56 extern size_t __wcsxfrm(wchar_t *, const wchar_t *, size_t); 57 extern int __wctob(wint_t); 58 extern int __wcwidth(wchar_t); 59 extern wchar_t *__wmemchr(const wchar_t *, wchar_t, size_t); 60 extern int __wmemcmp(const wchar_t *, const wchar_t *, size_t); 61 extern wchar_t *__wmemcpy(wchar_t *, const wchar_t *, size_t); 62 extern wchar_t *__wmemmove(wchar_t *, const wchar_t *, size_t); 63 extern wchar_t *__wmemset(wchar_t *, wchar_t, size_t); 64 65 66 __END_DECLS 67 68 69 #endif // _LIBROOT_WCHAR_PRIVATE_H 70