| 1 | //===----------------------------------------------------------------------===// |
| 2 | // DuckDB |
| 3 | // |
| 4 | // duckdb/common/windows_util.hpp |
| 5 | // |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "duckdb/common/common.hpp" |
| 12 | #include "duckdb/common/constants.hpp" |
| 13 | #include "duckdb/common/exception.hpp" |
| 14 | #include "duckdb/common/vector.hpp" |
| 15 | #include "duckdb/common/windows.hpp" |
| 16 | |
| 17 | namespace duckdb { |
| 18 | |
| 19 | #ifdef DUCKDB_WINDOWS |
| 20 | class WindowsUtil { |
| 21 | public: |
| 22 | //! Windows helper functions |
| 23 | static std::wstring UTF8ToUnicode(const char *input); |
| 24 | static string UnicodeToUTF8(LPCWSTR input); |
| 25 | static string UTF8ToMBCS(const char *input, bool use_ansi = false); |
| 26 | }; |
| 27 | #endif |
| 28 | |
| 29 | } // namespace duckdb |
| 30 | |