upload
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
#include "LogArg.h"
|
||||
#ifndef _WIN32
|
||||
#include "utextcodec/UTextCodec.h"
|
||||
#else
|
||||
#include "../UTextCodec/UTextCodec.h"
|
||||
#endif
|
||||
|
||||
namespace uns
|
||||
{
|
||||
// 宽字符转 UTF-8 实现
|
||||
std::string ConvertWStringToUtf8(std::wstring_view wstr)
|
||||
{
|
||||
return UTextCodec::WtoS(std::wstring(wstr));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user