#include "components/autofill/core/common/autofill_regexes.h"
#include <tuple>
#include "base/check.h"
#include "base/i18n/unicodestring.h"
#include "base/memory/ptr_util.h"
#include "base/not_fatal_until.h"
namespace {
constexpr int kMaxStringLength = …;
}
namespace autofill {
std::unique_ptr<const icu::RegexPattern> CompileRegex(
std::u16string_view regex) { … }
bool MatchesRegex(std::u16string_view input,
const icu::RegexPattern& regex_pattern,
std::vector<std::u16string>* groups) { … }
AutofillRegexCache::AutofillRegexCache(ThreadSafe thread_safe)
: … { … }
AutofillRegexCache::~AutofillRegexCache() { … }
const icu::RegexPattern* AutofillRegexCache::GetRegexPattern(
std::u16string_view regex) { … }
}