Standard library header <cuchar> (C++11)
From cppreference.net
Cet en-tête était à l'origine dans la bibliothèque standard C sous le nom de <uchar.h> .
Cet en-tête fait partie de la bibliothèque des chaînes multioctets terminées par null .
Macros |
||
|
__STDC_UTF_16__
(C++11)
|
indique que l'encodage UTF-16 est utilisé par mbrtoc16 et c16rtomb
(constante de macro) |
|
|
__STDC_UTF_32__
(C++11)
|
indique que l'encodage UTF-32 est utilisé par mbrtoc32 et c32rtomb
(constante de macro) |
|
Types |
||
|
informations d'état de conversion nécessaires pour itérer sur les chaînes de caractères multioctets
(classe) |
||
|
type entier non signé retourné par l'opérateur
sizeof
(typedef) |
||
Fonctions |
||
|
(C++11)
|
convertit un caractère multioctet étroit en encodage UTF-16
(fonction) |
|
|
(C++11)
|
convertit un caractère UTF-16 en encodage multioctet étroit
(fonction) |
|
|
(C++11)
|
convertit un caractère multioctet étroit en encodage UTF-32
(fonction) |
|
|
(C++11)
|
convertit un caractère UTF-32 en encodage multioctet étroit
(fonction) |
|
|
(C++20)
|
convertit un caractère multioctet étroit en encodage UTF-8
(fonction) |
|
|
(C++20)
|
convertit une chaîne UTF-8 en encodage multioctet étroit
(fonction) |
|
Synopsis
namespace std { using mbstate_t = /* voir description */; using size_t = /* voir description */; size_t mbrtoc8(char8_t* pc8, const char* s, size_t n, mbstate_t* ps); size_t c8rtomb(char* s, char8_t c8, mbstate_t* ps); size_t mbrtoc16(char16_t* pc16, const char* s, size_t n, mbstate_t* ps); size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps); size_t mbrtoc32(char32_t* pc32, const char* s, size_t n, mbstate_t* ps); size_t c32rtomb(char* s, char32_t c32, mbstate_t* ps); }