FIND_REGEX_INFO¶
Used by Editor_FindRegex inline function ( EE_FIND_REGEX message). This structure is obsolete. Newer plug-ins should use the FIND_REGEX_INFO_EX structure instead.
typedef struct _FIND_REGEX_INFO {
size_t cbSize; // sizeof( FIND_REGEX_INFO )
UINT nFlags;
LPCWSTR pszRegex;
LPCWSTR pszText;
LPCWSTR* ppszStart;
LPCWSTR* ppszEnd;
LPCWSTR* ppszNext;
LPCWSTR pszReplace; // new v9
LPWSTR pszResult; // new v9
UINT cchResult; // new v9
} FIND_REGEX_INFO;
Members¶
cbSize
[in] Size of this data structure, in bytes. Set this member to sizeof( FIND_REGEX_INFO ) before sending the EE_FIND_REGEX message.
nFlags
[in] Specifies a combination of the following values.
FLAG_FIND_CASE | Matches cases. |
FLAG_FIND_ONLY_WORD | Searches only words. |
pszRegex
[in] Specifies a regular expression to search for.
pszText
[in] Specifies a string to search.
ppszStart
[out] The pointer at the beginning of the string where the regular expression matches.
ppszEnd
[out] The pointer at the end of the string where the regular expression matches.
ppszNext
[out] The pointer at the position of the string where the next regular expression search should occur if necessary.
pszReplace
[in] Specifies a replace expression.
pszResult
[out] Specifies a pointer to the buffer to receive the replaced string.
cchResult
[in] Specifies the size of the buffer in characters.
Version¶
Supported on Version 6.00 or later. However, the pszReplace, pszResult, and cchResult parameters were added on Version 9.00.