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

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

This function must be called before regExec is executed. A modifier can be passed in to ignore whitespace that appears in the regex (e.g., '( a | b | c)' is the same as '(a|b|c)'. This is similar to Perl's '/x' modifier.

Parameters
pRegex[ in ] The narrow string regular expression
modifiers[ in ] Only P6MODIFIER_SKIPWHITESPACE and P6MODIFIER_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./td>
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., '(?=' '(?:' ).