Standard library header <uchar.h> (C11)
From cppreference.net
此头文件属于 空终止多字节字符串 库。
函数
|
(C23)
|
将窄多字节字符转换为UTF-8编码
(函数) |
|
(C23)
|
将UTF-8字符串转换为窄多字节编码
(函数) |
|
(C11)
|
将窄多字节字符转换为UTF-16编码
(函数) |
|
(C11)
|
将UTF-16字符转换为窄多字节编码
(函数) |
|
(C11)
|
将窄多字节字符转换为UTF-32编码
(函数) |
|
(C11)
|
将UTF-32字符转换为窄多字节编码
(函数) |
类型
|
(C95)
|
用于迭代多字节字符串所需的转换状态信息
(类) |
|
(C23)
|
8位字符类型
(类型定义) |
|
(C11)
|
16位字符类型
(类型定义) |
|
(C11)
|
32位字符类型
(类型定义) |
概要
#define __STDC_VERSION_UCHAR_H__ 202311L typedef /* 详见描述 */ mbstate_t; typedef /* 详见描述 */ size_t; typedef /* 详见描述 */ char8_t; typedef /* 详见描述 */ char16_t; typedef /* 详见描述 */ char32_t; size_t mbrtoc8(char8_t* restrict pc8, const char* restrict s, size_t n, mbstate_t* restrict ps); size_t c8rtomb(char* restrict s, char8_t c8, mbstate_t* restrict ps); size_t mbrtoc16(char16_t* restrict pc16, const char* restrict s, size_t n, mbstate_t* restrict ps); size_t c16rtomb(char* restrict s, char16_t c16, mbstate_t* restrict ps); size_t mbrtoc32(char32_t* restrict pc32, const char* restrict s, size_t n, mbstate_t* restrict ps); size_t c32rtomb(char* restrict s, char32_t c32, mbstate_t* restrict ps);