11 #define P6WREGEX_H__ 1
156 #define IF_p6IWRegexMatch {0x25845EAC,0xC253,0x4409,{0x85,0x09,0xD3,0xD7,0xBC,0x9B,0x9D,0xE0}}
231 P6WREGEXMODIFIER modifiers
258 P6WREGEXMODIFIER modifiers
302 P6WREGEXMODIFIER modifiers,
337 P6WREGEXMODIFIER modifiers,
370 P6WREGEXMODIFIER modifiers,
408 P6WREGEXMODIFIER modifiers,
480 #define IF_p6IWRegex {0x3e3cf731,0x11ea,0x47c7,{0xa9,0x5a,0xe1,0x51,0x7,0x28,0x62,0x11}}
483 #define COMP_p6WRegex {0x8cebaed1,0x228d,0x4729,{0xaf,0x59,0x14,0x4,0x80,0xd8,0x97,0xf7}}
virtual P6R::P6ERR replace(const P6WCHAR *pSearch, P6WREGEXMODIFIER modifiers, const P6WCHAR *pReplace, P6WCHAR *pResult, P6UINT32 cBuffer, P6UINT32 *pWritten)=0
Replace the first matching subexpressions with the pSearch string with the pReplace string...
virtual P6R::P6ERR getNamedCaptureText(const P6WCHAR *pName, P6UINT32 *pOffset, P6UINT32 *pLength)=0
Return the text by the name used in a Named Capture (i.e., "(?<name> )").
const P6WREGEXMODIFIER P6MOD_NEWLINE
const P6WREGEXTRACELEVEL P6WREGEX_TRACE_OFF
P6WREGEXMODE
This type defines the supported compatitbility modes with other regular expression engines...
virtual P6R::P6ERR getCaptureText(P6UINT32 index, P6UINT32 *pOffset, P6UINT32 *pLength)=0
Return the text by the 1st, 2nd, 3rd, etc set of capturing parentheses.
virtual P6R::P6ERR replaceWithCallback(const P6WCHAR *pSearch, P6WREGEXMODIFIER modifiers, P6WREGEXREPLACECB pfn, P6VOID *pCtx, p6IWRegexMatch **pResult)=0
Replace the first matching subexpressions with the pSearch string with a replacement string provided ...
virtual P6R::P6ERR reset()=0
This method is used to re-start the enumerator at the beginning.
virtual P6R::P6ERR search(const P6WCHAR *pSearch, P6WREGEXMODIFIER modifiers, P6UINT32 *pOffset, P6UINT32 *pLength)=0
Does the compiled regular expression match a substring in the pSearch input string.
Return zero or more strings resulting from a regex operation.
const P6WREGEXMODIFIER P6MOD_FULLLOOKBEHIND
virtual P6R::P6ERR replaceInPlace(P6WCHAR *pSearch, P6WREGEXMODIFIER modifiers, const P6WCHAR *pReplace, P6UINT32 *pSize)=0
Replace the first matching subexpressions with the pSearch string with the pReplace string...
virtual P6R::P6ERR compile(const P6WCHAR *pRegex, P6WREGEXMODIFIER modifiers)=0
Compile (and verify) a regular expression into an internal format for evaluation. ...
virtual P6R::P6ERR setTrace(P6WREGEXTRACELEVEL level)=0
Toggle tracing of the internal working of the regex engine on/off.
wchar_t P6WCHAR
Wide character type see p6i18n.h.
The base interface all [p6]COM components must derive from and implement.
const P6WCHAR *(* P6WREGEXREPLACECB)(const P6WCHAR *pMatchedText, P6VOID *pCtx)
Used for the replaceWithCallBack() function.
virtual P6R::P6ERR next(const P6WCHAR **pResult)=0
This method is used to iterate zero or more strings generated from a regex function.
This interface provides access the to the wide string (patform wchar_t) regular expression engine and...
const P6WREGEXMODIFIER P6MOD_FASTGREEDY
const P6WREGEXMODIFIER P6MOD_INSENSITIVE
P6UINT32 P6WREGEXTRACELEVEL
P6WREGEXTRACELEVEL.
P6UINT32 P6WREGEXMODIFIER
P6WREGEXMODIFIER: Regex Modifier.
const P6WREGEXMODIFIER P6MOD_MULTILINE
const P6WREGEXMODIFIER P6MOD_GLOBAL
const P6WREGEXTRACELEVEL P6WREGEX_TRACE_BASIC
virtual P6R::P6ERR setLocale(const P6CHAR *pLocale)=0
This method allows the caller to set the locale that will be used during matching and searching of wi...
const P6WREGEXMODIFIER P6MOD_SKIPWHITESPACE
P6UINT32 P6WREGEXFLAGS
P6WREGEXFLAGS.
virtual P6R::P6ERR match(const P6WCHAR *pMatch, P6WREGEXMODIFIER modifiers)=0
Does the compiled regular expression recognize the entire pMatch input string ? This function will tr...
const P6WREGEXMODIFIER P6MOD_NULL
const P6WREGEXTRACELEVEL P6WREGEX_TRACE_DEBUG
virtual P6R::P6ERR setBackTrackLimits(P6UINT32 maxBackStack, P6UINT32 maxBackTracks)=0
As default there are NO limits to the number of elements that can be saved on the backtrack stack...
char P6CHAR
Narrow character type.
const P6WREGEXFLAGS P6WREGEX_NOFLAGS
virtual P6R::P6ERR initialize(P6WREGEXFLAGS flags, P6WREGEXMODE mode)=0
Sets up the object to run properly.