POSIX Regular Expression.
More...
#include <regex.hh>
|
| | Regex () |
| | Constructor.
|
| | Regex (const std::string ®ex, 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.
|
POSIX Regular Expression.
This class represents a POSIX regular expression.
◆ Regex() [1/4]
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
-
- Exceptions
-
◆ Regex() [3/4]
| Regex::Regex |
( |
const char * | regex, |
|
|
int | cflags = REG_EXTENDED ) |
|
explicit |
Constructor.
This constructor compiles the given regular expression.
- Parameters
-
- Exceptions
-
◆ Regex() [4/4]
| Regex::Regex |
( |
const Regex & | Source | ) |
|
Constructor.
This constructor compiles the given regular expression.
- Parameters
-
- Exceptions
-
◆ ~Regex()
| Regex::~Regex |
( |
| ) |
|
| throw | ( | ) | | | |
Destructor.
This just frees the compiled regex pattern.
◆ 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