| 20 | } |
| 21 | |
| 22 | std::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 | |
| 31 | MR_SUPPRESS_WARNING_POP |
| 32 |
no outgoing calls
no test coverage detected