1*c9945492SAndroid Build Coastguard Worker #ifndef _UCHAR_H 2*c9945492SAndroid Build Coastguard Worker #define _UCHAR_H 3*c9945492SAndroid Build Coastguard Worker 4*c9945492SAndroid Build Coastguard Worker #ifdef __cplusplus 5*c9945492SAndroid Build Coastguard Worker extern "C" { 6*c9945492SAndroid Build Coastguard Worker #endif 7*c9945492SAndroid Build Coastguard Worker 8*c9945492SAndroid Build Coastguard Worker #if __cplusplus < 201103L 9*c9945492SAndroid Build Coastguard Worker typedef unsigned short char16_t; 10*c9945492SAndroid Build Coastguard Worker typedef unsigned char32_t; 11*c9945492SAndroid Build Coastguard Worker #endif 12*c9945492SAndroid Build Coastguard Worker 13*c9945492SAndroid Build Coastguard Worker #define __NEED_mbstate_t 14*c9945492SAndroid Build Coastguard Worker #define __NEED_size_t 15*c9945492SAndroid Build Coastguard Worker 16*c9945492SAndroid Build Coastguard Worker #include <features.h> 17*c9945492SAndroid Build Coastguard Worker #include <bits/alltypes.h> 18*c9945492SAndroid Build Coastguard Worker 19*c9945492SAndroid Build Coastguard Worker size_t c16rtomb(char *__restrict, char16_t, mbstate_t *__restrict); 20*c9945492SAndroid Build Coastguard Worker size_t mbrtoc16(char16_t *__restrict, const char *__restrict, size_t, mbstate_t *__restrict); 21*c9945492SAndroid Build Coastguard Worker 22*c9945492SAndroid Build Coastguard Worker size_t c32rtomb(char *__restrict, char32_t, mbstate_t *__restrict); 23*c9945492SAndroid Build Coastguard Worker size_t mbrtoc32(char32_t *__restrict, const char *__restrict, size_t, mbstate_t *__restrict); 24*c9945492SAndroid Build Coastguard Worker 25*c9945492SAndroid Build Coastguard Worker #ifdef __cplusplus 26*c9945492SAndroid Build Coastguard Worker } 27*c9945492SAndroid Build Coastguard Worker #endif 28*c9945492SAndroid Build Coastguard Worker 29*c9945492SAndroid Build Coastguard Worker #endif 30