std::c8rtomb
cppreference.com
<tbody>
</tbody>
std::size_t c8rtomb( char* s, char8_t c8, std::mbstate_t* ps ); |
( C++20) | |
UTF-8 .
s , c8 UTF-8 , , ( *ps) , s, *ps . MB_CUR_MAX .
c8 UTF-8 , , s, *ps.
s , std::c8rtomb(buf, u8'\0', ps) buf .
c8 u8'\0', , , , *ps .
, , C.
| s | , | |
| c8 | UTF-8 | |
| ps | , |
, ( ). , c8 UTF-8.
c8 ( char8_t, ), EILSEQ errno, static_cast<std::size_t>(-1), .
c8rtomb s c8rtomb s.
| : |
(C++20) |
UTF-8 () |
C c8rtomb
| |