|
|
Home | Loader API | Interfaces | File List | Index | |
This interface supports a Perl Compatible Regular Expression Engine. More...
#include <p6regex.h>
Inherits P6R::p6ICom.
Public Member Functions | |
virtual P6R::P6INT32 | addref ()=0 |
This method increases the reference count of the component instance by one. | |
virtual P6R::P6ERR | compile (const P6CHAR *pRegex, P6REGEXMODIFIER modifiers)=0 |
Compile (and verify) a regular expression into an internal format for evaluation. | |
virtual P6R::P6ERR | getCaptureText (P6UINT32 index, P6UINT32 *pOffset, P6UINT32 *pLength)=0 |
Return the text by the 1st, 2nd, 3rd, etc. | |
virtual P6R::P6ERR | initialize (P6REGEXFLAGS flags, P6REGEXMODE mode)=0 |
Sets up the object to run properly. | |
virtual P6R::P6ERR | match (const P6CHAR *pMatch, P6REGEXMODIFIER modifiers)=0 |
Does the compiled regular expression recognize the entire pMatch input string ? This function will try to match the ENTIRE input string, not part of it. | |
virtual P6R::P6ERR | queryInterface (const P6R::IID &iid, P6R::P6VOID **ppIface)=0 |
This method queries the component for a specific interface. | |
virtual P6R::P6INT32 | release ()=0 |
This method decrements a components reference count. | |
virtual P6R::P6ERR | replace (const P6CHAR *pSearch, P6REGEXMODIFIER modifiers, const P6CHAR *pReplace, P6CHAR *pResult, P6UINT32 cBuffer, P6UINT32 *pWritten)=0 |
Replace the first matching subexpressions with the pSearch string with the pReplace string. | |
virtual P6R::P6ERR | replaceInPlace (P6CHAR *pSearch, P6REGEXMODIFIER modifiers, const P6CHAR *pReplace, P6UINT32 *pSize)=0 |
Replace the first matching subexpressions with the pSearch string with the pReplace string. | |
virtual P6R::P6ERR | replaceWithCallback (const P6CHAR *pSearch, P6REGEXMODIFIER modifiers, P6REGEXREPLACECB pfn, P6VOID *pCtx, p6IRegexMatch **pResult)=0 |
Replace the first matching subexpressions with the pSearch string with a replacement string provided as the resultof a callback function. | |
virtual P6R::P6ERR | search (const P6CHAR *pSearch, P6REGEXMODIFIER modifiers, P6UINT32 *pOffset, P6UINT32 *pLength)=0 |
Does the compiled regular expression match a substring in the pSearch input string. | |
virtual P6R::P6ERR | setBackTrackLimits (P6UINT32 maxBackStack, P6UINT32 maxBackTracks)=0 |
As default there are NO limits to the number of elements that can be saved on the backtrack stack. | |
virtual P6R::P6ERR | setTrace (P6REGEXTRACELEVEL level)=0 |
Toggle tracing of the internal working of the regex engine on/off. |
This interface supports a Perl Compatible Regular Expression Engine.
It contains extensive logging so that it is easy to exaimine how a regular expression is working.
Definition at line 160 of file p6regex.h.