#include <Regex.h>
Public Types | |
enum | RegFlags { optimize = 0, match_extra = 0, icase = REG_ICASE, nosubs = REG_NOSUB, match_extended = REG_EXTENDED, normal = 1<<16 } |
Public Member Functions | |
regex () | |
regex (const std::string &s, int flags=match_extended) | |
~regex () throw () | |
regex (const regex &rhs) | |
regex & | operator= (const regex &rhs) |
std::string | asString () const |
string representation of the regular expression | |
regex_t * | get () |
Expert backdoor. | |
Private Member Functions | |
void | assign (const std::string &s, int flags=match_extended) |
Private Attributes | |
std::string | m_str |
int | m_flags |
regex_t | m_preg |
bool | m_valid |
Friends | |
class | smatch |
bool | regex_match (const char *s, str::smatch &matches, const regex ®ex) |
bool | regex_match (const char *s, const regex ®ex) |
Definition at line 59 of file Regex.h.
regex::regex | ( | const std::string & | s, | |
int | flags = match_extended | |||
) |
zypp::str::regex::regex | ( | const regex & | rhs | ) | [inline] |
std::string zypp::str::regex::asString | ( | ) | const [inline] |
regex_t* zypp::str::regex::get | ( | ) | [inline] |
void regex::assign | ( | const std::string & | s, | |
int | flags = match_extended | |||
) | [private] |
Definition at line 29 of file Regex.cc.
References m_flags, m_preg, m_str, m_valid, match_extended, normal, and ZYPP_THROW.
Referenced by operator=(), and regex().
bool regex_match | ( | const char * | s, | |
str::smatch & | matches, | |||
const regex & | regex | |||
) | [friend] |
bool regex_match | ( | const char * | s, | |
const regex & | regex | |||
) | [friend] |
std::string zypp::str::regex::m_str [private] |
int zypp::str::regex::m_flags [private] |
regex_t zypp::str::regex::m_preg [private] |
bool zypp::str::regex::m_valid [private] |
Definition at line 102 of file Regex.h.
Referenced by assign(), zypp::str::regex_match(), and ~regex().