MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / utf8ToWide

Function utf8ToWide

source/MRMesh/MRStringConvert.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13MR_SUPPRESS_WARNING( "-Wdeprecated-declarations", 4996 )
14
15std::wstring utf8ToWide( const char* utf8 )
16{
17 // FIXME: std::wstring_convert will be removed in C++26
18 std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
19 return converter.from_bytes( utf8 );
20}
21
22std::string wideToUtf8( const wchar_t * wide )
23{

Callers 5

utf8ToSystemFunction · 0.70
utf8substrFunction · 0.70
init_Method · 0.50
windowsDialogFunction · 0.50
createSymbolContoursFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected