Home
last modified time | relevance | path

Searched refs:nationalPrefix (Results 1 – 4 of 4) sorted by relevance

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1296 String nationalPrefix = metadata.getNationalPrefix();
1297 if (nationalPrefix.length() > 0) {
1300 nationalPrefixFormattingRule.replace(NP_STRING, nationalPrefix);
1598 String nationalPrefix = getNddPrefixForRegion(regionCode, true /* strip non-digits */);
1600 if (nationalPrefix == null || nationalPrefix.length() == 0) {
1608 number.getRawInput(), nationalPrefix, regionCode)) {
1669 private boolean rawInputContainsNationalPrefix(String rawInput, String nationalPrefix,
1672 if (normalizedNationalNumber.startsWith(nationalPrefix)) {
1679 parse(normalizedNationalNumber.substring(nationalPrefix.length()), regionCode));
2423 String nationalPrefix = metadata.getNationalPrefix();
[all …]
DAsYouTypeFormatter.java560 String nationalPrefix = nationalNumber.substring(0, startOfNationalNumber); in removeNationalPrefixFromNationalNumber() local
562 return nationalPrefix; in removeNationalPrefixFromNationalNumber()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java1331 String nationalPrefix = metadata.getNationalPrefix();
1332 if (nationalPrefix.length() > 0) {
1335 nationalPrefixFormattingRule.replace(NP_STRING, nationalPrefix);
1634 String nationalPrefix = getNddPrefixForRegion(regionCode, true /* strip non-digits */);
1636 if (nationalPrefix == null || nationalPrefix.length() == 0) {
1644 number.getRawInput(), nationalPrefix, regionCode)) {
1705 private boolean rawInputContainsNationalPrefix(String rawInput, String nationalPrefix,
1708 if (normalizedNationalNumber.startsWith(nationalPrefix)) {
1715 parse(normalizedNationalNumber.substring(nationalPrefix.length()), regionCode));
2464 String nationalPrefix = metadata.getNationalPrefix();
[all …]
DAsYouTypeFormatter.java566 String nationalPrefix = nationalNumber.substring(0, startOfNationalNumber); in removeNationalPrefixFromNationalNumber() local
568 return nationalPrefix; in removeNationalPrefixFromNationalNumber()