fuzzy_match


Description:

public static bool fuzzy_match (string? haystack, string casefold_needle, out uint priority)

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

Casefold your needle using [func@GLib.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:

haystack

the string to be searched.

casefold_needle

A casefold version of the needle.

priority

An optional location for the score of the match

Returns:

true if haystack matched casefold_needle, otherwise false.