/third_party/libphonenumber/cpp/test/phonenumbers/ |
D | phonenumbermatcher_test.cc | 76 PhoneNumberMatcher::VALID, 5), in PhoneNumberMatcherTest() 82 return PhoneNumberMatcher::IsLatinLetter(letter); in IsLatinLetter() 87 return PhoneNumberMatcher::ContainsMoreThanOneSlashInNationalNumber( in ContainsMoreThanOneSlashInNationalNumber() 95 PhoneNumberMatcher* GetMatcherWithLeniency( in GetMatcherWithLeniency() 97 PhoneNumberMatcher::Leniency leniency) const { in GetMatcherWithLeniency() 98 return new PhoneNumberMatcher(phone_util_, text, region, leniency, in GetMatcherWithLeniency() 106 PhoneNumberMatcher::Leniency leniency) const { in DoTestNumberMatchesForLeniency() 107 scoped_ptr<PhoneNumberMatcher> matcher; in DoTestNumberMatchesForLeniency() 129 PhoneNumberMatcher::Leniency leniency) const { in DoTestNumberNonMatchesForLeniency() 130 scoped_ptr<PhoneNumberMatcher> matcher; in DoTestNumberNonMatchesForLeniency() [all …]
|
/third_party/libphonenumber/cpp/src/phonenumbers/ |
D | phonenumbermatcher.cc | 396 PhoneNumberMatcher::PhoneNumberMatcher(const PhoneNumberUtil& util, in PhoneNumberMatcher() function in i18n::phonenumbers::PhoneNumberMatcher 399 PhoneNumberMatcher::Leniency leniency, in PhoneNumberMatcher() 415 PhoneNumberMatcher::PhoneNumberMatcher(const string& text, in PhoneNumberMatcher() function in i18n::phonenumbers::PhoneNumberMatcher 431 PhoneNumberMatcher::~PhoneNumberMatcher() { in ~PhoneNumberMatcher() 434 bool PhoneNumberMatcher::IsInputUtf8() { in IsInputUtf8() 441 bool PhoneNumberMatcher::IsLatinLetter(char32 letter) { in IsLatinLetter() 455 bool PhoneNumberMatcher::ParseAndVerify(const string& candidate, int offset, in ParseAndVerify() 524 bool PhoneNumberMatcher::VerifyAccordingToLeniency( in VerifyAccordingToLeniency() 528 case PhoneNumberMatcher::POSSIBLE: in VerifyAccordingToLeniency() 530 case PhoneNumberMatcher::VALID: in VerifyAccordingToLeniency() [all …]
|
D | phonenumbermatcher.h | 49 class PhoneNumberMatcher { 77 PhoneNumberMatcher(const PhoneNumberUtil& util, 85 PhoneNumberMatcher(const string& text, 88 ~PhoneNumberMatcher(); 212 DISALLOW_COPY_AND_ASSIGN(PhoneNumberMatcher);
|
D | phonenumberutil.h | 58 friend class PhoneNumberMatcher; variable
|
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberMatcherTest.java | 42 assertTrue(PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate)); in testContainsMoreThanOneSlashInNationalNumber() 50 assertTrue(PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate)); in testContainsMoreThanOneSlashInNationalNumber() 57 assertFalse(PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate)); in testContainsMoreThanOneSlashInNationalNumber() 63 assertFalse(PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate)); in testContainsMoreThanOneSlashInNationalNumber() 66 assertFalse(PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate)); in testContainsMoreThanOneSlashInNationalNumber() 69 assertTrue(PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate)); in testContainsMoreThanOneSlashInNationalNumber() 77 assertTrue(PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate)); in testContainsMoreThanOneSlashInNationalNumber() 298 assertTrue(PhoneNumberMatcher.isLatinLetter('c')); in testIsLatinLetter() 299 assertTrue(PhoneNumberMatcher.isLatinLetter('C')); in testIsLatinLetter() 300 assertTrue(PhoneNumberMatcher.isLatinLetter('\u00C9')); in testIsLatinLetter() [all …]
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 540 PhoneNumberMatcher matcher) { in verify() 556 PhoneNumberMatcher matcher) { in verify() 558 || !PhoneNumberMatcher.containsOnlyValidXChars(number, candidate.toString(), util)) { in verify() 561 return PhoneNumberMatcher.isNationalPrefixPresentIfRequired(number, util); in verify() 582 PhoneNumberMatcher matcher) { in verify() 585 || !PhoneNumberMatcher.containsOnlyValidXChars(number, candidateString, util) in verify() 586 || PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidateString) in verify() 587 || !PhoneNumberMatcher.isNationalPrefixPresentIfRequired(number, util)) { in verify() 591 number, candidate, util, new PhoneNumberMatcher.NumberGroupingChecker() { in verify() 596 return PhoneNumberMatcher.allNumberGroupsRemainGrouped( in verify() [all …]
|
D | PhoneNumberMatcher.java | 44 final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> { class 232 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher() method in PhoneNumberMatcher
|
/third_party/libphonenumber/ |
D | CONTRIBUTORS | 42 -- First version of the PhoneNumberMatcher and related classes.
|
D | release_notes.txt | 2444 * Refactoring of matching functions, including moving them to PhoneNumberMatcher. 2464 - PhoneNumberMatcher doesn't match timestamps as phone-numbers 2498 - Improve PhoneNumberMatcher to not match numbers ending with '%'. 2510 - Improvement to PhoneNumberMatcher: requires national prefix to be present when matching 2577 - PhoneNumberMatcher improvements - added STRICT_GROUPING and EXACT_GROUPING levels, numbers 2636 - Fixes for PhoneNumberMatcher to be more restrictive in valid mode and not match numbers 2666 - Improved PhoneNumberMatcher for cases with other numbers before or after the phone number. 2676 - Adding date exclusion pattern in PhoneNumberMatcher.
|