1746 {
1747
1748
1749 std::string all_match_result;
1750
1751 for (size_t i = 0; i < matchers_.size(); ++i) {
1752 StringMatchResultListener slistener;
1754 if (all_match_result.empty()) {
1755 all_match_result = slistener.str();
1756 } else {
1757 std::string result = slistener.str();
1758 if (!result.empty()) {
1759 all_match_result += ", and ";
1760 all_match_result += result;
1761 }
1762 }
1763 } else {
1764 *listener << slistener.str();
1765 return false;
1766 }
1767 }
1768
1769
1770 *listener << all_match_result;
1771 return true;
1772 }
virtual bool MatchAndExplain(GTEST_REFERENCE_TO_CONST_(T) x, MatchResultListener *listener) const