[core][android][darwin] Move number format to i18n

This commit is contained in:
Alexander Shalamov
2019-09-23 17:22:38 +03:00
parent 9c8295c6a6
commit e5cdc4ecf3
21 changed files with 124 additions and 56 deletions

View File

@@ -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

View File

@@ -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);