chromium/base/i18n/number_formatting.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// A simple wrapper around icu::NumberFormat that allows for resetting it
// (as LazyInstance does not).
struct NumberFormatWrapper {};

LazyInstance<NumberFormatWrapper>::DestructorAtExit g_number_format_int =;
LazyInstance<NumberFormatWrapper>::DestructorAtExit g_number_format_float =;

}  // namespace

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() {}

}  // namespace base