RegexMatch Class Reference

#include <IniParser.h>

List of all members.

Public Member Functions

const string & operator[] (size_t i)
 operator bool ()
 RegexMatch (const Regex &rx, const string &s, size_t nmatch=20)

Public Attributes

vector< string > matches
string rest


Detailed Description

Tries to match a string against a regex and holds results


Constructor & Destructor Documentation

RegexMatch::RegexMatch const Regex rx,
const string &  s,
size_t  nmatch = 20
[inline]
 

Parameters:
rx a compiled regex
s a string to match
nmatch how many rm_matches to reserve


Member Function Documentation

RegexMatch::operator bool  )  [inline]
 

did the string match

const string& RegexMatch::operator[] size_t  i  )  [inline]
 

Returns:
i-th match


Member Data Documentation

vector<string> RegexMatch::matches
 

Matched subexpressions (0 - the whole regex)

string RegexMatch::rest
 

The unmatched part of the string


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6