Lines Matching refs:StringType

872 template <typename StringType>
873 bool CaseInsensitiveStringEquals(const StringType& s1, const StringType& s2) {
880 const typename StringType::value_type nul = 0;
884 if (i1 == StringType::npos || i2 == StringType::npos) {
895 template <typename StringType>
898 StrEqualityMatcher(StringType str, bool expect_eq, bool case_sensitive)
908 const StringType& str = std::string(s);
923 return MatchAndExplain(StringType(s), listener);
926 // Matches anything that can convert to StringType.
928 // This is a template, not just a plain function with const StringType&,
933 const StringType s2(s);
957 const StringType string_;
965 template <typename StringType>
968 explicit HasSubstrMatcher(const StringType& substring)
976 const StringType& str = std::string(s);
988 return s != nullptr && MatchAndExplain(StringType(s), listener);
991 // Matches anything that can convert to StringType.
993 // This is a template, not just a plain function with const StringType&,
998 return StringType(s).find(substring_) != StringType::npos;
1013 const StringType substring_;
1019 template <typename StringType>
1022 explicit StartsWithMatcher(const StringType& prefix) : prefix_(prefix) {}
1029 const StringType& str = std::string(s);
1041 return s != nullptr && MatchAndExplain(StringType(s), listener);
1044 // Matches anything that can convert to StringType.
1046 // This is a template, not just a plain function with const StringType&,
1051 const StringType& s2(s);
1067 const StringType prefix_;
1073 template <typename StringType>
1076 explicit EndsWithMatcher(const StringType& suffix) : suffix_(suffix) {}
1083 const StringType& str = std::string(s);
1095 return s != nullptr && MatchAndExplain(StringType(s), listener);
1098 // Matches anything that can convert to StringType.
1100 // This is a template, not just a plain function with const StringType&,
1105 const StringType& s2(s);
1121 const StringType suffix_;