1 #if !defined(_BTKIMPL_CODECVT_HPP_) 2 #define _BTKIMPL_CODECVT_HPP_ 3 #include <SDL2/SDL_stdinc.h> 6 #include "../exception.hpp" 8 inline std::u16string Utf8ToUtf16(std::string_view
utf8){
9 char *str = SDL_iconv_string(
"UTF16",
"UTF8",utf8.data(),utf8.size());
13 std::u16string utf16(reinterpret_cast<char16_t*>(str));
18 #endif // _BTKIMPL_CODECVT_HPP_ This header include many useful containers.
Definition: async.hpp:7