Regular expression.
More...
#include <zypp-core/base/Regex.h>
|
void | assign (const std::string &s, int flags) |
Regular expression.
Definition at line 94 of file Regex.h.
◆ RegFlags
Enumerator |
---|
icase | Do not differentiate case.
|
nosubs | Support for substring addressing of matches is not required.
|
match_extended | Use POSIX Extended Regular Expression syntax when interpreting regex.
|
newline | Match newline.
|
rxdefault | These are enforced even if you don't pass them as flag argument.
|
Definition at line 98 of file Regex.h.
◆ MatchFlags
Enumerator |
---|
none | |
not_bol | Do not match begin of line.
|
Definition at line 106 of file Regex.h.
◆ regex() [1/4]
◆ regex() [2/4]
regex::regex |
( |
const std::string & | s, |
|
|
int | flags = rxdefault ) |
◆ regex() [3/4]
zypp::str::regex::regex |
( |
const char * | s, |
|
|
int | flags = rxdefault ) |
|
inline |
◆ ~regex()
◆ regex() [4/4]
zypp::str::regex::regex |
( |
const regex & | rhs | ) |
|
|
inline |
◆ operator=()
regex & zypp::str::regex::operator= |
( |
const regex & | rhs | ) |
|
|
inline |
◆ asString()
std::string zypp::str::regex::asString |
( |
| ) |
const |
|
inline |
string representation of the regular expression
Definition at line 125 of file Regex.h.
◆ matches() [1/4]
◆ matches() [2/4]
bool zypp::str::regex::matches |
( |
const std::string & | s_r, |
|
|
str::smatch & | matches_r, |
|
|
int | flags_r = none ) const |
|
inline |
◆ matches() [3/4]
bool regex::matches |
( |
const char * | s | ) |
const |
◆ matches() [4/4]
bool zypp::str::regex::matches |
( |
const std::string & | s_r | ) |
const |
|
inline |
◆ get()
regex_t * zypp::str::regex::get |
( |
| ) |
|
|
inline |
Expert backdoor.
Returns pointer to the compiled regex for direct use in regexec()
Definition at line 138 of file Regex.h.
◆ assign()
void regex::assign |
( |
const std::string & | s, |
|
|
int | flags ) |
|
private |
◆ smatch
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & | str, |
|
|
const regex & | obj ) |
|
related |
Stream output.
Definition at line 153 of file Regex.h.
◆ m_str
std::string zypp::str::regex::m_str |
|
private |
◆ m_flags
int zypp::str::regex::m_flags |
|
private |
◆ m_preg
regex_t zypp::str::regex::m_preg |
|
private |
◆ m_valid
bool zypp::str::regex::m_valid = false |
|
private |
The documentation for this class was generated from the following files: