ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
Regex Class Reference

POSIX Regular Expression. More...

#include <regex.hh>

Public Member Functions

 Regex ()
 Constructor.
 Regex (const std::string &regex, int flags=REG_EXTENDED)
 Constructor.
 Regex (const char *regex, int flags=REG_EXTENDED)
 Constructor.
 Regex (const Regex &Source)
 Constructor.
 ~Regex () throw ( )
 Destructor.
bool compiled () const
 Get compilation status.
const regex_t & getPattern () const
 Get Compiled Pattern.
const std::string & getRegex () const
 Get Regular Expression.

Detailed Description

POSIX Regular Expression.

This class represents a POSIX regular expression.

Constructor & Destructor Documentation

◆ Regex() [1/4]

Regex::Regex ( )

Constructor.

This constructor compiles the given regular expression.

◆ Regex() [2/4]

Regex::Regex ( const std::string & regex,
int cflags = REG_EXTENDED )
explicit

Constructor.

This constructor compiles the given regular expression.

Parameters
regex
cflags
Exceptions
LdasException

◆ Regex() [3/4]

Regex::Regex ( const char * regex,
int cflags = REG_EXTENDED )
explicit

Constructor.

This constructor compiles the given regular expression.

Parameters
regex
cflags
Exceptions
LdasException

◆ Regex() [4/4]

Regex::Regex ( const Regex & Source)

Constructor.

This constructor compiles the given regular expression.

Parameters
Source
Exceptions
LdasException

◆ ~Regex()

Regex::~Regex ( )
throw ( )

Destructor.

This just frees the compiled regex pattern.

Member Function Documentation

◆ compiled()

bool Regex::compiled ( ) const
inline

Get compilation status.

Returns
state of compilation

◆ getPattern()

const regex_t & Regex::getPattern ( ) const
inline

Get Compiled Pattern.

Returns
const regex_t &

◆ getRegex()

const std::string & Regex::getRegex ( ) const
inline

Get Regular Expression.

Returns
const std::string&

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/build/include/ldastoolsal/regex.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/regex.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/regex.cc