QRegExp

#include <QtCore/QRegExp>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QRegExp


Overview

Public Types Index

Public Functions Index

QRegExp ()
QRegExp (const QString &pattern, Qt::CaseSensitivity cs=Qt::CaseSensitive, PatternSyntax syntax=RegExp)
QRegExp (const QRegExp &rx)
~QRegExp ()
QStringcap (int nth=0) const
QStringcap (int nth=0)
intcaptureCount () const
QStringListcapturedTexts () const
QStringListcapturedTexts ()
Qt::CaseSensitivitycaseSensitivity () const
QStringerrorString () const
QStringerrorString ()
boolexactMatch (const QString &str) const
intindexIn (const QString &str, int offset=0, CaretMode caretMode=CaretAtZero) const
boolisEmpty () const
boolisMinimal () const
boolisValid () const
intlastIndexIn (const QString &str, int offset=-1, CaretMode caretMode=CaretAtZero) const
intmatchedLength () const
booloperator!= (const QRegExp &rx) const
QRegExp &operator= (const QRegExp &rx)
booloperator== (const QRegExp &rx) const
QStringpattern () const
PatternSyntaxpatternSyntax () const
intpos (int nth=0) const
intpos (int nth=0)
voidsetCaseSensitivity (Qt::CaseSensitivity cs)
voidsetMinimal (bool minimal)
voidsetPattern (const QString &pattern)
voidsetPatternSyntax (PatternSyntax syntax)
voidswap (QRegExp &other)

Static Public Functions Index

QStringescape (const QString &str)

Public Types

CaretMode

CaretAtZero
CaretAtOffset
CaretWontMatch

PatternSyntax

RegExp
Wildcard
FixedString
RegExp2
WildcardUnix
W3CXmlSchema11

Public Functions

QRegExp ()

QRegExp (
  • const QString &pattern,
  • Qt::CaseSensitivitycs,
  • PatternSyntaxsyntax )

QRegExp (

~QRegExp ()

Destructor.

QString cap (
  • intnth)

QString cap (
  • intnth)

int captureCount ()

QStringList capturedTexts ()

QStringList capturedTexts ()

Qt::CaseSensitivity caseSensitivity ()

QString errorString ()

QString errorString ()

bool exactMatch (

int indexIn (
  • const QString &str,
  • intoffset,
  • CaretModecaretMode )

bool isEmpty ()

bool isMinimal ()

bool isValid ()

int lastIndexIn (
  • const QString &str,
  • intoffset,
  • CaretModecaretMode )

int matchedLength ()

bool operator!= (

QRegExp & operator= (

bool operator== (

QString pattern ()

PatternSyntax patternSyntax ()

int pos (
  • intnth)

int pos (
  • intnth)

void setCaseSensitivity (
  • Qt::CaseSensitivitycs)

void setMinimal (
  • boolminimal)

void setPattern (

void setPatternSyntax (
  • PatternSyntaxsyntax)

void swap (

Static Public Functions

QString escape (

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus