libzypp 17.31.23
|
Regular expression match result. More...
#include <base/Regex.h>
Public Member Functions | |
smatch () | |
std::string | operator[] (unsigned i) const |
unsigned | size () const |
std::string::size_type | begin (unsigned i) const |
Begin index of subexpression i in match_str (or std::string::npos) | |
std::string::size_type | end (unsigned i) const |
End index of subexpression i in match_str (or std::string::npos) | |
std::string::size_type | size (unsigned i) const |
Size of subexpression i (or std::string::npos) | |
Public Attributes | |
std::string | match_str |
std::vector< regmatch_t > | pmatch |
Regular expression match result.
Index n=0
returns the string object representing the character sequence that matched the whole regular expression. If n
is out of range, or if n
is an unmatched sub-expression, then an empty string is returned.
std::string::size_type smatch::begin | ( | unsigned | i | ) | const |
std::string::size_type smatch::end | ( | unsigned | i | ) | const |
std::string::size_type smatch::size | ( | unsigned | i | ) | const |