EmEditor Home - EmEditor Help - Plug-in Reference - Structures

FIND_REGEX_INFO

Used by Editor_FindRegex inline function (EE_FIND_REGEX message).

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 buffer that receives the converted replace expression.

cchResult

[in] Specifies the size of the buffer pszResult in characters including the terminating NULL character.

Version

Supported on Version 6.00 or later. However, the pszReplace, pszResult, and cchResult parameters were added on Version 9.00.

Copyright 2003-2014 by Emurasoft, Inc.