#include <klflib.h>
Public Member Functions | |
StringMatch (const QVariant &value=QVariant(), Qt::MatchFlags flags=Qt::MatchExactly) | |
StringMatch (const StringMatch &m) | |
const Qt::MatchFlags | matchFlags () const |
const QVariant | matchValue () const |
const QString | matchValueString () const |
Protected Attributes | |
Qt::MatchFlags | mFlags |
QVariant | mValue |
QString | mValueString |
Describes a matching criterion for a string
Note: The Qt::MatchWrap and Qt::MatchRecursive flags are ignored.
KLFLib::StringMatch::StringMatch | ( | const StringMatch & | m | ) | [inline] |
const Qt::MatchFlags KLFLib::StringMatch::matchFlags | ( | ) | const [inline] |
How the match should be tested (exact match, regex, contains, etc.), this is a binary-OR'ed value of Qt::MatchFlag enum values.
the Qt::MatchCaseSensitive may be set to match case sensitive.
Definition at line 173 of file klflib.h.
References mFlags.
Referenced by make_sql_condition(), operator<<(), and KLFLibResourceSimpleEngine::testEntryMatchConditionImpl().
const QVariant KLFLib::StringMatch::matchValue | ( | ) | const [inline] |
The value that will be matched to.
Definition at line 175 of file klflib.h.
References mValue.
Referenced by KLFLibResourceSimpleEngine::testEntryMatchConditionImpl().
const QString KLFLib::StringMatch::matchValueString | ( | ) | const [inline] |
equivalent to matchValue().toString()
, however the conversion is performed once and cached.
Definition at line 178 of file klflib.h.
References mValueString.
Referenced by make_sql_condition(), operator<<(), and KLFLibResourceSimpleEngine::testEntryMatchConditionImpl().
Qt::MatchFlags KLFLib::StringMatch::mFlags [protected] |
Definition at line 181 of file klflib.h.
Referenced by matchFlags().
QVariant KLFLib::StringMatch::mValue [protected] |
Definition at line 182 of file klflib.h.
Referenced by matchValue().
QString KLFLib::StringMatch::mValueString [protected] |
Definition at line 183 of file klflib.h.
Referenced by matchValueString().