Home
last modified time | relevance | path

Searched refs:nationalNumber (Results 1 – 5 of 5) sorted by relevance

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java116 private StringBuilder nationalNumber = new StringBuilder(); field in AsYouTypeFormatter
254 if (aPhoneNumber.length() < nationalNumber.length()) { in getFormattingTemplate()
276 nationalNumber.setLength(0); in clear()
369 return prefixBeforeNationalNumber + nationalNumber.toString(); in inputDigitWithOptionToRememberPosition()
379 narrowDownPossibleFormats(nationalNumber.toString()); in inputDigitWithOptionToRememberPosition()
412 nationalNumber.insert(0, extractedNationalPrefix); in ableToExtractLongerNdd()
434 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
471 private String appendNationalNumber(String nationalNumber) { in appendNationalNumber() argument
480 + nationalNumber; in appendNationalNumber()
482 return prefixBeforeNationalNumber + nationalNumber; in appendNationalNumber()
[all …]
DPhoneNumberUtil.java1596 String nationalNumber = getNationalSignificantNumber(number);
1598 chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber);
1675 String nationalNumber = getNationalSignificantNumber(number);
1677 chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber);
1726 String nationalNumber = getNationalSignificantNumber(number);
1727 if (nationalNumber.length() > 3) {
1728 int firstNationalNumberDigit = rawInput.indexOf(nationalNumber.substring(0, 3));
1742 nationalNumber);
1805 StringBuilder nationalNumber = new StringBuilder();
1809 nationalNumber.append(new String(zeros));
[all …]
DShortNumberInfo.java327 String nationalNumber = getNationalSignificantNumber(number); in getRegionCodeForShortNumberFromRegionList() local
331 && matchesPossibleNumberAndNationalNumber(nationalNumber, phoneMetadata.getShortCode())) { in getRegionCodeForShortNumberFromRegionList()
470 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecific() local
473 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecific()
494 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecificForRegion() local
498 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecificForRegion()
539 StringBuilder nationalNumber = new StringBuilder(); in getNationalSignificantNumber() local
543 nationalNumber.append(new String(zeros)); in getNationalSignificantNumber()
545 nationalNumber.append(number.getNationalNumber()); in getNationalSignificantNumber()
546 return nationalNumber.toString(); in getNationalSignificantNumber()
DPhoneNumberMatcher.java666 String nationalNumber = util.getNationalSignificantNumber(number); in isNationalPrefixPresentIfRequired() local
668 util.chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); in isNationalPrefixPresentIfRequired()
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java119 String nationalNumber = phoneUtil.getNationalSignificantNumber(number); in getDescriptionForValidNumber() local
120 if (!mobileToken.equals("") && nationalNumber.startsWith(mobileToken)) { in getDescriptionForValidNumber()
123 nationalNumber = nationalNumber.substring(mobileToken.length()); in getDescriptionForValidNumber()
127 copiedNumber = phoneUtil.parse(nationalNumber, region); in getDescriptionForValidNumber()