aboutsummaryrefslogtreecommitdiff
path: root/src/brussel.engine/FuzzyMatch.hpp
blob: 7a26b7eb43978f7432c88f1a425891787a48e0c3 (plain)
1
2
3
4
5
6
7
8
9
10
// Adapted from https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_fuzzy_match.h
#pragma once

#include <cstdint>

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