sbuild
1.4.26
|
POSIX extended regular expression. More...
#include <sbuild-regex.h>
Public Member Functions | |
regex () | |
The constructor. | |
regex (std::string const &pattern) | |
The constructor. | |
regex (const char *pattern) | |
The constructor. | |
~regex () | |
* The destructor. | |
Friends | |
template<class charT , class traits > | |
std::basic_istream< charT, traits > & | operator>> (std::basic_istream< charT, traits > &stream, regex &rhs) |
Get the regex name from a stream. | |
template<class charT , class traits > | |
std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, regex const &rhs) |
Print the regex name to a stream. |
POSIX extended regular expression.
sbuild::regex::regex | ( | std::string const & | pattern | ) | [inline] |
The constructor.
May throw if the regex is invalid.
pattern | a regex |
sbuild::regex::regex | ( | const char * | pattern | ) | [inline] |
The constructor.
May throw if the regex is invalid.
pattern | a regex |
std::basic_ostream<charT,traits>& operator<< | ( | std::basic_ostream< charT, traits > & | stream, |
regex const & | rhs | ||
) | [friend] |
Print the regex name to a stream.
stream | the stream to output to. |
rhs | the regex to output. |
std::basic_istream<charT,traits>& operator>> | ( | std::basic_istream< charT, traits > & | stream, |
regex & | rhs | ||
) | [friend] |
Get the regex name from a stream.
May throw if the regex is invalid.
stream | the stream to get input from. |
rhs | the regex to set. |