Home
last modified time | relevance | path

Searched refs:IsEmergencyNumber (Results 1 – 3 of 3) sorted by relevance

/third_party/libphonenumber/cpp/test/phonenumbers/
Dshortnumberinfo_test.cc385 EXPECT_TRUE(short_info_.IsEmergencyNumber("911", RegionCode::US())); in TEST_F()
386 EXPECT_TRUE(short_info_.IsEmergencyNumber("112", RegionCode::US())); in TEST_F()
387 EXPECT_FALSE(short_info_.IsEmergencyNumber("999", RegionCode::US())); in TEST_F()
391 EXPECT_FALSE(short_info_.IsEmergencyNumber("9116666666", RegionCode::US())); in TEST_F()
392 EXPECT_FALSE(short_info_.IsEmergencyNumber("1126666666", RegionCode::US())); in TEST_F()
393 EXPECT_FALSE(short_info_.IsEmergencyNumber("9996666666", RegionCode::US())); in TEST_F()
397 EXPECT_TRUE(short_info_.IsEmergencyNumber("9-1-1", RegionCode::US())); in TEST_F()
398 EXPECT_TRUE(short_info_.IsEmergencyNumber("*911", RegionCode::US())); in TEST_F()
399 EXPECT_TRUE(short_info_.IsEmergencyNumber("1-1-2", RegionCode::US())); in TEST_F()
400 EXPECT_TRUE(short_info_.IsEmergencyNumber("*112", RegionCode::US())); in TEST_F()
[all …]
/third_party/libphonenumber/cpp/src/phonenumbers/
Dshortnumberinfo.h143 bool IsEmergencyNumber(const string& number,
Dshortnumberinfo.cc218 if (IsEmergencyNumber(short_number, region_dialing_from)) { in GetExpectedCostForRegion()
333 bool ShortNumberInfo::IsEmergencyNumber(const string& number, in IsEmergencyNumber() function in i18n::phonenumbers::ShortNumberInfo