diff options
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/i18n/number_format.hpp | 15 | ||||
-rw-r--r-- | include/mbgl/util/platform.hpp | 3 |
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); |