core: rename mbgl directories to mln (#4511)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-22 20:50:14 +02:00
committed by GitHub
parent 06fcf13d42
commit 2a8ebc4906
1924 changed files with 10489 additions and 10489 deletions

View File

@@ -0,0 +1,24 @@
#include <mln/util/utf.hpp>
#include <locale>
#include <codecvt>
namespace mln {
namespace util {
std::u16string convertUTF8ToUTF16(const std::string& str) {
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>
conv; // NOLINT(clang-diagnostic-deprecated-declarations)
return conv.from_bytes(str);
}
std::string convertUTF16ToUTF8(const std::u16string& str) {
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>
conv; // NOLINT(clang-diagnostic-deprecated-declarations)
return conv.to_bytes(str);
}
} // namespace util
} // namespace mln