Commit 2b83b782 authored by Pablo Rauzy's avatar Pablo Rauzy Committed by Christoph Cullmann
Browse files

add documentation for view.searchText

This adds the documentation for `view.searchText` from JS in KTextEditor added there in frameworks/ktexteditor!394.
parent 10d41e89
Pipeline #214734 passed with stage
in 4 minutes and 30 seconds
......@@ -3541,6 +3541,23 @@ In case of an error, the string <replaceable>object.status</replaceable> contain
Range view.searchText(<parameter>Range <replaceable>range</replaceable></parameter>,
<parameter>String <replaceable>pattern</replaceable></parameter>,
<parameter>bool <replaceable>backwards</replaceable> = false</parameter>);
Search for the first occurrence of <replaceable>pattern</replaceable> in <replaceable>range</replaceable> and returns the matched range.
Search is performed backwards if the optional boolean parameter <replaceable>backwards</replaceable> is set to <literal>true</literal>.
The returned range is invalid (see Range.isValid()) if <replaceable>pattern</replaceable> is not found in <replaceable>range</replaceable>.
<para>Since: &kde-frameworks; 5.97</para>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment