summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-09-23 17:22:38 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-09-25 21:26:07 +0300
commit58676b5a3238963b45fb6cfeb6e2b691fb9df0eb (patch)
tree4146264cf1aa24b50d0d75791fdeb0656839640f /include/mbgl
parent3f6f4c43ab55bb75699eaac3211256f06930275d (diff)
downloadqtlocation-mapboxgl-58676b5a3238963b45fb6cfeb6e2b691fb9df0eb.tar.gz
[core][android][darwin] Move number format to i18nupstream/alexshalamov_remove_unaccent
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/i18n/number_format.hpp15
-rw-r--r--include/mbgl/util/platform.hpp3
2 files changed, 15 insertions, 3 deletions
diff --git a/include/mbgl/i18n/number_format.hpp b/include/mbgl/i18n/number_format.hpp
new file mode 100644
index 0000000000..cb1e94c7bd
--- /dev/null
+++ b/include/mbgl/i18n/number_format.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <string>
+
+namespace mbgl {
+namespace platform {
+
+std::string formatNumber(double number,
+ const std::string& localeId,
+ const std::string& currency,
+ uint8_t minFractionDigits,
+ uint8_t maxFractionDigits);
+
+} // namespace platform
+} // namespace mbgl
diff --git a/include/mbgl/util/platform.hpp b/include/mbgl/util/platform.hpp
index 2e11e5f186..3544659740 100644
--- a/include/mbgl/util/platform.hpp
+++ b/include/mbgl/util/platform.hpp
@@ -16,9 +16,6 @@ std::string lowercase(const std::string &string);
// Gets the name of the current thread.
std::string getCurrentThreadName();
-std::string formatNumber(double number, const std::string& localeId, const std::string& currency,
- uint8_t minFractionDigits, uint8_t maxFractionDigits);
-
// Set the name of the current thread, truncated at 15.
void setCurrentThreadName(const std::string& name);