Wednesday, August 31, 2016

C Library Header – uchar

The header <uchar.h> provides types and functions for manipulating Unicode characters.

The <uchar.h> header shall define the following macro constants:
__STDC_UTF_16__ indicates that UTF-16 encoding is used by mbrtoc16 and c16rtomb (C11)
__STDC_UTF_32__ indicates that UTF-32 encoding is used by mbrtoc32 and c32rtomb (C11)

The <uchar.h> header shall define the following functions:
mbrtoc16 generate the next 16-bit wide character from a narrow multibyte string (C11)
c16rtomb convert a 16-bit wide character to narrow multibyte string (C11)
mbrtoc32 generate the next 32-bit wide character from a narrow multibyte string (C11)
c32rtomb convert a 32-bit wide character to narrow multibyte string (C11)



Related topics:
<tgmath.h>   |   <threads.h>   |   <time.h>   |   <wchar.h>   |   <wctype.h>   |   Standard Library in C

List of topics: C Programming

No comments:

Post a Comment