std::mbrtoc8
Min standard notice:
Header: <cuchar>
Converts a narrow multibyte character to UTF-8 encoding.
# Declarations
std::size_t mbrtoc8( char8_t* pc8,
const char* s,
std::size_t n,
std::mbstate_t* ps );
(since C++20)
# Parameters
pc8: pointer to the location where the resulting UTF-8 code units will be writtens: pointer to the multibyte character string used as inputn: limit on the number of bytes in s that can be examinedps: pointer to the conversion state object used when interpreting the multibyte string
# Return value
The first of the following that applies:
# Example
This section is incompleteReason: no example