#pragma once // If you want to supply your own UTF-8 <-> UTF-16 conversion routines, create a header file // that can be found at and will be found first in the lookup chain. #include #include #include namespace jni { inline std::u16string convertUTF8ToUTF16(const std::string& string) { return std::wstring_convert, char16_t>().from_bytes(string); } inline std::string convertUTF16ToUTF8(const std::u16string& string) { return std::wstring_convert, char16_t>().to_bytes(string); } }