| 676 | } // namespace mmkv |
| 677 | |
| 678 | std::wstring string2MMKVPath_t(const std::string &str) { |
| 679 | auto length = MultiByteToWideChar(CP_UTF8, 0, str.c_str(), -1, nullptr, 0); |
| 680 | auto buffer = new wchar_t[length]; |
| 681 | MultiByteToWideChar(CP_UTF8, 0, str.c_str(), -1, buffer, length); |
| 682 | wstring result(buffer); |
| 683 | delete[] buffer; |
| 684 | return result; |
| 685 | } |
| 686 | |
| 687 | std::string MMKVPath_t2String(const MMKVPath_t &str) { |
| 688 | auto length = WideCharToMultiByte(CP_UTF8, 0, str.c_str(), -1, nullptr, 0, 0, 0); |
no outgoing calls
no test coverage detected