ocarina/include/filter.h
Anna Schumaker ee100c0238 filter: Implement a "to lowercase" function
This function will convert the provided text to lowercase.  This really
isn't a filter function, but the filter already implements a lowercase
cache that should be useful.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:57 -04:00

25 lines
456 B
C++

/*
* 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 */