class MatchesRegexMatcher
Defined at line 783 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
Implements polymorphic matchers MatchesRegex(regex) and
ContainsRegex(regex), which can be used as a Matcher
<T
> as long as
T can be converted to a string.
Public Methods
void MatchesRegexMatcher (const RE * regex, bool full_match)
Defined at line 785 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
bool MatchAndExplain (const internal::StringView & s, MatchResultListener * listener)
Defined at line 789 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
template <typename CharType>
bool MatchAndExplain (CharType * s, MatchResultListener * listener)
Accepts pointer types, particularly:
const char*
char*
const wchar_t*
wchar_t*
Defined at line 801 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
template <class MatcheeStringType>
bool MatchAndExplain (const MatcheeStringType & s, MatchResultListener * )
Matches anything that can convert to std::string.
This is a template, not just a plain function with const std::string
&
,
because absl::string_view has some interfering non-explicit constructors.
Defined at line 810 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
void DescribeTo (::std::ostream * os)
Defined at line 817 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
void DescribeNegationTo (::std::ostream * os)
Defined at line 822 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h