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

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

Returns:
i-th match

RegexMatch::operator bool (  )  [inline]

did the string 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 Tue Nov 6 01:20:22 2007 for yast2-core by  doxygen 1.5.0