MCPcopy Create free account
hub / github.com/TASEmulators/fceux / mbstowcs

Function mbstowcs

src/utils/xstring.cpp:751–758  ·  view source on GitHub ↗

convert a std::string to std::wstring

Source from the content-addressed store, hash-verified

749
750//convert a std::string to std::wstring
751std::wstring mbstowcs(std::string str) // UTF8->UTF32
752{
753 try {
754 return UtfConverter::FromUtf8(str);
755 } catch(std::exception &e) {
756 return L"(failed UTF-8 conversion)";
757 }
758}
759
760//convert a std::wstring to std::string
761std::string wcstombs(std::wstring str) // UTF32->UTF8

Callers 6

convert_fcmFunction · 0.85
installValueMethod · 0.85
openMethod · 0.85
movie_recordFunction · 0.85
ReplayMetadataDialogProcFunction · 0.85
FCEUD_MovieRecordToFunction · 0.85

Calls 1

FromUtf8Function · 0.85

Tested by

no test coverage detected