yast2-storage
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes

storage::Regex Class Reference

#include <Regex.h>

Inheritance diagram for storage::Regex:
noncopyable

List of all members.

Public Member Functions

 Regex (const char *pattern, int cflags=REG_EXTENDED, unsigned int=10)
 Regex (const string &pattern, int cflags=REG_EXTENDED, unsigned int=10)
 ~Regex ()
string getPattern () const
int getCflags () const
bool match (const string &, int eflags=0) const
regoff_t so (unsigned int) const
regoff_t eo (unsigned int) const
string cap (unsigned int) const

Static Public Member Functions

static string escape (const string &str)

Static Public Attributes

static const string ws = "[ \t]*"
static const string number = "[0123456789]+"

Private Attributes

const string pattern
const int cflags
const unsigned int nm
regex_t rx
int my_nl_msg_cat_cntr
regmatch_t * rm
string last_str

Constructor & Destructor Documentation

Regex::Regex ( const char *  pattern,
int  cflags = REG_EXTENDED,
unsigned int  nm = 10 
)
Regex::Regex ( const string &  pattern,
int  cflags = REG_EXTENDED,
unsigned int  nm = 10 
)
Regex::~Regex ( )

References rm, and rx.


Member Function Documentation

string Regex::cap ( unsigned int  i) const
regoff_t Regex::eo ( unsigned int  i) const

References nm, and rm.

string Regex::escape ( const string &  str) [static]

Referenced by storage::Fdasd::Fdasd().

int storage::Regex::getCflags ( ) const [inline]

References cflags.

string storage::Regex::getPattern ( ) const [inline]

References pattern.

bool Regex::match ( const string &  str,
int  eflags = 0 
) const
regoff_t Regex::so ( unsigned int  i) const

References nm, and rm.

Referenced by storage::DmCo::getDmData().


Member Data Documentation

const int storage::Regex::cflags [private]

Referenced by getCflags(), match(), and Regex().

string storage::Regex::last_str [mutable, private]

Referenced by cap(), and match().

int storage::Regex::my_nl_msg_cat_cntr [mutable, private]

Referenced by match(), and Regex().

const unsigned int storage::Regex::nm [private]

Referenced by cap(), eo(), match(), Regex(), and so().

const string Regex::number = "[0123456789]+" [static]
const string storage::Regex::pattern [private]

Referenced by getPattern(), and match().

regmatch_t* storage::Regex::rm [mutable, private]

Referenced by cap(), eo(), match(), Regex(), so(), and ~Regex().

regex_t storage::Regex::rx [mutable, private]

Referenced by match(), Regex(), and ~Regex().

const string Regex::ws = "[ \t]*" [static]

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