#include <Regex.h>
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 |
|
) |
| |
Member Function Documentation
| string Regex::cap |
( |
unsigned int |
i | ) |
const |
| regoff_t Regex::eo |
( |
unsigned int |
i | ) |
const |
| string Regex::escape |
( |
const string & |
str | ) |
[static] |
| int storage::Regex::getCflags |
( |
| ) |
const [inline] |
| string storage::Regex::getPattern |
( |
| ) |
const [inline] |
| 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::CmdMultipath::CmdMultipath(), storage::Fdasd::Fdasd(), storage::DmCo::getDmData(), storage::MdPartCo::isMdPart(), storage::Volume::loopStringNum(), storage::Dm::mapsTo(), storage::MdPartCo::matchRegex(), storage::Md::matchRegex(), storage::Disk::needP(), storage::regex_matches::operator()(), and storage::Storage::readFstab().
| regoff_t Regex::so |
( |
unsigned int |
i | ) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: