virtual P6R::P6ERR P6R::p6IRegex::replaceInPlace ( P6CHAR *  pSearch,
P6REGEXMODIFIER  modifiers,
const P6CHAR *  pReplace,
P6UINT32 *  pSize 
) [pure virtual]

Replace the first matching subexpressions with the pSearch string with the pReplace string.

Replace all occurrances if the MODIFIER_GLOBAL flag is passed in the "modifiers" paramater. Place the resulting string over the string in pSearch, that is "replace in place". 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, P6MODIFIER_GLOBAL }

Parameters:
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
pReplace [IN] String to replace the matched subexpression with
pSize [OUT] Size of the string written to pSearch or if eTooSmall returned then the required buffer size.
Returns:
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidArgOne or more of pSearch, pReplace, and pSize is set to NULL.
P6R::eAccessFaultThe compile function has not be successfully called.
P6R::eNoMemoryInsufficent memory to process the regex.
P6R::eTooSmallpSearch too small for the resulting string, required size in pSize.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.