Class Index Cross Index Namespace Index

Class Regex

POSIX Regular Expression
Contained in: global
Derived from: none
Derived by: none

#include "general/regex.hh"


public function member index:

Regex(const std::string& regex, int flags = REG_EXTENDED) throw ( LdasException, std::bad_alloc );
~Regex() throw ( );
inline const regex_t& getPattern() const throw ( ); Get Compiled Pattern
inline const std::string& getRegex() const throw ( ); Get Regular Expression
 

Description:

This class represents a POSIX regular expression.


Function Member Descriptions:


Regex::Regex


Regex(const std::string& regex, int flags = REG_EXTENDED) throw ( LdasException, std::bad_alloc );



Regex::~Regex


~Regex() throw ( );



Regex::getPattern - Get Compiled Pattern


inline const regex_t& getPattern() const throw ( );

Return value:
const regex_t &


Regex::getRegex - Get Regular Expression


inline const std::string& getRegex() const throw ( );

Return value:
const std::string&


Variable Member Descriptions:


Regex::mPattern -

regex_t mPattern;

Regex::mRegex -

std::string mRegex;