| 17 | #endif |
| 18 | |
| 19 | const std::string utf16_to_utf8(const std::wstring &wtext) { |
| 20 | return std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t>{}.to_bytes(wtext.c_str()); |
| 21 | } |
| 22 | |
| 23 | const std::wstring utf8_to_utf16(const std::string &text) { |
| 24 | return std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t>{}.from_bytes(text.c_str()); |
no outgoing calls
no test coverage detected