| 535 | // --------------------------------------------------------------------------- |
| 536 | |
| 537 | static std::string WStringToUTF8(const std::wstring &wstr) { |
| 538 | std::string str; |
| 539 | str.resize(wstr.size()); |
| 540 | str.resize(utf8fromwc(&str[0], static_cast<unsigned>(str.size() + 1), |
| 541 | wstr.data(), static_cast<unsigned>(wstr.size()))); |
| 542 | return str; |
| 543 | } |
| 544 | |
| 545 | // --------------------------------------------------------------------------- |
| 546 |
no test coverage detected