sbuild::regex Class Reference

POSIX extended regular expression. More...

#include <sbuild-regex.h>

List of all members.

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.


Detailed Description

POSIX extended regular expression.

Constructor & Destructor Documentation

sbuild::regex::regex ( std::string const &  pattern  )  [inline]

The constructor.

May throw if the regex is invalid.

Parameters:
pattern a regex

sbuild::regex::regex ( const char *  pattern  )  [inline]

The constructor.

May throw if the regex is invalid.

Parameters:
pattern a regex


Friends And Related Function Documentation

template<class charT, class traits>
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.

Parameters:
stream the stream to get input from.
rhs the regex to set.
Returns:
the stream.

template<class charT, class traits>
std::basic_ostream<charT,traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
regex const &  rhs 
) [friend]

Print the regex name to a stream.

Parameters:
stream the stream to output to.
rhs the regex to output.
Returns:
the stream.


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

Generated on Tue Jan 18 21:49:04 2011 for sbuild by  doxygen 1.5.6