All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Static Public Member Functions | List of all members
FuzzySearcher Class Reference

Static Public Member Functions

static bool fitsSearch (const String &searchTerm, const String &stringToMatch, double fuzzyness)
 
static StringArray searchForResults (const String &word, const StringArray &wordList, double fuzzyness)
 
static Array< int > searchForIndexes (const String &word, const StringArray &wordList, double fuzzyness)
 

Detailed Description

A fuzzy search algorithm that uses the Levenshtein distance algorithm to find approximate strings.

Member Function Documentation

bool fitsSearch ( const String &  searchTerm,
const String &  stringToMatch,
double  fuzzyness 
)
static

Matches the string against the search term with the given fuzzyness (0.0 - 1.0).

Array< int > searchForIndexes ( const String &  word,
const StringArray &  wordList,
double  fuzzyness 
)
static

Returns a index array with the results for the given wordlist.

StringArray searchForResults ( const String &  word,
const StringArray &  wordList,
double  fuzzyness 
)
static

Returns a string array with the results.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.