Checking the occurence of a substring within a target string is also needed frequently:
ExpectationSegment <std::string> es ("verifySegment", 0); es.setExpected("substr"); es.setActual("ubs")