#include <cascade/util/CascadeFSObject.h>
Inheritance diagram for CascadeFSObject::RegexpSelector:
Public Member Functions | |
RegexpSelector () | |
default constructor | |
virtual | ~RegexpSelector () |
virtual bool | Compile (const CascadeString &inExpression, int inCFlags=0) |
virtual bool | Match (CascadeFSObject &inObject) |
RegexpSelector does regular expression matching (POSIX Basic Regular Expression syntax) on the name (not the path) of the object. Note that it inherits from the base class the ability to select only files, only directories, or both. Usage: create the object and create a CascadeString to hold the expression. Call Compile, passing REG_ICASE for the flags if case-insensitive matching is desired (being sure to check the return value!). Then, pass the Selector in to GetMatchingChild/%GetMatchingChildren.
|
default constructor
|
|
destructor The destructor frees all internal memory allocated by compilation of the regular expression. |
|
compiles the regular expression Supply a regular expression and, optionally REG_ICASE for the inCFlags argument if you desire case-insensitive matching. Be sure to check the return value of this function, because a failure to compile will lead to no matches.
|
|
implementation of the regular expression matching function Clients should have no need to call this function; it simply implements the required Match function of the abstract base class. Implements CascadeFSObject::Selector. |