Pattern Class Reference

#include <pattern.h>

+ Inheritance diagram for Pattern:

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)
 

Detailed Description

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.

Definition at line 38 of file pattern.h.


The documentation for this class was generated from the following files: