template <typename StringType>

class StrEqualityMatcher

Defined at line 908 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

Implements equality-based string matchers like StrEq, StrCaseNe, and etc.

Public Methods

void StrEqualityMatcher<StringType> (StringType str, bool expect_eq, bool case_sensitive)

Defined at line 910 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

bool MatchAndExplain (const internal::StringView & s, MatchResultListener * listener)

Defined at line 916 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-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 931 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

template <typename MatcheeStringType>
bool MatchAndExplain (const MatcheeStringType & s, MatchResultListener * )

Matches anything that can convert to StringType.

This is a template, not just a plain function with const StringType

&

,

because StringView has some interfering non-explicit constructors.

Defined at line 943 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeTo (::std::ostream * os)

Defined at line 951 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeNegationTo (::std::ostream * os)

Defined at line 955 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h