match


Description:

public Array<FuzzyMutableIndexMatch?> match (string needle, size_t max_matches)

DzlFuzzyMutableIndex searches within this for strings that fuzzy match needle.

Only up to max_matches will be returned.

TODO: max_matches is not yet respected.

Parameters:

this

A Fuzzy.

needle

The needle to fuzzy search for.

max_matches

The max number of matches to return.

Returns:

A newly allocated Array 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 this instance.




2022 vala-language.org