Home
last modified time | relevance | path

Searched refs:ShortNumberInfo (Results 1 – 13 of 13) sorted by relevance

/third_party/libphonenumber/cpp/src/phonenumbers/
Dshortnumberinfo.cc45 ShortNumberInfo::ShortNumberInfo() in ShortNumberInfo() function in i18n::phonenumbers::ShortNumberInfo
64 ShortNumberInfo::~ShortNumberInfo() {} in ~ShortNumberInfo()
68 const PhoneMetadata* ShortNumberInfo::GetMetadataForRegion( in GetMetadataForRegion()
96 bool ShortNumberInfo::RegionDialingFromMatchesNumber(const PhoneNumber& number, in RegionDialingFromMatchesNumber()
106 bool ShortNumberInfo::IsPossibleShortNumberForRegion(const PhoneNumber& number, in IsPossibleShortNumberForRegion()
124 bool ShortNumberInfo::IsPossibleShortNumber(const PhoneNumber& number) const { in IsPossibleShortNumber()
145 bool ShortNumberInfo::IsValidShortNumberForRegion( in IsValidShortNumberForRegion()
167 bool ShortNumberInfo::IsValidShortNumber(const PhoneNumber& number) const { in IsValidShortNumber()
179 ShortNumberInfo::ShortNumberCost ShortNumberInfo::GetExpectedCostForRegion( in GetExpectedCostForRegion()
182 return ShortNumberInfo::UNKNOWN_COST; in GetExpectedCostForRegion()
[all …]
Dshortnumberinfo.h43 class ShortNumberInfo {
45 ShortNumberInfo();
46 ~ShortNumberInfo();
208 DISALLOW_COPY_AND_ASSIGN(ShortNumberInfo);
Dphonenumberutil.h63 friend class ShortNumberInfo; variable
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dshortnumberinfo.js47 i18n.phonenumbers.ShortNumberInfo = function() { class in i18n.phonenumbers
54 goog.addSingletonGetter(i18n.phonenumbers.ShortNumberInfo);
64 i18n.phonenumbers.ShortNumberInfo.
75 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost = {
92 i18n.phonenumbers.ShortNumberInfo.prototype.getRegionCodesForCountryCode_ =
108 i18n.phonenumbers.ShortNumberInfo.prototype.regionDialingFromMatchesNumber_ =
125 i18n.phonenumbers.ShortNumberInfo.prototype.isPossibleShortNumberForRegion =
149 i18n.phonenumbers.ShortNumberInfo.prototype.isPossibleShortNumber =
179 i18n.phonenumbers.ShortNumberInfo.prototype.isValidShortNumberForRegion =
210 i18n.phonenumbers.ShortNumberInfo.prototype.isValidShortNumber =
[all …]
Dshortnumberinfo_test.js39 var shortInfo = i18n.phonenumbers.ShortNumberInfo.getInstance();
127 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.PREMIUM_RATE);
129 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.PREMIUM_RATE,
136 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.PREMIUM_RATE,
141 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.STANDARD_RATE);
143 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.STANDARD_RATE,
150 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.STANDARD_RATE,
155 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE);
157 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE,
164 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE,
[all …]
Ddemo.js106 var shortInfo = i18n.phonenumbers.ShortNumberInfo.getInstance();
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java27 private static final ShortNumberInfo shortInfo = ShortNumberInfo.getInstance();
91 ShortNumberInfo.ShortNumberCost.PREMIUM_RATE); in testGetExpectedCost()
92 assertEquals(ShortNumberInfo.ShortNumberCost.PREMIUM_RATE, shortInfo.getExpectedCostForRegion( in testGetExpectedCost()
96 assertEquals(ShortNumberInfo.ShortNumberCost.PREMIUM_RATE, in testGetExpectedCost()
100 ShortNumberInfo.ShortNumberCost.STANDARD_RATE); in testGetExpectedCost()
101 assertEquals(ShortNumberInfo.ShortNumberCost.STANDARD_RATE, shortInfo.getExpectedCostForRegion( in testGetExpectedCost()
105 assertEquals(ShortNumberInfo.ShortNumberCost.STANDARD_RATE, in testGetExpectedCost()
109 ShortNumberInfo.ShortNumberCost.TOLL_FREE); in testGetExpectedCost()
110 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost()
114 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost()
[all …]
DExampleNumbersTest.java41 private final ShortNumberInfo shortNumberInfo = ShortNumberInfo.getInstance();
221 for (ShortNumberInfo.ShortNumberCost cost : ShortNumberInfo.ShortNumberCost.values()) { in testShortNumbersValidAndCorrectCost()
225 ShortNumberInfo.ShortNumberCost exampleShortNumberCost = in testShortNumbersValidAndCorrectCost()
253 != ShortNumberInfo.ShortNumberCost.TOLL_FREE) { in testEmergency()
/third_party/libphonenumber/cpp/test/phonenumbers/
Dshortnumberinfo_test.cc50 const ShortNumberInfo short_info_;
139 RegionCode::FR(), ShortNumberInfo::PREMIUM_RATE); in TEST_F()
140 EXPECT_EQ(ShortNumberInfo::PREMIUM_RATE, in TEST_F()
148 EXPECT_EQ(ShortNumberInfo::PREMIUM_RATE, in TEST_F()
153 RegionCode::FR(), ShortNumberInfo::STANDARD_RATE); in TEST_F()
154 EXPECT_EQ(ShortNumberInfo::STANDARD_RATE, in TEST_F()
162 EXPECT_EQ(ShortNumberInfo::STANDARD_RATE, in TEST_F()
167 RegionCode::FR(), ShortNumberInfo::TOLL_FREE); in TEST_F()
168 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F()
176 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F()
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberInfo.java45 public class ShortNumberInfo { class
46 private static final Logger logger = Logger.getLogger(ShortNumberInfo.class.getName());
48 private static final ShortNumberInfo INSTANCE =
49 new ShortNumberInfo(
71 public static ShortNumberInfo getInstance() { in getInstance()
88 ShortNumberInfo(MatcherApi matcherApi, in ShortNumberInfo() method in ShortNumberInfo
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java33 import com.google.i18n.phonenumbers.ShortNumberInfo;
61 private ShortNumberInfo shortInfo = ShortNumberInfo.getInstance();
/third_party/libphonenumber/
Drelease_notes.txt957 - Ported ShortNumberInfo to Javascript.
1134 some of the internal methods to do the same. This affects ShortNumberInfo and
1360 - Introduced new isCarrierSpecificForRegion() API in ShortNumberInfo class.
1389 - Deleted deprecated methods in ShortNumberInfo that work on strings, instead
1911 - New APIs for ShortNumberInfo. The old APIs have been deprecated and will be
2072 - Adding more functionality to ShortNumberInfo -> such as getExpectedCostForRegion.
2175 - Renamed ShortNumberUtil to ShortNumberInfo -> the former class is now deprecated and will be
2176 deleted in a later release. At the moment it just delegates to ShortNumberInfo.
2177 - New methods in the ShortNumberInfo API - isCarrierSpecific, singleton interface,
DFAQ.md106 [`ShortNumberInfo`](https://github.com/google/libphonenumber/blob/master/java/libphonenumber/src/co…