Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IWRegex::compile ( const P6WCHAR pRegex,
P6WREGEXMODIFIER  modifiers 
)
pure virtual

Compile (and verify) a regular expression into an internal format for evaluation.

This function must be called before regExec is executed. It the input string does not match a valid regular expression then an error is returned.

Parameters
pRegex[ in ] The wide string regular expression
modifiers[ in ] Only P6MOD_SKIPWHITESPACE and P6MOD_NULL are valid values.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidArgpRegex is NULL, or modifier set to an unsupported combination.
P6R::eNoMemoryInsufficent memory to process the regex.
P6R::eUnbalancedParensNot every openning parenthesis has a mathing closing one. Includes all Perl types of open parenthesis (e.g., '(?=' '(?:' ).