myMPD
Internal API documentation
Loading...
Searching...
No Matches
search_fuzzy.h File Reference

Fuzzy search implementation. More...

#include <stdbool.h>
#include <stddef.h>
Include dependency graph for search_fuzzy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool mympd_search_fuzzy_match (const char *haystack, size_t haystack_len, const char *needle, size_t needle_len)

Detailed Description

Fuzzy search implementation.

Function Documentation

◆ mympd_search_fuzzy_match()

bool mympd_search_fuzzy_match ( const char * haystack,
size_t haystack_len,
const char * needle,
size_t needle_len )

Public functions Fuzzy substring matching using the levenshtein distance

Parameters
haystackHaystack
haystack_lenHaystack length
needleNeedle
needle_lenNeedle length
Returns
true on match, else false