mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +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);
|
|
} |