Lines Matching refs:match

171     // extension to match the last group of the subscriber number. Note the
235 // A cache for popular reg-exps of leading digits used to match formatting
252 // Pattern to check that brackets match. Opening brackets should be closed
264 // Note that if there is a match, we will always check any text found up to
265 // the first match as well.
336 // consider it part of the phone number. Will match a pattern like
465 PhoneNumberMatch* match) {
466 DCHECK(match);
516 match->set_start(offset);
517 match->set_raw_string(candidate);
525 match->set_number(number);
584 PhoneNumberMatch* match) {
585 DCHECK(match);
601 bool success = ParseAndVerify(first_group_only, offset, match);
609 bool success = ParseAndVerify(group, offset + group_start_index, match);
620 PhoneNumberMatch* match) {
621 DCHECK(match);
622 // Skip a match that is more likely to be a date.
637 // Try to come up with a valid match given the entire candidate.
638 if (ParseAndVerify(candidate, offset, match)) {
642 // If that failed, try to find an "inner match" - there might be a phone
644 return ExtractInnerMatch(candidate, offset, match);
668 bool PhoneNumberMatcher::Next(PhoneNumberMatch* match) {
669 DCHECK(match);
670 // Check the state and find the next match as a side-effect if necessary.
674 match->CopyFrom(*last_match_);
680 bool PhoneNumberMatcher::Find(int index, PhoneNumberMatch* match) {
681 DCHECK(match);
692 if (ExtractMatch(candidate, start, match)) {
716 // If this didn't pass, see if there are any alternate formats that match, and
735 // Leading digits don't match; try another one.