|
pure virtual |
Does the compiled regular expression match a substring in the pSearch input string.
Note, that the 'compile' function must be called before this function. If the component was created with the trace option then the evalution steps will be detailed logged.
Meaningful modifiers: { P6MODIFIER_INSENSITIVE, P6MODIFIER_FASTGREEDY, P6MODIFIER_MULTILINE }
In order to perform a global search (i.e., over the entire string pointed to by pSearch) call this function repeatedly as follows:
pSearch | [ in ] The narrow string to test against the compiled regular expression. |
modifiers | [ in ] A bit mask that defines how the regex engine performs the match |
pOffset | [ out ] Index into pSearch buffer pointing to where the regex match starts. This offset represents the start of the entire match. If you are capturing text, remember to use getCaptureText() to get the information for each capture. |
pLength | [ out ] Length of the matching substring in pSearch, a value of zero if no match found. This length represents the length of the entire match. If you are capturing text, remember to use getCaptureText() to get the information for each capture. |
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidArg | pSearch, pOffset, or pLength is NULL. | |
P6R::eAccessFault | The compile function has not be successfully called. | |
P6R::eNoMemory | Insufficent memory to process the regex. |