KVIrc 5.2.6
Developer APIs
KviRegExp Class Reference

#include <KviRegExp.h>

Public Types

enum  CaseSensitivity { CaseInsensitive = 0 , CaseSensitive = 1 }
 
enum  PatternSyntax { RegExp = 0 , Wildcard = 1 }
 

Public Member Functions

QString cap (int iNth=0) const
 
QStringList capturedTexts () const
 
bool exactMatch (const QString &szStr)
 
int indexIn (const QString &szStr, int offset=0)
 
 KviRegExp (const QString &szPattern=QString(), const KviRegExp::CaseSensitivity cs=CaseSensitive, const KviRegExp::PatternSyntax ps=RegExp)
 
int matchedLength () const
 
 operator QRegularExpression () const
 
const QString & pattern () const
 
void setCaseSensitivity (KviRegExp::CaseSensitivity cs)
 
void setMinimal (bool bMinimal)
 
void setPattern (const QString &szPattern)
 

Static Public Member Functions

static QString escape (const QString &szStr)
 

Private Member Functions

QString getCompletePattern () const
 
QRegularExpression::PatternOptions getPatternOptions () const
 

Private Attributes

bool m_bMinimal
 
KviRegExp::CaseSensitivity m_eCs
 
KviRegExp::PatternSyntax m_ePs
 
QRegularExpressionMatch m_oLastMatch
 
QString m_szPattern
 

Member Enumeration Documentation

◆ CaseSensitivity

Enumerator
CaseInsensitive 
CaseSensitive 

◆ PatternSyntax

Enumerator
RegExp 
Wildcard 

Constructor & Destructor Documentation

◆ KviRegExp()

KviRegExp::KviRegExp ( const QString & szPattern = QString(),
const KviRegExp::CaseSensitivity cs = CaseSensitive,
const KviRegExp::PatternSyntax ps = RegExp )

References m_bMinimal, m_eCs, m_ePs, and m_szPattern.

Member Function Documentation

◆ cap()

◆ capturedTexts()

QStringList KviRegExp::capturedTexts ( ) const

◆ escape()

static QString KviRegExp::escape ( const QString & szStr)
inlinestatic

◆ exactMatch()

◆ getCompletePattern()

QString KviRegExp::getCompletePattern ( ) const
private

◆ getPatternOptions()

QRegularExpression::PatternOptions KviRegExp::getPatternOptions ( ) const
private

◆ indexIn()

◆ matchedLength()

◆ operator QRegularExpression()

KviRegExp::operator QRegularExpression ( ) const
inline

◆ pattern()

const QString & KviRegExp::pattern ( ) const
inline

◆ setCaseSensitivity()

void KviRegExp::setCaseSensitivity ( KviRegExp::CaseSensitivity cs)
inline

References m_eCs.

Referenced by KviConsoleWindow::applyHighlighting().

◆ setMinimal()

void KviRegExp::setMinimal ( bool bMinimal)
inline

◆ setPattern()

void KviRegExp::setPattern ( const QString & szPattern)
inline

Member Data Documentation

◆ m_bMinimal

bool KviRegExp::m_bMinimal
private

◆ m_eCs

KviRegExp::CaseSensitivity KviRegExp::m_eCs
private

◆ m_ePs

KviRegExp::PatternSyntax KviRegExp::m_ePs
private

Referenced by getCompletePattern(), and KviRegExp().

◆ m_oLastMatch

QRegularExpressionMatch KviRegExp::m_oLastMatch
private

◆ m_szPattern

QString KviRegExp::m_szPattern
private

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