uchar.h - Unicode utilities
#include <uchar.h>
The <uchar.h> header defines the following types:
char16_t An unsigned integer type used for 16-bit characters. char32_t An unsigned integer type used for 32-bit characters. mbstate_t As described in <wchar.h> size_t As described in <stddef.h>.
See attributes(7) for descriptions of the following attributes:
|
c16rtomb(3C), c32rtomb(3C), mbrtoc16(3C), mbrtoc32(3C), mbsinit(3C), wchar.h(3HEAD), stddef.h(3HEAD), attributes(7), standards(7)
There are two environment macros for Unicode utilities, __STDC_UTF_16__ and __STDC_UTF_32__. They indicate encoding of values of char16_t and char32_t, and will be defined by compiler when applicable. Regardless of whether they are defined or not, or which value they are defined with, Solaris implementation of mbrtoc16(3C) and c16rtomb(3C) always use UTF-16 for the values of type char16_t, mbrtoc32(3C) and c32rtomb(3C) always use UTF-32 for the values of type char32_t.