ocarina/include/filter.h

25 lines
456 B
C
Raw Normal View History

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#ifndef OCARINA_FILTER_H
#define OCARINA_FILTER_H
#include <database.h>
#include <string>
namespace filter {
void add(const std::string &, unsigned int);
void search(const std::string &, std::set<unsigned int> &);
std::string to_lowercase(const std::string &);
void print_cache_stats();
#ifdef CONFIG_TEST
Database<IndexEntry> &get_index();
#endif /* CONFIG_TEST */
};
#endif /* OCARINA_FILTER_H */