diff options
Diffstat (limited to 'src/convert.cpp')
| -rw-r--r-- | src/convert.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/convert.cpp b/src/convert.cpp index 4ccc3a0..c0a8e98 100644 --- a/src/convert.cpp +++ b/src/convert.cpp @@ -100,6 +100,12 @@ std::wstring widen(const std::string& src) { return widen(src.c_str(), src.size()); } +#ifdef __cpp_lib_char8_t +std::wstring widen(const std::u8string& src) { + return widen(src.c_str(), src.size()); +} +#endif + std::wstring widen(const void* src, std::size_t in_nb) { const DWORD flags = MB_ERR_INVALID_CHARS; |
