Rich Felker | ab9672a | 2014-10-13 20:59:42 -0400 | [diff] [blame] | 1 | #ifndef _UCHAR_H |
| 2 | #define _UCHAR_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
Szabolcs Nagy | cbf16c4 | 2018-07-08 15:19:03 +0200 | [diff] [blame] | 6 | #endif |
| 7 | |
| 8 | #if __cplusplus < 201103L |
Rich Felker | ab9672a | 2014-10-13 20:59:42 -0400 | [diff] [blame] | 9 | typedef unsigned short char16_t; |
| 10 | typedef unsigned char32_t; |
| 11 | #endif |
| 12 | |
| 13 | #define __NEED_mbstate_t |
| 14 | #define __NEED_size_t |
| 15 | |
| 16 | #include <features.h> |
| 17 | #include <bits/alltypes.h> |
| 18 | |
| 19 | size_t c16rtomb(char *__restrict, char16_t, mbstate_t *__restrict); |
| 20 | size_t mbrtoc16(char16_t *__restrict, const char *__restrict, size_t, mbstate_t *__restrict); |
| 21 | |
| 22 | size_t c32rtomb(char *__restrict, char32_t, mbstate_t *__restrict); |
| 23 | size_t mbrtoc32(char32_t *__restrict, const char *__restrict, size_t, mbstate_t *__restrict); |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | } |
| 27 | #endif |
| 28 | |
| 29 | #endif |