FuzzyMutableIndex.match

DzlFuzzyMutableIndex searches within @fuzzy for strings that fuzzy match @needle. Only up to @max_matches will be returned.

TODO: max_matches is not yet respected.

class FuzzyMutableIndex
ArrayG
match
(
string needle
,
size_t maxMatches
)

Parameters

needle
Type: string

The needle to fuzzy search for.

maxMatches
Type: size_t

The max number of matches to return.

Return Value

Type: ArrayG

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.

Meta