core: rename mbgl namespace to mln (#4487)

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-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -16,7 +16,7 @@
#include <map>
#include <set>
namespace mbgl {
namespace mln {
union GlyphID {
char32_t hash;
@@ -218,4 +218,4 @@ struct GlyphPosition {
using GlyphPositionMap = std::map<GlyphID, GlyphPosition>;
using GlyphPositions = std::map<FontStackHash, GlyphPositionMap>;
} // end namespace mbgl
} // end namespace mln

View File

@@ -6,7 +6,7 @@
#include <mbgl/util/hash.hpp>
#include <mbgl/util/font_stack.hpp>
namespace mbgl {
namespace mln {
enum GlyphIDType : uint16_t {
FontPBF = 0x00,
@@ -35,13 +35,13 @@ constexpr uint32_t GLYPH_RANGES_PER_FONT_STACK = 256;
// i18n.GlyphRangeLocalGenerationCountMatchesConstant.
constexpr uint32_t NON_IDEOGRAPH_GLYPH_RANGES_PER_FONT_STACK = 97;
} // end namespace mbgl
} // end namespace mln
namespace std {
template <>
struct hash<mbgl::GlyphRange> {
std::size_t operator()(const mbgl::GlyphRange &range) const { return mbgl::util::hash(range.first, range.second); }
struct hash<mln::GlyphRange> {
std::size_t operator()(const mln::GlyphRange &range) const { return mln::util::hash(range.first, range.second); }
};
} // namespace std