Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

uchar.h (3HEAD)

Name

uchar.h - Unicode utilities

Synopsis

#include <uchar.h>

Description

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>.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See Also

c16rtomb(3C), c32rtomb(3C), mbrtoc16(3C), mbrtoc32(3C), mbsinit(3C), wchar.h(3HEAD), stddef.h(3HEAD), attributes(7), standards(7)

Notes

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.