libzypp  13.10.6
zypp::str::smatch Class Reference

Regular expression match result. More...

#include <Regex.h>

Public Member Functions

 smatch ()
 
std::string operator[] (unsigned i) const
 
unsigned size () const
 

Public Attributes

std::string match_str
 
regmatch_t pmatch [12]
 

Detailed Description

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.

Definition at line 145 of file Regex.h.

Constructor & Destructor Documentation

smatch::smatch ( )

Definition at line 73 of file Regex.cc.

Member Function Documentation

std::string smatch::operator[] ( unsigned  i) const

Definition at line 78 of file Regex.cc.

unsigned smatch::size ( ) const

Definition at line 87 of file Regex.cc.

Member Data Documentation

std::string zypp::str::smatch::match_str

Definition at line 154 of file Regex.h.

regmatch_t zypp::str::smatch::pmatch[12]

Definition at line 155 of file Regex.h.


The documentation for this class was generated from the following files: