1 #ifndef HAMCRESTQT_STRINGSTARTSWITH_H
2 #define HAMCRESTQT_STRINGSTARTSWITH_H
4 #include <QSharedPointer>
7 #include "substringmatcher.h"
20 virtual bool evalSubstringOf(
const QString &str)
const;
21 virtual QString relationship()
const;
34 inline QSharedPointer<Matcher<QString> >
startsWith(
const QString &prefix)
40 inline QSharedPointer<Matcher<QString> >
startsWith(
const char *prefix)
42 return QSharedPointer<Matcher<QString> >(
new StringStartsWith(QString(prefix)));
47 #endif // HAMCRESTQT_STRINGSTARTSWITH
Tests if the argument is a string that starts with a substring.
Definition: stringstartswith.h:14
QSharedPointer< Matcher< QString > > startsWith(const QString &prefix)
Creates a matcher that matches if the examined QString starts with the specified QString.
Definition: stringstartswith.h:34
Definition: substringmatcher.h:9