| 10 | #ifdef WIN32 |
| 11 | #include <Windows.h> |
| 12 | std::wstring utf8ToWideChar(const std::string &utf8Str) { |
| 13 | int wideCharSize = MultiByteToWideChar(CP_UTF8, 0, utf8Str.c_str(), -1, NULL, 0); |
| 14 | std::wstring wideStr(wideCharSize, L'\0'); |
| 15 | MultiByteToWideChar(CP_UTF8, 0, utf8Str.c_str(), -1, &wideStr[0], wideCharSize); |
| 16 | return wideStr; |
| 17 | } |
| 18 | #endif |
| 19 | |
| 20 | std::shared_ptr<LuaEditorConfig> LuaEditorConfig::OpenFile(const std::string &path) { |