#include <pattern.h>
Public Types | |
enum | Syntax { RegExp, Wildcard } |
Public Member Functions | |
Pattern (const Pattern &pattern) | |
Pattern (const QRegularExpression &re) | |
Pattern (const QString &pattern, QRegularExpression::PatternOptions options=QRegularExpression::NoPatternOption, Syntax syntax=RegExp) | |
void | setUserPattern (const QString &pattern, Syntax syntax=RegExp) |
QString | userPattern () const |
Static Public Member Functions | |
static QString | wildcardToRegularExpression (const QString &pattern) |
Friends | |
QDataStream & | operator<< (QDataStream &out, const Pattern &re) |
QDataStream & | operator>> (QDataStream &in, Pattern &re) |
Wraps a regular expression which is potentially user visibile (i.e. created by the user). In these situations we need to keep the input pattern as well as the syntax used so that we can read it later.