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

#include <IniParser.h>

Inheritance diagram for Regex_t:
Rep

Public Member Functions

 Regex_t ()
 has regex been regcomp'd and should it be regfree'd? More...
 
 ~Regex_t ()
 
int compile (const string &pattern, bool ignore_case)
 
- Public Member Functions inherited from Rep
 Rep ()
 
 Rep (const Rep &)
 
Repoperator= (const Rep &)
 
virtual ~Rep ()
 
void ref () const
 
void unref () const
 
unsigned refCount () const
 
virtual const char * repName () const
 
virtual std::ostream & dumpOn (std::ostream &str) const
 

Private Member Functions

 REP_BODY (Regex_t)
 

Private Attributes

regex_t regex
 
bool live
 glibc regex buffer More...
 

Friends

class Regex
 prohibits copying and assignment just like we want More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Rep
static void ref (const Rep *obj_r)
 
static void unref (const Rep *obj_r)
 
- Protected Member Functions inherited from Rep
virtual void ref_to (unsigned) const
 
virtual void unref_to (unsigned) const
 

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

Member Function Documentation

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

Initialize the regex Can be called only once

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

References y2error.

Referenced by Regex::compile().

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

regex_t Regex_t::regex
private

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

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