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:
@@ -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
|
||||
|
||||
@@ -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}};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"};
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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[] = {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <mbgl/text/language_tag.hpp>
|
||||
|
||||
using namespace mbgl;
|
||||
using namespace mln;
|
||||
|
||||
TEST(LanguageTag, Parsing) {
|
||||
LanguageTag bareLanguage = LanguageTag::fromBCP47("de");
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
adding a new test case (probably using the "Droid" font family).
|
||||
*/
|
||||
|
||||
using namespace mbgl;
|
||||
using namespace mln;
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user