Home
last modified time | relevance | path

Searched refs:PhoneNumberFormat (Results 1 – 11 of 11) sorted by relevance

/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java21 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
491 assertEquals("650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
492 assertEquals("+1 650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
494 assertEquals("800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
495 assertEquals("+1 800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
497 assertEquals("900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
498 assertEquals("+1 900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
499 assertEquals("tel:+1-900-253-0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.RFC3966)); in testFormatUSNumber()
503 phoneUtil.format(US_SPOOF_WITH_RAW_INPUT, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
504 assertEquals("0", phoneUtil.format(US_SPOOF, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
[all …]
/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonenumberutil.h81 enum PhoneNumberFormat { enum
88 static const PhoneNumberFormat kMaxNumberFormat = RFC3966;
340 PhoneNumberFormat number_format,
347 PhoneNumberFormat number_format,
876 PhoneNumberUtil::PhoneNumberFormat number_format,
883 PhoneNumberUtil::PhoneNumberFormat number_format,
899 PhoneNumberFormat number_format,
904 PhoneNumberFormat number_format,
911 PhoneNumberFormat number_format,
Dphonenumberutil.cc169 PhoneNumberUtil::PhoneNumberFormat number_format, in PrefixNumberWithCountryCallingCode()
1087 PhoneNumberFormat number_format, in Format()
1139 PhoneNumberFormat number_format, in FormatByPattern()
1717 PhoneNumberUtil::PhoneNumberFormat number_format, in FormatNsnUsingPatternWithCarrier()
1768 PhoneNumberUtil::PhoneNumberFormat number_format, in FormatNsnUsingPattern()
1777 PhoneNumberFormat number_format, in FormatNsn()
1790 PhoneNumberFormat number_format, in FormatNsnWithCarrier()
1815 PhoneNumberFormat number_format, in MaybeAppendFormattedExtension()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java446 public enum PhoneNumberFormat { enum in PhoneNumberUtil
953 PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL);
1260 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1281 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1288 if (numberFormat == PhoneNumberFormat.E164) {
1292 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.E164,
1325 PhoneNumberFormat numberFormat,
1402 PhoneNumberFormat.NATIONAL, carrierCode));
1403 maybeAppendFormattedExtension(number, metadata, PhoneNumberFormat.NATIONAL, formattedNumber);
1404 prefixNumberWithCountryCallingCode(countryCallingCode, PhoneNumberFormat.NATIONAL,
[all …]
DPhoneNumberMatcher.java21 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
543 String rfc3966Format = util.format(number, PhoneNumberFormat.RFC3966); in getNationalNumberGroups()
565 formattingPattern, PhoneNumberFormat.RFC3966).split("-"); in getNationalNumberGroups()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil.js972 i18n.phonenumbers.PhoneNumberFormat = {
1348 i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL);
1726 if (numberFormat == i18n.phonenumbers.PhoneNumberFormat.E164) {
1731 countryCallingCode, i18n.phonenumbers.PhoneNumberFormat.E164,
1885 number, metadata, i18n.phonenumbers.PhoneNumberFormat.NATIONAL);
1889 i18n.phonenumbers.PhoneNumberFormat.NATIONAL, carrierCode);
1891 countryCallingCode, i18n.phonenumbers.PhoneNumberFormat.NATIONAL,
2020 numberNoExt, i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL);
2023 numberNoExt, i18n.phonenumbers.PhoneNumberFormat.NATIONAL);
2052 numberNoExt, i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL);
[all …]
Dphonenumberutil_test.js653 var PNF = i18n.phonenumbers.PhoneNumberFormat;
676 var PNF = i18n.phonenumbers.PhoneNumberFormat;
683 var PNF = i18n.phonenumbers.PhoneNumberFormat;
694 var PNF = i18n.phonenumbers.PhoneNumberFormat;
742 var PNF = i18n.phonenumbers.PhoneNumberFormat;
755 var PNF = i18n.phonenumbers.PhoneNumberFormat;
772 var PNF = i18n.phonenumbers.PhoneNumberFormat;
785 var PNF = i18n.phonenumbers.PhoneNumberFormat;
1027 var PNF = i18n.phonenumbers.PhoneNumberFormat;
1057 var PNF = i18n.phonenumbers.PhoneNumberFormat;
[all …]
Ddemo.js122 var PNF = i18n.phonenumbers.PhoneNumberFormat;
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java29 import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
166 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) : "invalid"; in getOutputForFile()
352 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.E164) : "invalid", in getOutputForSingleNumber()
356 appendLine("National format", phoneUtil.format(number, PhoneNumberFormat.NATIONAL), output); in getOutputForSingleNumber()
359 isNumberValid ? phoneUtil.format(number, PhoneNumberFormat.INTERNATIONAL) : "invalid", in getOutputForSingleNumber()
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dohos_i18n.js142 PhoneNumberFormat: PhoneNumberFormatClass, property
206 export const PhoneNumberFormatClass = class PhoneNumberFormat{ class
/third_party/libphonenumber/
DREADME.md157 System.out.println(phoneUtil.format(swissNumberProto, PhoneNumberFormat.INTERNATIONAL));
159 System.out.println(phoneUtil.format(swissNumberProto, PhoneNumberFormat.NATIONAL));
161 System.out.println(phoneUtil.format(swissNumberProto, PhoneNumberFormat.E164));