名稱空間
變體
操作

標準庫標頭檔案 <uchar.h> (C11)

來自 cppreference.com

此標頭檔案是以空字元結尾的多位元組字串庫的一部分。

[編輯] 函式

將窄多位元組字元轉換為 UTF-8 編碼
(函式) [編輯]
將 UTF-8 字串轉換為窄多位元組編碼
(函式) [編輯]
將窄多位元組字元轉換為 UTF-16 編碼
(函式) [編輯]
將 UTF-16 字元轉換為窄多位元組編碼
(函式) [編輯]
將窄多位元組字元轉換為 UTF-32 編碼
(函式) [編輯]
將 UTF-32 字元轉換為窄多位元組編碼
(函式) [編輯]

[編輯] 型別

迭代多位元組字串所需的轉換狀態資訊
(類) [編輯]
8 位字元型別
(型別定義) [編輯]
16 位字元型別
(型別定義) [編輯]
32 位字元型別
(型別定義) [編輯]

[編輯] 概要

#define __STDC_VERSION_UCHAR_H__ 202311L
 
typedef /* see description */ mbstate_t;
typedef /* see description */ size_t;
typedef /* see description */ char8_t;
typedef /* see description */ char16_t;
typedef /* see description */ 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);