|
libzypp
9.1.2
|
#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) |
| regex::regex | ( | ) |
| regex::regex | ( | const std::string & | s, |
| int | flags = match_extended |
||
| ) |
| regex::~regex | ( | ) | throw () |
| 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] |
Definition at line 99 of file Regex.h.
Referenced by assign(), asString(), and operator=().
int zypp::str::regex::m_flags [private] |
Definition at line 100 of file Regex.h.
Referenced by assign(), and operator=().
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().
1.7.6.1