summaryrefslogtreecommitdiff
path: root/include/mbgl/i18n
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-26 10:55:47 +0300
commite5cdc4ecf362dadf2da148a22cf97aaf3c9c4ecf (patch)
treeebae02fa6a6da0f4c81cb72df87c6d7359c17acd /include/mbgl/i18n
parent9c8295c6a64b6f5b2c9b67fd01633a156481a3c8 (diff)
downloadqtlocation-mapboxgl-e5cdc4ecf362dadf2da148a22cf97aaf3c9c4ecf.tar.gz
[core][android][darwin] Move number format to i18n
Diffstat (limited to 'include/mbgl/i18n')
-rw-r--r--include/mbgl/i18n/number_format.hpp15
1 files changed, 15 insertions, 0 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