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/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/test/com/android/i18n/phonenumbers/
DPhoneNumberMatcherTest.java224 assertTrue(PhoneNumberMatcher.isLatinLetter('c')); in testIsLatinLetter()
225 assertTrue(PhoneNumberMatcher.isLatinLetter('C')); in testIsLatinLetter()
226 assertTrue(PhoneNumberMatcher.isLatinLetter('\u00C9')); in testIsLatinLetter()
227 assertTrue(PhoneNumberMatcher.isLatinLetter('\u0301')); // Combining acute accent in testIsLatinLetter()
229 assertFalse(PhoneNumberMatcher.isLatinLetter(':')); in testIsLatinLetter()
230 assertFalse(PhoneNumberMatcher.isLatinLetter('5')); in testIsLatinLetter()
231 assertFalse(PhoneNumberMatcher.isLatinLetter('-')); in testIsLatinLetter()
232 assertFalse(PhoneNumberMatcher.isLatinLetter('.')); in testIsLatinLetter()
233 assertFalse(PhoneNumberMatcher.isLatinLetter(' ')); in testIsLatinLetter()
234 assertFalse(PhoneNumberMatcher.isLatinLetter('\u6211')); // Chinese character in testIsLatinLetter()
[all …]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java477 !PhoneNumberMatcher.containsOnlyValidXChars(number, candidate, util)) { in verify()
480 return PhoneNumberMatcher.isNationalPrefixPresentIfRequired(number, util); in verify()
498 !PhoneNumberMatcher.containsOnlyValidXChars(number, candidate, util) || in verify()
499 PhoneNumberMatcher.containsMoreThanOneSlash(candidate) || in verify()
500 !PhoneNumberMatcher.isNationalPrefixPresentIfRequired(number, util)) { in verify()
503 return PhoneNumberMatcher.checkNumberGroupingIsValid( in verify()
504 number, candidate, util, new PhoneNumberMatcher.NumberGroupingChecker() { in verify()
508 return PhoneNumberMatcher.allNumberGroupsRemainGrouped( in verify()
529 !PhoneNumberMatcher.containsOnlyValidXChars(number, candidate, util) || in verify()
530 PhoneNumberMatcher.containsMoreThanOneSlash(candidate) || in verify()
[all …]
DMetadataManager.java68 InputStream source = PhoneNumberMatcher.class.getResourceAsStream( in loadMetadataFromFile()
DPhoneNumberMatcher.java45 final class PhoneNumberMatcher implements Iterator<PhoneNumberMatch> { class
206 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher() method in PhoneNumberMatcher
/external/libphonenumber/java/
Drelease_notes.txt173 * Refactoring of matching functions, including moving them to PhoneNumberMatcher.
193 - PhoneNumberMatcher doesn't match timestamps as phone-numbers
227 - Improve PhoneNumberMatcher to not match numbers ending with '%'.
239 - Improvement to PhoneNumberMatcher: requires national prefix to be present when matching
306 - PhoneNumberMatcher improvements - added STRICT_GROUPING and EXACT_GROUPING levels, numbers
365 - Fixes for PhoneNumberMatcher to be more restrictive in valid mode and not match numbers
395 - Improved PhoneNumberMatcher for cases with other numbers before or after the phone number.
405 - Adding date exclusion pattern in PhoneNumberMatcher.