yast2-core
Public Member Functions | Private Attributes | List of all members
Regex Class Reference

#include <IniParser.h>

Public Member Functions

 Regex ()
 
int compile (const string &pattern, bool ignore_case)
 
const regex_t * regex () const
 

Private Attributes

Regex_tPtr rxtp
 

Detailed Description

Manages references to a regex buffer

Constructor & Destructor Documentation

Regex::Regex ( )
inline

Member Function Documentation

int Regex::compile ( const string &  pattern,
bool  ignore_case 
)
inline

Initialize the regex

Parameters
patterna pattern (REG_EXTENDED) ignore_case REG_ICASE?
Returns
0 for success

References rxtp, and y2error.

Referenced by IniParser::initMachine().

const regex_t* Regex::regex ( ) const
inline

References rxtp.

Referenced by RegexMatch::RegexMatch().

Member Data Documentation

Regex_tPtr Regex::rxtp
private

Referenced by compile(), and regex().


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

Generated on a sunny day for yast2-core by doxygen 1.8.6