// Adapted from https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_fuzzy_match.h #pragma once #include namespace FuzzyMatch { bool SearchSimple(char const* pattern, char const* haystack); bool Search(char const* pattern, char const* haystack, int& outScore); bool Search(char const* pattern, char const* haystack, int& outScore, uint8_t matches[], int maxMatches, int& outMatches); } // namespace FuzzyMatch