#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 {
bool ReplaceTemplatePlaceholders(
const std::u16string& template_icu,
const std::vector<std::u16string>& display_texts,
std::u16string* out_message,
std::vector<size_t>* out_offsets) { … }
}
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;
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) { … }
}