to_utf8string 函数

从窄或宽字符串解码为 UTF-8。

_ASYNCRTIMP std::string __cdecl to_utf8string(
   const std::string &value
);

_ASYNCRTIMP std::string __cdecl to_utf8string(
   const utf16string &value
);

参数

  • value

要求

**标头:**asyncrt_utils.h

**命名空间:**utility::conversions

请参见

参考

utility::conversions 命名空间