[build] rework platform/default directory and add -files.txt for vendored libs
This commit is contained in:
17
platform/default/src/mbgl/util/utf.cpp
Normal file
17
platform/default/src/mbgl/util/utf.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user