Public Types | Public Member Functions | Static Public Member Functions

QRegExp Class Reference

Search for all occurrences

Detailed Description

Definition at line 61 of file qregexp.h.

#include <qregexp.h>

List of all members.

Public Types

enum   PatternSyntax {
  RegExp, Wildcard, FixedString, RegExp2,
  WildcardUnix, W3CXmlSchema11
}
enum   CaretMode { CaretAtZero, CaretAtOffset, CaretWontMatch }

Public Member Functions

  QRegExp ()
  QRegExp (const QString &pattern, Qt::CaseSensitivity cs=Qt::CaseSensitive, PatternSyntax syntax=RegExp)
  QRegExp (const QRegExp &rx)
  ~QRegExp ()
QRegExp operator= (const QRegExp &rx)
bool  operator== (const QRegExp &rx) const
bool  operator!= (const QRegExp &rx) const
bool  isEmpty () const
bool  isValid () const
QString  pattern () const
void  setPattern (const QString &pattern)
Qt::CaseSensitivity  caseSensitivity () const
void  setCaseSensitivity (Qt::CaseSensitivity cs)
PatternSyntax  patternSyntax () const
void  setPatternSyntax (PatternSyntax syntax)
bool  isMinimal () const
void  setMinimal (bool minimal)
bool  exactMatch (const QString &str) const
int  indexIn (const QString &str, int offset=0, CaretMode caretMode=CaretAtZero) const
int  lastIndexIn (const QString &str, int offset=-1, CaretMode caretMode=CaretAtZero) const
int  matchedLength () const
int  captureCount () const
QStringList  capturedTexts () const
QStringList  capturedTexts ()
QString  cap (int nth=0) const
QString  cap (int nth=0)
int  pos (int nth=0) const
int  pos (int nth=0)
QString  errorString () const
QString  errorString ()

Static Public Member Functions

static QString  escape (const QString &str)

Member Enumeration Documentation

enum CaretMode

Constructor & Destructor Documentation

QRegExp ( )
QRegExp ( const QString pattern,
Qt::CaseSensitivity  cs = Qt::CaseSensitive,
PatternSyntax  syntax = RegExp 
) [explicit]
QRegExp ( const QRegExp rx )
~QRegExp ( )

Member Function Documentation

QRegExp& operator= ( const QRegExp rx )
bool operator== ( const QRegExp rx ) const
bool operator!= ( const QRegExp rx ) const [inline]

Definition at line 81 of file qregexp.h.

{ return !operator==(rx); }
bool isEmpty ( ) const
bool isValid ( ) const
QString pattern ( ) const
void setPattern ( const QString pattern )
Qt::CaseSensitivity caseSensitivity ( ) const
void setCaseSensitivity ( Qt::CaseSensitivity  cs )
PatternSyntax patternSyntax ( ) const
void setPatternSyntax ( PatternSyntax  syntax )
bool isMinimal ( ) const
void setMinimal ( bool  minimal )
bool exactMatch ( const QString str ) const
int indexIn ( const QString str,
int  offset = 0,
CaretMode  caretMode = CaretAtZero 
) const
int lastIndexIn ( const QString str,
int  offset = -1,
CaretMode  caretMode = CaretAtZero 
) const
int matchedLength ( ) const
int captureCount ( ) const
QStringList capturedTexts ( ) const
QStringList capturedTexts ( )
QString cap ( int  nth = 0 ) const
QString cap ( int  nth = 0 )
int pos ( int  nth = 0 ) const
int pos ( int  nth = 0 )
QString errorString ( ) const
QString errorString ( )
static QString escape ( const QString str ) [static]

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

QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp
QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp QRegExp