#include <RegexPattern.h>

Collaboration diagram for RegexPattern:

Public Member Functions

 RegexPattern ()=delete
 
 RegexPattern (int aFlags, const char *aPattern)
 
 ~RegexPattern ()
 
 RegexPattern (const RegexPattern &)=delete
 
RegexPatternoperator= (const RegexPattern &)=delete
 
 RegexPattern (RegexPattern &&)
 
RegexPatternoperator= (RegexPattern &&)
 
const char * c_str () const
 
bool match (const char *str) const
 

Public Attributes

int flags
 
regex_t regex
 

Private Member Functions

 MEMPROXY_CLASS (RegexPattern)
 

Private Attributes

char * pattern
 

Detailed Description

A regular expression, plain text and compiled representations

Definition at line 19 of file RegexPattern.h.

Constructor & Destructor Documentation

◆ RegexPattern() [1/4]

RegexPattern::RegexPattern ( )
delete

◆ RegexPattern() [2/4]

RegexPattern::RegexPattern ( int  aFlags,
const char *  aPattern 
)

Definition at line 13 of file RegexPattern.cc.

References regex.

◆ ~RegexPattern()

RegexPattern::~RegexPattern ( )

Definition at line 29 of file RegexPattern.cc.

References pattern, regex, regfree(), and xfree.

◆ RegexPattern() [3/4]

RegexPattern::RegexPattern ( const RegexPattern )
delete

◆ RegexPattern() [4/4]

RegexPattern::RegexPattern ( RegexPattern &&  o)

Definition at line 20 of file RegexPattern.cc.

Member Function Documentation

◆ c_str()

const char* RegexPattern::c_str ( ) const
inline

Definition at line 35 of file RegexPattern.h.

References pattern.

Referenced by dump_refreshpattern(), and refreshCheck().

◆ match()

bool RegexPattern::match ( const char *  str) const
inline

Definition at line 36 of file RegexPattern.h.

References NULL, regex, and regexec().

◆ MEMPROXY_CLASS()

RegexPattern::MEMPROXY_CLASS ( RegexPattern  )
private

◆ operator=() [1/2]

RegexPattern& RegexPattern::operator= ( const RegexPattern )
delete

◆ operator=() [2/2]

RegexPattern & RegexPattern::operator= ( RegexPattern &&  o)

Definition at line 36 of file RegexPattern.cc.

References flags, pattern, and regex.

Member Data Documentation

◆ flags

int RegexPattern::flags

Definition at line 39 of file RegexPattern.h.

Referenced by dump_refreshpattern(), and operator=().

◆ pattern

char* RegexPattern::pattern
private

Definition at line 43 of file RegexPattern.h.

Referenced by c_str(), operator=(), and ~RegexPattern().

◆ regex

regex_t RegexPattern::regex

Definition at line 40 of file RegexPattern.h.

Referenced by match(), operator=(), parse_refreshpattern(), RegexPattern(), and ~RegexPattern().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors