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

@@ -3,7 +3,7 @@
#include <mbgl/text/bidi.hpp>
using namespace mbgl;
using namespace mln;
/*
These tests mirror the unit tests in mapbox-gl-rtl-text's arabic.test.js

View File

@@ -4,7 +4,7 @@
#include <mbgl/layout/symbol_layout.hpp>
#include <mbgl/tile/geometry_tile_data.hpp>
using namespace mbgl;
using namespace mln;
TEST(calculateTileDistances, Point) {
const GeometryCoordinates line = {Point<int16_t>{1, 1}};

View File

@@ -4,7 +4,7 @@
#include <mbgl/test/util.hpp>
#include <mbgl/text/cross_tile_symbol_index.hpp>
using namespace mbgl;
using namespace mln;
SymbolInstance makeSymbolInstance(float x, float y, std::u16string key) {
GeometryCoordinates line;

View File

@@ -2,8 +2,8 @@
#include <mbgl/style/expression/formatted.hpp>
#include <mbgl/test/util.hpp>
using namespace mbgl;
using namespace mbgl::style::expression;
using namespace mln;
using namespace mln::style::expression;
TEST(Formatted, Equality) {
Formatted text{"Formatted"};

View File

@@ -4,14 +4,14 @@
#include <numbers>
using namespace mbgl;
using namespace mln;
using namespace std::numbers;
namespace mbgl {
namespace mln {
constexpr bool operator==(const Anchor& rhs, const Anchor& lhs) {
return rhs.point == lhs.point && rhs.angle == lhs.angle && rhs.segment == lhs.segment;
}
} // namespace mbgl
} // namespace mln
namespace {
const auto makeLine = [](std::size_t shift = 0u) {

View File

@@ -8,7 +8,7 @@
#include <mbgl/util/io.hpp>
#include <mbgl/util/logging.hpp>
using namespace mbgl;
using namespace mln;
// Alpha channel rendering of '中'
static constexpr const uint8_t stubBitmap[] = {

View File

@@ -3,7 +3,7 @@
#include <mbgl/text/glyph_pbf.hpp>
#include <mbgl/util/io.hpp>
using namespace mbgl;
using namespace mln;
TEST(GlyphPBF, Parsing) {
// The fake glyphs contain a number of invalid glyphs, which should be skipped by the parser.

View File

@@ -2,7 +2,7 @@
#include <mbgl/text/language_tag.hpp>
using namespace mbgl;
using namespace mln;
TEST(LanguageTag, Parsing) {
LanguageTag bareLanguage = LanguageTag::fromBCP47("de");

View File

@@ -23,7 +23,7 @@
adding a new test case (probably using the "Droid" font family).
*/
using namespace mbgl;
using namespace mln;
namespace {

View File

@@ -7,8 +7,8 @@
#include <mbgl/text/quads.hpp>
#include <mbgl/text/shaping.hpp>
using namespace mbgl;
using namespace mbgl::style;
using namespace mln;
using namespace mln::style;
// Atlas padding is not scaled with textureScale, so a 2x glyph quad is 1
// logical pixel smaller than its 1x equivalent. GL JS-style fractional metrics

View File

@@ -6,7 +6,7 @@
#include <mbgl/text/shaping.hpp>
#include <mbgl/util/constants.hpp>
using namespace mbgl;
using namespace mln;
using namespace util;
TEST(Shaping, ZWSP) {

View File

@@ -3,7 +3,7 @@
#include <mbgl/text/tagged_string.hpp>
using namespace mbgl;
using namespace mln;
TEST(TaggedString, Trim) {
TaggedString basic(u" \t\ntrim that and not this \n\t", SectionOptions(1.0f, {}, GlyphIDType::FontPBF, 0));