Home
last modified time | relevance | path

Searched refs:usNumber (Results 1 – 2 of 2) sorted by relevance

/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil_test.js1093 var usNumber = new i18n.phonenumbers.PhoneNumber();
1094 usNumber.setCountryCode(1);
1095 usNumber.setNationalNumber(4241231234);
1096 usNumber.setPreferredDomesticCarrierCode('99');
1097 assertEquals('424 123 1234', phoneUtil.format(usNumber, PNF.NATIONAL));
1100 phoneUtil.formatNationalNumberWithPreferredCarrierCode(usNumber, '15'));
2831 var usNumber = new i18n.phonenumbers.PhoneNumber();
2834 usNumber.setCountryCode(1);
2835 usNumber.setNationalNumber(1234567890);
2836 assertTrue(usNumber.equals(phoneUtil.parse('123-456-7890', RegionCode.US)));
[all …]
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java803 PhoneNumber usNumber = new PhoneNumber(); in testFormatWithPreferredCarrierCode() local
804 usNumber.setCountryCode(1).setNationalNumber(4241231234L).setPreferredDomesticCarrierCode("99"); in testFormatWithPreferredCarrierCode()
805 assertEquals("424 123 1234", phoneUtil.format(usNumber, PhoneNumberFormat.NATIONAL)); in testFormatWithPreferredCarrierCode()
807 phoneUtil.formatNationalNumberWithPreferredCarrierCode(usNumber, "15")); in testFormatWithPreferredCarrierCode()
2134 PhoneNumber usNumber = new PhoneNumber(); in testParseNationalNumber() local
2137 usNumber.setCountryCode(1).setNationalNumber(1234567890L); in testParseNationalNumber()
2138 assertEquals(usNumber, phoneUtil.parse("123-456-7890", RegionCode.US)); in testParseNationalNumber()
2807 PhoneNumber usNumber = new PhoneNumber(); in testParseHandlesShortExtensionsWhenNotSureOfLabel() local
2808 usNumber.setCountryCode(1).setNationalNumber(1234567890L).setExtension("666666"); in testParseHandlesShortExtensionsWhenNotSureOfLabel()
2809 assertEquals(usNumber, phoneUtil.parse("+1123-456-7890 666666#", RegionCode.US)); in testParseHandlesShortExtensionsWhenNotSureOfLabel()
[all …]