ppsspp/UWP/UWPUtil.h

12 lines
309 B
C++

#pragma once
#include "util/text/utf8.h"
inline Platform::String ^ToPlatformString(std::string str) {
return ref new Platform::String(ConvertUTF8ToWString(str).c_str());
}
inline std::string FromPlatformString(Platform::String ^str) {
std::wstring wstr(str->Data());
return ConvertWStringToUTF8(wstr);
}