Tools.h++ Class Reference

Table Of Contents
main(){
RWCString aString("Hark! Hark! the lark");
// A regular expression matching any lowercase word or end of a
//word starting with "l":
RWCRExpr re("l[a-z]*");
cout << aString(re) << endl; // Prints "lark"
}
Public Constructors
RWCRExpr(const char* pat);
RWCRExpr(const RWCString& pat);
Construct a regular expression from the pattern given by pat. The status of the results can be
found by using member function status().
RWCRExpr(const RWCRExpr& r);
Copy constructor. Uses value semantics -- self will be a copy of r.
RWCRExpr();
Default constructor. You must assign a pattern to the regular expression before you use it.
Public Destructor
~RWCRExpr();
Destructor. Releases any allocated memory.
Assignment Operators
RWCRExpr&
operator=(const RWCRExpr& r);
Recompiles self to pattern found in r.
RWCRExpr&
operator=(const char* pat);
RWCRExpr&
operator=(const RWCString& pat);
Recompiles self to the pattern given by pat. The status of the results can be found by using
member function status().