MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / Convert

Function Convert

Tests/PresentMonTests.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116std::wstring diffPath_;
117
118std::string Convert(std::wstring const& src)
119{
120 std::string dst(WideCharToMultiByte(CP_UTF8, 0, src.c_str(), (int) src.size(), nullptr, 0, nullptr, nullptr), 0);
121 WideCharToMultiByte(CP_UTF8, 0, src.c_str(), (int) src.size(), &dst[0], (int) dst.size(), nullptr, nullptr);
122 return dst;
123}
124
125std::wstring Convert(std::string const& src)
126{

Callers 4

wmainFunction · 0.70
AddGoldEtlCsvTestsFunction · 0.70
OpenMethod · 0.70
ReadRowMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected