yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
search.h File Reference
#include <algorithm>
#include <cctype>
#include <string>
Include dependency graph for search.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::gui
 Graphical User Interface (GUI) components for the application.
 

Functions

bool yaze::gui::FuzzyMatch (const std::string &pattern, const std::string &str)
 Simple fuzzy match - returns true if all chars in pattern appear in str in order.
 
int yaze::gui::FuzzyScore (const std::string &pattern, const std::string &str)
 Score a fuzzy match (higher = better, 0 = no match)
 
bool yaze::gui::PassesFilter (const std::string &filter, const std::string &str)
 Check if a string matches a search filter.
 
bool yaze::gui::AnyPassesFilter (const std::string &filter, const std::vector< std::string > &strings)
 Check if any of multiple strings match a search filter.