Method
IdeFuzzyMutableIndexmatch
Declaration
GArray*
ide_fuzzy_mutable_index_match (
IdeFuzzyMutableIndex* fuzzy,
const char* needle,
gsize max_matches
)
Description
IdeFuzzyMutableIndex searches within fuzzy for strings that fuzzy match needle.
Only up to max_matches will be returned.
TODO: max_matches is not yet respected.
Parameters
needle-
Type:
const char*The needle to fuzzy search for.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. max_matches-
Type:
gsizeThe max number of matches to return.
Return value
Type: An array of None
A newly allocated
GArray containing FuzzyMatch elements. This should be freed when
the caller is done with it using g_array_unref().
It is a programming error to keep the structure around longer than
the fuzzy instance.
| The caller of the method takes ownership of the data, and is responsible for freeing it. |