move parser/utils to utils, Mux->Mu

Move the parser utils to utils/ and rename the Mux namespace into Mu.
This commit is contained in:
Dirk-Jan C. Binnema
2019-12-16 22:41:17 +02:00
parent b55e191421
commit 9f93526884
24 changed files with 165 additions and 157 deletions

View File

@ -24,10 +24,10 @@
#include <xapian.h>
#include "parser/xapian.hh"
using namespace Mux;
using namespace Mu;
static Xapian::Query
xapian_query_op (const Mux::Tree& tree)
xapian_query_op (const Mu::Tree& tree)
{
Xapian::Query::op op;
@ -68,7 +68,7 @@ make_query (const Value* val, const std::string& str, bool maybe_wildcard)
}
static Xapian::Query
xapian_query_value (const Mux::Tree& tree)
xapian_query_value (const Mu::Tree& tree)
{
const auto v = dynamic_cast<Value*> (tree.node.data.get());
if (!v->phrase)
@ -89,7 +89,7 @@ xapian_query_value (const Mux::Tree& tree)
}
static Xapian::Query
xapian_query_range (const Mux::Tree& tree)
xapian_query_range (const Mu::Tree& tree)
{
const auto r { dynamic_cast<Range *>(tree.node.data.get()) };
@ -98,7 +98,7 @@ xapian_query_range (const Mux::Tree& tree)
}
Xapian::Query
Mux::xapian_query (const Mux::Tree& tree)
Mu::xapian_query (const Mu::Tree& tree)
{
switch (tree.node.type) {
case Node::Type::Empty: