chromium/components/autofill/core/browser/payments/legal_message_line.cc

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

#include "components/autofill/core/browser/payments/legal_message_line.h"

#include "base/check.h"
#include "base/i18n/message_formatter.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"

namespace autofill {
namespace {

// Replace "{0}", "{1}", ... in |template_icu| with corresponding strings
// from |display_texts|. Sets |out_message| to the resulting string, with
// start position of each replacement in |out_offsets|.
// Return false on failure. If false is returned then contents of |out_message|
// and |out_offsets| are undefined.
bool ReplaceTemplatePlaceholders(
    const std::u16string& template_icu,
    const std::vector<std::u16string>& display_texts,
    std::u16string* out_message,
    std::vector<size_t>* out_offsets) {}

}  // namespace

LegalMessageLine::Link::Link(size_t start,
                             size_t end,
                             const std::string& url_spec)
    :{}

LegalMessageLine::Link::~Link() = default;

bool LegalMessageLine::Link::operator==(
    const LegalMessageLine::Link& other) const = default;

LegalMessageLine::LegalMessageLine() = default;

LegalMessageLine::LegalMessageLine(const LegalMessageLine& other) = default;

LegalMessageLine::~LegalMessageLine() = default;

bool LegalMessageLine::operator==(const LegalMessageLine& other) const =
    default;

// static
bool LegalMessageLine::Parse(const base::Value::Dict& legal_message,
                             LegalMessageLines* out,
                             bool escape_apostrophes) {}

bool LegalMessageLine::ParseLine(const base::Value::Dict& line,
                                 bool escape_apostrophes) {}

}  // namespace autofill