summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-09-19 15:20:03 -0700
committerChris Loer <chris.loer@mapbox.com>2018-10-15 13:15:46 -0700
commitd0cd49f516d053620147e9f047252bd88374ac5d (patch)
tree55681fefb455cc7e3d6305c86d9a1d88e9dced84 /include/mbgl
parentce76bde13d0f4381ee861f81daf636defaff0bc5 (diff)
downloadqtlocation-mapboxgl-d0cd49f516d053620147e9f047252bd88374ac5d.tar.gz
[ios, macos] Minimal darwin wrappers of 'format' expression
Add support for `MGL_FUNCTION('format', <text>, <options dictionary>)`
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/style/expression/dsl.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mbgl/style/expression/dsl.hpp b/include/mbgl/style/expression/dsl.hpp
index a4483a6fe6..bd94a765e7 100644
--- a/include/mbgl/style/expression/dsl.hpp
+++ b/include/mbgl/style/expression/dsl.hpp
@@ -38,7 +38,8 @@ std::unique_ptr<Expression> boolean(std::unique_ptr<Expression>);
std::unique_ptr<Expression> toColor(std::unique_ptr<Expression>);
std::unique_ptr<Expression> toString(std::unique_ptr<Expression>);
-
+std::unique_ptr<Expression> toFormatted(std::unique_ptr<Expression>);
+
std::unique_ptr<Expression> get(const char* value);
std::unique_ptr<Expression> get(std::unique_ptr<Expression>);
@@ -78,6 +79,9 @@ std::unique_ptr<Expression> interpolate(Interpolator interpolator,
double input3, std::unique_ptr<Expression> output3);
std::unique_ptr<Expression> concat(std::vector<std::unique_ptr<Expression>> inputs);
+
+std::unique_ptr<Expression> format(const char* value);
+std::unique_ptr<Expression> format(std::unique_ptr<Expression>);
} // namespace dsl
} // namespace expression