From 791b3f354b378769bffe623b05f1305c91b77101 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 3 Jun 2022 23:30:01 -0700 Subject: Changeset: 64 [WIP] Rename directories --- ProjectBrussel/Game/FuzzyMatch.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ProjectBrussel/Game/FuzzyMatch.hpp (limited to 'ProjectBrussel/Game/FuzzyMatch.hpp') diff --git a/ProjectBrussel/Game/FuzzyMatch.hpp b/ProjectBrussel/Game/FuzzyMatch.hpp new file mode 100644 index 0000000..7a26b7e --- /dev/null +++ b/ProjectBrussel/Game/FuzzyMatch.hpp @@ -0,0 +1,10 @@ +// 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 -- cgit v1.2.3-70-g09d2