CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/UWP/UWPUtil.h
Views: 1401
1
#pragma once
2
3
#include "Common/Data/Encoding/Utf8.h"
4
5
inline Platform::String ^ToPlatformString(std::string str) {
6
return ref new Platform::String(ConvertUTF8ToWString(str).c_str());
7
}
8
9
inline std::string FromPlatformString(Platform::String ^str) {
10
std::wstring wstr(str->Data());
11
return ConvertWStringToUTF8(wstr);
12
}
13