#include <Regex.h>
Public Member Functions | |
| Regex (const char *, int=REG_EXTENDED, unsigned int=10) | |
| Regex (const string &, int=REG_EXTENDED, unsigned int=10) | |
| ~Regex () | |
| string | getPattern () const |
| int | getCflags () const |
| bool | match (const string &, int=0) const |
| regoff_t | so (unsigned int) const |
| regoff_t | eo (unsigned int) const |
| string | cap (unsigned int) const |
Static Public Attributes | |
| static const string & | ws = "[ ]*" |
| 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 |
| Regex::Regex | ( | const char * | pattern, | |
| int | cflags = REG_EXTENDED, |
|||
| unsigned int | nm = 10 | |||
| ) |
References _nl_msg_cat_cntr, my_nl_msg_cat_cntr, rm, and rx.
| Regex::Regex | ( | const string & | pattern, | |
| int | cflags = REG_EXTENDED, |
|||
| unsigned int | nm = 10 | |||
| ) |
References _nl_msg_cat_cntr, my_nl_msg_cat_cntr, rm, and rx.
| string storage::Regex::getPattern | ( | ) | const [inline] |
References pattern.
| int storage::Regex::getCflags | ( | ) | const [inline] |
References cflags.
| bool Regex::match | ( | const string & | str, | |
| int | eflags = 0 | |||
| ) | const |
References _nl_msg_cat_cntr, cflags, last_str, my_nl_msg_cat_cntr, nm, pattern, rm, and rx.
Referenced by storage::Dasd::checkFdasdOutput(), storage::Disk::getDiskPartition(), storage::ProcPart::getMatchingEntries(), storage::EvmsCo::getNormalVolumes(), storage::Dm::getTableInfo(), storage::Volume::loopStringNum(), storage::Dm::mapsTo(), storage::Md::matchRegex(), and storage::Storage::readFstab().
const string & Regex::ws = "[ ]*" [static] |
Referenced by storage::Storage::initialize().
const string & Regex::number = "[0123456789]+" [static] |
const string storage::Regex::pattern [private] |
Referenced by getPattern(), and match().
const int storage::Regex::cflags [private] |
Referenced by getCflags(), and match().
const unsigned int storage::Regex::nm [private] |
regex_t storage::Regex::rx [mutable, private] |
int storage::Regex::my_nl_msg_cat_cntr [mutable, private] |
regmatch_t* storage::Regex::rm [mutable, private] |
string storage::Regex::last_str [mutable, private] |
1.5.5