Home
last modified time | relevance | path

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

/external/libchrome/base/strings/
Dstring_util_unittest.cc1137 TEST(StringUtilTest, ContainsOnlyChars) { in TEST() argument
1140 EXPECT_TRUE(ContainsOnlyChars(std::string(), std::string())); in TEST()
1141 EXPECT_FALSE(ContainsOnlyChars("Hello", std::string())); in TEST()
1143 EXPECT_TRUE(ContainsOnlyChars(std::string(), "1234")); in TEST()
1144 EXPECT_TRUE(ContainsOnlyChars("1", "1234")); in TEST()
1145 EXPECT_TRUE(ContainsOnlyChars("1", "4321")); in TEST()
1146 EXPECT_TRUE(ContainsOnlyChars("123", "4321")); in TEST()
1147 EXPECT_FALSE(ContainsOnlyChars("123a", "4321")); in TEST()
1149 EXPECT_TRUE(ContainsOnlyChars(std::string(), kWhitespaceASCII)); in TEST()
1150 EXPECT_TRUE(ContainsOnlyChars(" ", kWhitespaceASCII)); in TEST()
[all …]
Dstring_util.h266 BASE_EXPORT bool ContainsOnlyChars(const StringPiece& input,
268 BASE_EXPORT bool ContainsOnlyChars(const StringPiece16& input,
Dstring_util.cc475 bool ContainsOnlyChars(const StringPiece& input, in ContainsOnlyChars() function
480 bool ContainsOnlyChars(const StringPiece16& input, in ContainsOnlyChars() function