chromium/base/i18n/message_formatter.cc

// Copyright 2015 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/message_formatter.h"

#include <string_view>

#include "base/check.h"
#include "base/i18n/unicodestring.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "base/time/time.h"
#include "third_party/icu/source/common/unicode/unistr.h"
#include "third_party/icu/source/common/unicode/utypes.h"
#include "third_party/icu/source/i18n/unicode/fmtable.h"
#include "third_party/icu/source/i18n/unicode/msgfmt.h"

UnicodeString;

namespace base {
namespace i18n {
namespace {
UnicodeString UnicodeStringFromStringView(std::string_view str) {}
}  // anonymous namespace

namespace internal {
MessageArg::MessageArg() :{}

MessageArg::MessageArg(const char* s)
    :{}

MessageArg::MessageArg(std::string_view s)
    :{}

MessageArg::MessageArg(const std::string& s)
    :{}

MessageArg::MessageArg(const std::u16string& s)
    :{}

MessageArg::MessageArg(int i) :{}

MessageArg::MessageArg(int64_t i) :{}

MessageArg::MessageArg(double d) :{}

MessageArg::MessageArg(const Time& t)
    :{}

MessageArg::~MessageArg() = default;

// Tests if this argument has a value, and if so increments *count.
bool MessageArg::has_value(int *count) const {}

}  // namespace internal

std::u16string MessageFormatter::FormatWithNumberedArgs(
    std::u16string_view msg,
    const internal::MessageArg& arg0,
    const internal::MessageArg& arg1,
    const internal::MessageArg& arg2,
    const internal::MessageArg& arg3,
    const internal::MessageArg& arg4,
    const internal::MessageArg& arg5,
    const internal::MessageArg& arg6) {}

std::u16string MessageFormatter::FormatWithNamedArgs(
    std::u16string_view msg,
    std::string_view name0,
    const internal::MessageArg& arg0,
    std::string_view name1,
    const internal::MessageArg& arg1,
    std::string_view name2,
    const internal::MessageArg& arg2,
    std::string_view name3,
    const internal::MessageArg& arg3,
    std::string_view name4,
    const internal::MessageArg& arg4,
    std::string_view name5,
    const internal::MessageArg& arg5,
    std::string_view name6,
    const internal::MessageArg& arg6) {}

}  // namespace i18n
}  // namespace base