8#ifndef TWOBLUECUBES_CATCH_MATCHERS_STRING_H_INCLUDED
9#define TWOBLUECUBES_CATCH_MATCHERS_STRING_H_INCLUDED
23 std::string
adjustString( std::string
const& str )
const;
32 std::string
describe()
const override;
40 bool match( std::string
const&
source )
const override;
42 struct ContainsMatcher : StringMatcherBase {
44 bool match( std::string
const&
source )
const override;
46 struct StartsWithMatcher : StringMatcherBase {
48 bool match( std::string
const&
source )
const override;
50 struct EndsWithMatcher : StringMatcherBase {
52 bool match( std::string
const&
source )
const override;
55 struct RegexMatcher : MatcherBase<std::string> {
57 bool match( std::string
const& matchee )
const override;
58 std::string
describe()
const override;
StdString::StartsWithMatcher StartsWith(std::string const &str, CaseSensitive::Choice caseSensitivity)
StdString::EqualsMatcher Equals(std::string const &str, CaseSensitive::Choice caseSensitivity)
StdString::EndsWithMatcher EndsWith(std::string const &str, CaseSensitive::Choice caseSensitivity)
StdString::ContainsMatcher Contains(std::string const &str, CaseSensitive::Choice caseSensitivity)
StdString::RegexMatcher Matches(std::string const ®ex, CaseSensitive::Choice caseSensitivity)
const CharType(& source)[N]
std::string adjustString(std::string const &str) const
std::string caseSensitivitySuffix() const
CasedString(std::string const &str, CaseSensitive::Choice caseSensitivity)
CaseSensitive::Choice m_caseSensitivity
bool match(std::string const &source) const override
ContainsMatcher(CasedString const &comparator)
EndsWithMatcher(CasedString const &comparator)
bool match(std::string const &source) const override
bool match(std::string const &source) const override
EqualsMatcher(CasedString const &comparator)
std::string describe() const override
bool match(std::string const &matchee) const override
RegexMatcher(std::string regex, CaseSensitive::Choice caseSensitivity)
StartsWithMatcher(CasedString const &comparator)
bool match(std::string const &source) const override
StringMatcherBase(std::string const &operation, CasedString const &comparator)
std::string describe() const override