2013-08-25 10:33:48 -04:00
|
|
|
/*
|
|
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_FILTER_H
|
|
|
|
#define OCARINA_FILTER_H
|
|
|
|
|
2013-12-01 22:31:35 -05:00
|
|
|
#include <database.h>
|
2013-08-25 10:33:48 -04:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace filter {
|
|
|
|
|
|
|
|
void add(const std::string &, unsigned int);
|
|
|
|
void search(const std::string &, std::set<unsigned int> &);
|
2013-12-30 20:54:19 -05:00
|
|
|
std::string to_lowercase(const std::string &);
|
2013-08-25 10:33:48 -04:00
|
|
|
|
|
|
|
void print_cache_stats();
|
|
|
|
|
|
|
|
#ifdef CONFIG_TEST
|
2013-12-30 20:54:19 -05:00
|
|
|
Database<IndexEntry> &get_index();
|
2013-08-25 10:33:48 -04:00
|
|
|
#endif /* CONFIG_TEST */
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* OCARINA_FILTER_H */
|