#include #if defined(__GNUC__) && __GNUC__ >= 7 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #endif // defined(__GNUC__) && __GNUC__ >= 7 #include #if defined(__GNUC__) && __GNUC__ >= 7 #pragma GCC diagnostic pop #endif // defined(__GNUC__) && __GNUC__ >= 7 namespace mbgl { namespace util { std::u16string convertUTF8ToUTF16(const std::string& str) { return boost::locale::conv::utf_to_utf(str); } std::string convertUTF16ToUTF8(const std::u16string& str) { return boost::locale::conv::utf_to_utf(str); } } // namespace util } // namespace mbgl