12 #ifndef ZYPP_BASE_REGEX_H 13 #define ZYPP_BASE_REGEX_H 71 {
return regex_match( s.c_str(), matches, regex ); }
77 inline bool regex_match(
const std::string & s,
const regex & regex )
100 regex(const regex & rhs)
101 {
assign(rhs.m_str, rhs.m_flags); }
123 friend bool regex_match(
const char * s,
const regex& regex);
150 std::string operator[](
unsigned i)
const;
152 unsigned size()
const;
164 regmatch_t pmatch[12];
171 #endif // ZYPP_BASE_STRING_H
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const regex &obj)
std::string asString() const
string representation of the regular expression
Support for substring addressing of matches is not required.
Do not differentiate case.
regex & operator=(const regex &rhs)
friend bool regex_match(const char *s, str::smatch &matches, const regex ®ex)
Regular expression match result.
Base class for Exception.
Use POSIX Extended Regular Expression syntax when interpreting regex.
void assign(const std::string &s, int flags=match_extended)
bool regex_match(const std::string &s, smatch &matches, const regex ®ex)
regex ZYPP_STR_REGEX regex ZYPP_STR_REGEX
Easy-to use interface to the ZYPP dependency resolver.