uchar.h 629 B

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