Files
MapLibreParticleLab/platform/default/utf.cpp
Thiago Marcos P. Santos 7ff85374a7 [build] Remove #pragma diagnostic for boost
Boost is now included as a system header and the compiler
should ignore it when issuing warnings.
2018-11-01 16:29:37 +02:00

18 lines
387 B
C++

#include <mbgl/util/utf.hpp>
#include <boost/locale/encoding_utf.hpp>
namespace mbgl {
namespace util {
std::u16string convertUTF8ToUTF16(const std::string& str) {
return boost::locale::conv::utf_to_utf<char16_t>(str);
}
std::string convertUTF16ToUTF8(const std::u16string& str) {
return boost::locale::conv::utf_to_utf<char>(str);
}
} // namespace util
} // namespace mbgl