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., '(?=' '(?:' ).
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.