ISECEditBuffer::FindText

intISECEditBuffer::FindText(intnLine, intnCol, int&nResultLine, int&nResultCol, LPCTSTRlpszText, BOOLbDown, BOOLbWrapAround, BOOLbMatchCase, BOOLbMatchWholeWord, BOOLbRegularExpression, intnStopLine= -1, intnStopCol= -1)

Finds a search string in the text buffer.

Defined in: ISECEditBuffer.h

Return Value

Returns the length of match if successful; otherwise 0.

Parameters

nLine

The line index to begin the search.

nCol

The column index on the line to start search

nResultLine

Output parameter. The line index where a match was located.

nResultCol

Output parameter. The column index where a match was located.

lpszText

Points to the text to search for.

bDown

Indicates direction to search.

bWrapAround

Indicates whether to wrap around the text buffer if the search hits the boundary of the buffer.

bMatchCase

Indicates whether to match case of searched text.

bMatchWholeWord

Indicates whether to perform whole word search.

bRegularExpression

Indicates whether to use regular expressions.

nStopLine

The line index to stop the search on. If -1, specifies to continue to search until the end of document is reached.

nStopCol

The column index to stop the search on. If -1, indicates to continue searching to the end of the line.

See Also

ISECEditBuffer