#include "components/payments/core/payments_validators.h"
#include "third_party/re2/src/re2/re2.h"
#include "url/gurl.h"
namespace payments {
namespace {
static const size_t maximumStringLength = …;
}
bool PaymentsValidators::IsValidCurrencyCodeFormat(
const std::string& code,
std::string* optional_error_message) { … }
bool PaymentsValidators::IsValidAmountFormat(
const std::string& amount,
std::string* optional_error_message) { … }
bool PaymentsValidators::IsValidCountryCodeFormat(
const std::string& code,
std::string* optional_error_message) { … }
bool PaymentsValidators::IsValidErrorMsgFormat(
const std::string& error,
std::string* optional_error_message) { … }
bool PaymentsValidators::IsValidAddressErrorsFormat(
const mojom::AddressErrorsPtr& errors,
std::string* optional_error_message) { … }
bool PaymentsValidators::IsValidPayerErrorsFormat(
const mojom::PayerErrorsPtr& errors,
std::string* optional_error_message) { … }
bool PaymentsValidators::IsValidPaymentValidationErrorsFormat(
const mojom::PaymentValidationErrorsPtr& errors,
std::string* optional_error_message) { … }
}