The result returned by find and replace actions on a TextEditor component.

See also:

Constructor

new(search:EReg, backwards:Bool, allowWrap:Bool, ?results:Array<SearchResultItem>, ?replaced:Array<SearchResultItem>)

Creates a new TextEditorSearchResult object.

Variables

allowWrap:Bool

Indicates if wrapping was allowed.

backwards:Bool

Indicates if the search was backwards or forwards.

@:value(null)current:SearchResultItem = null

The result that is currently selected.

See also:

@:value(false)didWrap:Bool = false

Indicates if the search wrapped around to restart at the beginning.

replaced:Array<SearchResultItem>

The replaced ranges of the search.

results:Array<SearchResultItem>

All results of the search.

search:EReg

The search performed.

@:value(-1)selectedIndex:Int = -1

The result that is currently selected.