Regex_t Class Reference

#include <IniParser.h>

Inheritance diagram for Regex_t:

Rep

List of all members.

Public Member Functions

 Regex_t ()
 has regex been regcomp'd and should it be regfree'd?
 ~Regex_t ()
int compile (const string &pattern, bool ignore_case)

Private Member Functions

 REP_BODY (Regex_t)

Private Attributes

regex_t regex
bool live
 glibc regex buffer

Friends

class Regex
 prohibits copying and assignment just like we want


Detailed Description

Wrapper to manage regex_t * Must not be copied because regex_t is opaque

Constructor & Destructor Documentation

Regex_t::Regex_t (  )  [inline]

has regex been regcomp'd and should it be regfree'd?

Regex_t::~Regex_t (  )  [inline]

References live, and regex.


Member Function Documentation

int Regex_t::compile ( const string &  pattern,
bool  ignore_case 
) [inline]

Initialize the regex Can be called only once

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

References live, regex, and y2error.

Regex_t::REP_BODY ( Regex_t   )  [private]


Friends And Related Function Documentation

friend class Regex [friend]

prohibits copying and assignment just like we want


Member Data Documentation

bool Regex_t::live [private]

glibc regex buffer

Referenced by compile(), and ~Regex_t().

regex_t Regex_t::regex [private]

Referenced by compile(), and ~Regex_t().


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

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