| 547 | // --------------------------------------------------------------------------- |
| 548 | |
| 549 | static std::string WStringToUTF8(const std::wstring &wstr) { |
| 550 | std::string str; |
| 551 | str.resize(wstr.size()); |
| 552 | str.resize(utf8fromwc(&str[0], static_cast<unsigned>(str.size() + 1), |
| 553 | wstr.data(), static_cast<unsigned>(wstr.size()))); |
| 554 | return str; |
| 555 | } |
| 556 | |
| 557 | // --------------------------------------------------------------------------- |
| 558 |
no test coverage detected