[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/string/multibyte/c8rtomb [Back]  [Original]

std::c8rtomb cppreference.com
cppreference.com

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

Web Proxy Viewer  |  New URL  |  Original Page