Home
last modified time | relevance | path

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

/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-port-test.cc840 EXPECT_FALSE(MatchRegexAnywhere("", NULL)); in TEST()
844 EXPECT_FALSE(MatchRegexAnywhere("^a", "ba")); in TEST()
845 EXPECT_FALSE(MatchRegexAnywhere("^$", "a")); in TEST()
847 EXPECT_TRUE(MatchRegexAnywhere("^a", "ab")); in TEST()
848 EXPECT_TRUE(MatchRegexAnywhere("^", "ab")); in TEST()
849 EXPECT_TRUE(MatchRegexAnywhere("^$", "")); in TEST()
853 EXPECT_FALSE(MatchRegexAnywhere("a", "bcde123")); in TEST()
854 EXPECT_FALSE(MatchRegexAnywhere("a.+a", "--aa88888888")); in TEST()
858 EXPECT_TRUE(MatchRegexAnywhere("\\w+", "ab1_ - 5")); in TEST()
859 EXPECT_TRUE(MatchRegexAnywhere(".*=", "=")); in TEST()
[all …]
/freebsd/contrib/googletest/googletest/src/
H A Dgtest-port.cc940 bool MatchRegexAnywhere(const char* regex, const char* str) { in MatchRegexAnywhere() function
958 return re.is_valid_ && MatchRegexAnywhere(re.full_pattern_.c_str(), str); in FullMatch()
964 return re.is_valid_ && MatchRegexAnywhere(re.pattern_.c_str(), str); in PartialMatch()
H A Dgtest-internal-inl.h999 GTEST_API_ bool MatchRegexAnywhere(const char* regex, const char* str);