Tools.h++ Class Reference

Table Of Contents
Example
#include <rw/regexp.h>
#include <rw/cstring.h>
#include <rw/rstream.h>
main(){
RWCString aString("Hark! Hark! the lark");
// A regular expression matching any lower-case word
// starting with "l":
RWCRegexp reg("l[a-z]*");
cout << aString(reg) << endl; // Prints "lark"
}
Public Constructors
RWCRegexp(const char* pat);
Construct a regular expression from the pattern given by pat. The status of the results can
be found by using member function status().
RWCRegexp(const RWCRegexp& r);
Copy constructor. Uses value semantics -- self will be a copy of r.
Public Destructor
~RWCRegexp();
Destructor. Releases any allocated memory.
Assignment Operators
RWCRegexp&
operator=(const RWCRegexp&);
Uses value semantics -- sets self to a copy of r.
RWCRegexp&
operator=(const char* pat);
Recompiles self to the pattern given by pat. The status of the results can be found by
using member function status().