Home
last modified time | relevance | path

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

/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dphonenumbermatcher.cc357 PhoneNumberMatcher::PhoneNumberMatcher(const PhoneNumberUtil& util, in PhoneNumberMatcher() function in i18n::phonenumbers::PhoneNumberMatcher
360 PhoneNumberMatcher::Leniency leniency, in PhoneNumberMatcher()
374 PhoneNumberMatcher::PhoneNumberMatcher(const string& text, in PhoneNumberMatcher() function in i18n::phonenumbers::PhoneNumberMatcher
388 PhoneNumberMatcher::~PhoneNumberMatcher() { in ~PhoneNumberMatcher()
392 bool PhoneNumberMatcher::IsLatinLetter(char32 letter) { in IsLatinLetter()
406 bool PhoneNumberMatcher::ParseAndVerify(const string& candidate, int offset, in ParseAndVerify()
473 bool PhoneNumberMatcher::VerifyAccordingToLeniency( in VerifyAccordingToLeniency()
477 case PhoneNumberMatcher::POSSIBLE: in VerifyAccordingToLeniency()
479 case PhoneNumberMatcher::VALID: in VerifyAccordingToLeniency()
485 case PhoneNumberMatcher::STRICT_GROUPING: { in VerifyAccordingToLeniency()
[all …]
Dphonenumbermatcher.h49 class PhoneNumberMatcher {
77 PhoneNumberMatcher(const PhoneNumberUtil& util,
85 PhoneNumberMatcher(const string& text,
88 ~PhoneNumberMatcher();
195 DISALLOW_COPY_AND_ASSIGN(PhoneNumberMatcher);
Dphonenumberutil.h65 friend class PhoneNumberMatcher; variable
/external/libphonenumber/java/test/com/android/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 …]
/external/chromium_org/content/renderer/android/
Dphone_number_detector.cc19 using i18n::phonenumbers::PhoneNumberMatcher;
66 PhoneNumberMatcher matcher(utf8_input, region_code_); in FindContent()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DMetadataManager.java75 InputStream source = PhoneNumberMatcher.class.getResourceAsStream( in loadAlternateFormatsMetadataFromFile()
105 InputStream source = PhoneNumberMatcher.class.getResourceAsStream( in loadShortNumberMetadataFromFile()
DPhoneNumberUtil.java461 !PhoneNumberMatcher.containsOnlyValidXChars(number, candidate, util)) { in verify()
464 return PhoneNumberMatcher.isNationalPrefixPresentIfRequired(number, util); in verify()
483 !PhoneNumberMatcher.containsOnlyValidXChars(number, candidate, util) || in verify()
484 PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate) || in verify()
485 !PhoneNumberMatcher.isNationalPrefixPresentIfRequired(number, util)) { in verify()
488 return PhoneNumberMatcher.checkNumberGroupingIsValid( in verify()
489 number, candidate, util, new PhoneNumberMatcher.NumberGroupingChecker() { in verify()
493 return PhoneNumberMatcher.allNumberGroupsRemainGrouped( in verify()
514 !PhoneNumberMatcher.containsOnlyValidXChars(number, candidate, util) || in verify()
515 PhoneNumberMatcher.containsMoreThanOneSlashInNationalNumber(number, candidate) || in verify()
[all …]
DPhoneNumberMatcher.java43 final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> { class
225 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher() method in PhoneNumberMatcher
/external/libphonenumber/java/
Drelease_notes.txt486 * Refactoring of matching functions, including moving them to PhoneNumberMatcher.
506 - PhoneNumberMatcher doesn't match timestamps as phone-numbers
540 - Improve PhoneNumberMatcher to not match numbers ending with '%'.
552 - Improvement to PhoneNumberMatcher: requires national prefix to be present when matching
619 - PhoneNumberMatcher improvements - added STRICT_GROUPING and EXACT_GROUPING levels, numbers
678 - Fixes for PhoneNumberMatcher to be more restrictive in valid mode and not match numbers
708 - Improved PhoneNumberMatcher for cases with other numbers before or after the phone number.
718 - Adding date exclusion pattern in PhoneNumberMatcher.