Delegate PhoneNumberMatcher.CheckGroups
- Namespace
- PhoneNumbers
- Assembly
- PhoneNumbers.dll
Returns true if the groups of digits found in our candidate phone number match our expectations.
public delegate bool PhoneNumberMatcher.CheckGroups(PhoneNumberUtil util, PhoneNumber number, StringBuilder normalizedCandidate, IList<string> expectedNumberGroups)
Parameters
utilPhoneNumberUtilnumberPhoneNumberthe original number we found when parsing
normalizedCandidateStringBuilderthe candidate number, normalized to only contain ASCII digits, but with non-digits (spaces etc) retained
expectedNumberGroupsIList<string>the groups of digits that we would expect to see if we formatted this number
Returns
- bool
- Returns true if the groups of digits found in our candidate phone number match our expectations.