mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-24 06:05:14 +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);
|
|
} |