Searched refs:ContainsOnlyChars (Results 1 – 3 of 3) sorted by relevance
/external/libchrome/base/strings/ |
D | string_util_unittest.cc | 1276 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 …]
|
D | string_util.h | 267 BASE_EXPORT bool ContainsOnlyChars(StringPiece input, StringPiece characters); 268 BASE_EXPORT bool ContainsOnlyChars(StringPiece16 input,
|
D | string_util.cc | 462 bool ContainsOnlyChars(StringPiece input, StringPiece characters) { in ContainsOnlyChars() function 466 bool ContainsOnlyChars(StringPiece16 input, StringPiece16 characters) { in ContainsOnlyChars() function
|