mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-23 08:09:51 +00:00
12 lines
309 B
C++
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);
|
|
} |