Skip to content
0.2.0-dev Download ZIP
29 lines ·1.5 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="FuzzySearchMatch" inherits="RefCounted" api_type="core" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Result returned by [FuzzySearch] containing match information.
5 </brief_description>
6 <description>
7 </description>
8 <tutorials>
9 </tutorials>
10 <methods>
11 <method name="get_matched_substrings" qualifiers="const">
12 <return type="Vector2i[]" />
13 <description>
14 Returns each matched substring interval of [member target]. The [member Vector2i.x] component is the start of the interval and the [member Vector2i.y] component is the length, corresponding to the arguments for [method String.substr].
15 </description>
16 </method>
17 </methods>
18 <members>
19 <member name="original_index" type="int" setter="set_original_index" getter="get_original_index" default="-1">
20 The original index of [member target] in the provided array of targets when using [method FuzzySearch.search_all] otherwise [code]-1[/code].
21 </member>
22 <member name="score" type="int" setter="set_score" getter="get_score" default="0">
23 Match score determined by [FuzzySearch]. Scores are not normalized and generally should not be directly compared between different queries.
24 </member>
25 <member name="target" type="String" setter="set_target" getter="get_target" default="&quot;&quot;">
26 Target string which was matched against.
27 </member>
28 </members>
29</class>