blob: 0a0554f76fc1338ebbf8969ff537f4b4ff9aa037 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/juniper/rewriter.h>
#include <string>
class FakeRewriter: public juniper::IRewriter
{
public:
FakeRewriter() : _name() {}
virtual const char* Name() const override;
virtual juniper::RewriteHandle* Rewrite(uint32_t langid, const char* term) override;
virtual juniper::RewriteHandle* Rewrite(uint32_t langid, const char* term, size_t length) override;
virtual const char* NextTerm(juniper::RewriteHandle* exp, size_t& length) override;
private:
std::string _name;
};
|