Home | History | Annotate | Download | only in autofill

Lines Matching refs:pattern

75 bool MatchString(const string16& input, const string16& pattern) {
77 icu::UnicodeString icu_pattern(pattern.data(), pattern.length());
100 string16 pattern;
102 pattern = GetEcmlPattern(kEcmlShipToEmail, kEcmlBillToEmail, '|');
104 pattern = l10n_util::GetStringUTF16(IDS_AUTOFILL_EMAIL_RE);
108 if (ParseText(iter, pattern, &field))
126 const string16& pattern,
129 if (autofill::MatchString(field->label, pattern)) {
133 // For now, we apply the same pattern to the field's label and the field's
136 if (autofill::MatchString(field->label, pattern) ||
137 autofill::MatchString(field->name, pattern)) {
172 const string16& pattern) {
174 return ParseText(iter, pattern, &field);
179 const string16& pattern,
181 return ParseText(iter, pattern, dest, false);
194 const string16& pattern,
196 return ParseText(iter, pattern, dest, true);
201 const string16& pattern,
208 if (Match(field, pattern, match_label_only)) {
221 const string16& pattern,
227 if (autofill::MatchString(field->label, pattern) &&
228 autofill::MatchString(field->name, pattern)) {