Home
last modified time | relevance | path

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

/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonenumberutil.h834 bool ContainsOnlyValidDigits(const string& s) const;
Dasyoutypeformatter.cc339 if (!(phone_util_.ContainsOnlyValidDigits(next_char_string) || in InputDigitWithOptionToRememberPosition()
Dphonenumberutil.cc972 bool PhoneNumberUtil::ContainsOnlyValidDigits(const string& s) const { in ContainsOnlyValidDigits() function in i18n::phonenumbers::PhoneNumberUtil
/third_party/libphonenumber/cpp/test/phonenumbers/
Dphonenumberutil_test.cc110 bool ContainsOnlyValidDigits(const string& s) const { in ContainsOnlyValidDigits() function in i18n::phonenumbers::PhoneNumberUtilTest
111 return phone_util_.ContainsOnlyValidDigits(s); in ContainsOnlyValidDigits()
120 TEST_F(PhoneNumberUtilTest, ContainsOnlyValidDigits) { in TEST_F() argument
121 EXPECT_TRUE(ContainsOnlyValidDigits("")); in TEST_F()
122 EXPECT_TRUE(ContainsOnlyValidDigits("2")); in TEST_F()
123 EXPECT_TRUE(ContainsOnlyValidDigits("25")); in TEST_F()
124 EXPECT_TRUE(ContainsOnlyValidDigits("\xEF\xBC\x96" /* "6" */)); in TEST_F()
125 EXPECT_FALSE(ContainsOnlyValidDigits("a")); in TEST_F()
126 EXPECT_FALSE(ContainsOnlyValidDigits("2a")); in TEST_F()