Home
last modified time | relevance | path

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

/external/libchrome/base/strings/
Dstring_util_unittest.cc1276 TEST(StringUtilTest, ContainsOnlyChars) { in TEST() argument
1279 EXPECT_TRUE(ContainsOnlyChars(std::string(), std::string())); in TEST()
1280 EXPECT_FALSE(ContainsOnlyChars("Hello", std::string())); in TEST()
1282 EXPECT_TRUE(ContainsOnlyChars(std::string(), "1234")); in TEST()
1283 EXPECT_TRUE(ContainsOnlyChars("1", "1234")); in TEST()
1284 EXPECT_TRUE(ContainsOnlyChars("1", "4321")); in TEST()
1285 EXPECT_TRUE(ContainsOnlyChars("123", "4321")); in TEST()
1286 EXPECT_FALSE(ContainsOnlyChars("123a", "4321")); in TEST()
1288 EXPECT_TRUE(ContainsOnlyChars(std::string(), kWhitespaceASCII)); in TEST()
1289 EXPECT_TRUE(ContainsOnlyChars(" ", kWhitespaceASCII)); in TEST()
[all …]
Dstring_util.h267 BASE_EXPORT bool ContainsOnlyChars(StringPiece input, StringPiece characters);
268 BASE_EXPORT bool ContainsOnlyChars(StringPiece16 input,
Dstring_util.cc462 bool ContainsOnlyChars(StringPiece input, StringPiece characters) { in ContainsOnlyChars() function
466 bool ContainsOnlyChars(StringPiece16 input, StringPiece16 characters) { in ContainsOnlyChars() function