Completion.fuzzyMatch

bool fuzzyMatch(string haystack, string casefoldNeedle, out uint priority)

This helper function can do a fuzzy match for you giving a haystack and casefolded needle.

Casefold your needle using funcGLib.utf8_casefold before running the query.

Score will be set with the score of the match upon success. Otherwise, it will be set to zero.

Parameters

haystackthe string to be searched.
casefoldNeedleA [glib.global.utf8Casefold] version of the needle.
priorityAn optional location for the score of the match

Returns

true if haystack matched casefold_needle, otherwise false.