Home
last modified time | relevance | path

Searched refs:PhoneNumberMatcher (Results 1 – 9 of 9) sorted by relevance

/third_party/libphonenumber/cpp/test/phonenumbers/
Dphonenumbermatcher_test.cc76 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/
Dphonenumbermatcher.cc396 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 …]
Dphonenumbermatcher.h49 class PhoneNumberMatcher {
77 PhoneNumberMatcher(const PhoneNumberUtil& util,
85 PhoneNumberMatcher(const string& text,
88 ~PhoneNumberMatcher();
212 DISALLOW_COPY_AND_ASSIGN(PhoneNumberMatcher);
Dphonenumberutil.h58 friend class PhoneNumberMatcher; variable
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberMatcherTest.java42 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/
DPhoneNumberUtil.java540 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 …]
DPhoneNumberMatcher.java44 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/
DCONTRIBUTORS42 -- First version of the PhoneNumberMatcher and related classes.
Drelease_notes.txt2444 * 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.