Home
last modified time | relevance | path

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

/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java107 private StringBuilder nationalNumber = new StringBuilder(); field in AsYouTypeFormatter
245 if (aPhoneNumber.length() < nationalNumber.length()) { in getFormattingTemplate()
267 nationalNumber.setLength(0); in clear()
360 return prefixBeforeNationalNumber + nationalNumber.toString(); in inputDigitWithOptionToRememberPosition()
370 narrowDownPossibleFormats(nationalNumber.toString()); in inputDigitWithOptionToRememberPosition()
403 nationalNumber.insert(0, extractedNationalPrefix); in ableToExtractLongerNdd()
425 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
474 private String appendNationalNumber(String nationalNumber) { in appendNationalNumber() argument
483 + nationalNumber; in appendNationalNumber()
485 return prefixBeforeNationalNumber + nationalNumber; in appendNationalNumber()
[all …]
DPhoneNumberUtil.java1676 String nationalNumber = getNationalSignificantNumber(number);
1678 chooseFormattingPatternForNumber(metadata.getNumberFormatList(), nationalNumber);
1755 String nationalNumber = getNationalSignificantNumber(number);
1757 chooseFormattingPatternForNumber(metadata.getNumberFormatList(), nationalNumber);
1806 String nationalNumber = getNationalSignificantNumber(number);
1807 if (nationalNumber.length() > 3) {
1808 int firstNationalNumberDigit = rawInput.indexOf(nationalNumber.substring(0, 3));
1822 nationalNumber);
1885 StringBuilder nationalNumber = new StringBuilder();
1889 nationalNumber.append(new String(zeros));
[all …]
DShortNumberInfo.java346 String nationalNumber = getNationalSignificantNumber(number); in getRegionCodeForShortNumberFromRegionList() local
350 && matchesPossibleNumberAndNationalNumber(nationalNumber, phoneMetadata.getShortCode())) { in getRegionCodeForShortNumberFromRegionList()
482 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecific() local
485 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecific()
506 String nationalNumber = getNationalSignificantNumber(number); in isCarrierSpecificForRegion() local
509 && (matchesPossibleNumberAndNationalNumber(nationalNumber, in isCarrierSpecificForRegion()
549 StringBuilder nationalNumber = new StringBuilder(); in getNationalSignificantNumber() local
553 nationalNumber.append(new String(zeros)); in getNationalSignificantNumber()
555 nationalNumber.append(number.getNationalNumber()); in getNationalSignificantNumber()
556 return nationalNumber.toString(); in getNationalSignificantNumber()
DPhoneNumberMatcher.java671 String nationalNumber = util.getNationalSignificantNumber(number); in isNationalPrefixPresentIfRequired() local
673 util.chooseFormattingPatternForNumber(metadata.getNumberFormatList(), nationalNumber); in isNationalPrefixPresentIfRequired()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dasyoutypeformatter.js714 var nationalNumber = this.nationalNumber_.toString();
724 if (patternRegExp.test(nationalNumber)) {
730 var formattedNumber = nationalNumber.replace(new RegExp(pattern, 'g'),
762 function(nationalNumber) { argument
777 nationalNumber;
779 return this.prefixBeforeNationalNumber_ + nationalNumber;
829 var nationalNumber = this.nationalNumber_.toString();
832 if (nationalNumber.length >=
834 this.getAvailableFormats_(nationalNumber);
843 return this.appendNationalNumber_(nationalNumber);
[all …]
Dphonenumberutil.js2253 var nationalNumber = this.getNationalSignificantNumber(number);
2256 metadata.numberFormatArray(), nationalNumber);
2370 var nationalNumber = this.getNationalSignificantNumber(number);
2373 metadata.numberFormatArray(), nationalNumber);
2431 var nationalNumber = this.getNationalSignificantNumber(number);
2432 if (nationalNumber.length > 3) {
2435 rawInput.indexOf(nationalNumber.substring(0, 3));
2451 metadataForRegionCallingFrom.numberFormatArray(), nationalNumber);
2529 var nationalNumber = '' + number.getNationalNumber();
2538 nationalNumber;
[all …]
Dshortnumberinfo.js372 var nationalNumber = this.getNationalSignificantNumber_(number);
377 nationalNumber, phoneMetadata.getShortCode())) {
593 var nationalNumber = this.getNationalSignificantNumber_(number);
596 nationalNumber, phoneMetadata.getCarrierSpecific());
620 var nationalNumber = this.getNationalSignificantNumber_(number);
623 nationalNumber, phoneMetadata.getCarrierSpecific());
649 var nationalNumber = this.getNationalSignificantNumber_(number);
651 nationalNumber, phoneMetadata.getSmsServices());
676 var nationalNumber = '' + number.getNationalNumber();
685 nationalNumber;
[all …]
/third_party/libphonenumber/java/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()