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

Function wideToUtf8

source/MRMesh/MRStringConvert.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22std::string wideToUtf8( const wchar_t * wide )
23{
24 if ( !wide )
25 return {};
26 // FIXME: std::wstring_convert will be removed in C++26
27 std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> conv;
28 return conv.to_bytes( wide );
29}
30
31MR_SUPPRESS_WARNING_POP
32

Callers 4

findAndAttachDevice_Method · 0.85
resetDevice_Method · 0.85
getSystemLocalesMethod · 0.85
utf8substrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected