ISECEditRegExp Class

class ISECEditRegExp

ISECEditRegExp acts a an interface to the regular expression engine. This interface guarantees that the model will be able to interact with whatever class implements this interface, regardless of its implementation.

The current implementation of the this interface is in the SECEditRegExp class, which implements the methods by calling the regular expression engine in Visual Basic\'a9 . If the Visual Basic dlls are not installed, the SECEditRegExp::Create method fails.

Defined in: ISECEditRegExp.h

See Also

SECEditRegExp

Class Members

Creation / initialization

virtual BOOL  Create()

Initializes the regular expression engine.

Attributes

virtual CString  GetPattern() const

Retrieves the regular expression pattern string.

virtual void  SetPattern(LPCTSTR lpszPattern)

Sets the regular expression patter string.

virtual BOOL  GetIgnoreCase() const

Tests for the ignore case condition.

virtual void  SetIgnoreCase(BOOL bIgnoreCase)

Sets or clears the ignore case condition.

virtual BOOL  CanIgnoreCase() const

Tests for ignore case ability.

virtual BOOL  GetMatch(LPCTSTR lpszSearch, int& nStart, int& nLength)

Searches for a match of the pattern string.

virtual BOOL  GetMatch(LPCTSTR lpszSearch, int& nStart, int& nLength, CString& strMatch)

Searches for a match of the pattern string.

virtual BOOL  Replace(CString& strSource, LPCTSTR lpszReplaceWith, BOOL bReplaceAll)

Replaces one or all occurrances of a match of the pattern string.