#include "base/i18n/number_formatting.h"
#include <stddef.h>
#include <memory>
#include "base/check.h"
#include "base/format_macros.h"
#include "base/i18n/message_formatter.h"
#include "base/i18n/unicodestring.h"
#include "base/lazy_instance.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "third_party/icu/source/common/unicode/ustring.h"
#include "third_party/icu/source/i18n/unicode/numfmt.h"
namespace base {
namespace {
struct NumberFormatWrapper { … };
LazyInstance<NumberFormatWrapper>::DestructorAtExit g_number_format_int = …;
LazyInstance<NumberFormatWrapper>::DestructorAtExit g_number_format_float = …;
}
std::u16string FormatNumber(int64_t number) { … }
std::u16string FormatDouble(double number, int fractional_digits) { … }
std::u16string FormatDouble(double number,
int min_fractional_digits,
int max_fractional_digits) { … }
std::u16string FormatPercent(int number) { … }
void ResetFormattersForTesting() { … }
}