Used internally by TextEditor to manage find and replace actions.

Constructor

new(textEditor:TextEditor)

Creates a new FindReplaceManager object.

Methods

@:value({ updateSelection : true, allowWrap : true, backwards : false })find(search:Any, backwards:Bool = false, allowWrap:Bool = true, updateSelection:Bool = true):TextEditorSearchResult

Performs a find action.

@:value({ allowWrap : true, backwards : false })findNext(backwards:Bool = false, allowWrap:Bool = true):TextEditorSearchResult

Performs a find next action. Must call find() first.

@:value({ allowWrap : true, backwards : false, all : false })replace(replaceText:String, all:Bool = false, backwards:Bool = false, allowWrap:Bool = true):TextEditorSearchResult

Performs a replace (one or all) action. Must call find() first.