Scopira  20080306
scopira::tool::regex Class Reference

#include <regex.h>

Public Member Functions

 regex (void)
 default ctor, call compile() after
 
 regex (const std::string &pattern)
 initing ctor that calls compile()
 
 ~regex ()
 dtor
 
bool failed (void) const
 in a failed state?
 
bool compile (const std::string &pattern)
 compile the given pattern. clears any previous ones, true on success
 
bool match (const std::string &s) const
 check for a match (inline this?)
 
bool match (const std::string &s, regmatch &mat) const
 check for a match, spitting out the output into the match class
 

Detailed Description

a compiled regular expression

Author
Aleksander Demko

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