phone_number_matcher library

Based on the original Java code: .../phonenumbers/PhoneNumberMatcher.java

license Copyright (C) 2011 The Libphonenumber Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Classes

PhoneNumberMatcher
A stateful class that finds and extracts telephone numbers from String text. Instances can be created using the PhoneNumberUtil.findNumbers factory methods in PhoneNumberUtil.
PhoneNumberMatcherImpl

Typedefs

NumberGroupingChecker = bool Function(PhoneNumberUtil util, PhoneNumber number, StringBuffer normalizedCandidate, List<String> expectedNumberGroups)
Small helper interface such that the number groups can be checked according to different criteria, both for our default way of performing formatting and for any alternate formats we may want to check.