| 13 | MR_SUPPRESS_WARNING( "-Wdeprecated-declarations", 4996 ) |
| 14 | |
| 15 | std::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 | |
| 22 | std::string wideToUtf8( const wchar_t * wide ) |
| 23 | { |
no outgoing calls
no test coverage detected