Table of Contents

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

util PhoneNumberUtil
number PhoneNumber

the original number we found when parsing

normalizedCandidate StringBuilder

the candidate number, normalized to only contain ASCII digits, but with non-digits (spaces etc) retained

expectedNumberGroups IList<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.