Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
CharStream.h
Go to the documentation of this file.
1
2
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3
// Distributable under the terms of either the Apache License (Version 2.0)
4
// or the GNU Lesser General Public License.
6
7
#ifndef CHARSTREAM_H
8
#define CHARSTREAM_H
9
10
#include "
Reader.h
"
11
12
namespace
Lucene
{
13
18
class
LPPAPI
CharStream
:
public
Reader
{
19
public
:
20
virtual
~CharStream
();
21
LUCENE_CLASS
(
CharStream
);
22
23
public
:
28
virtual
int32_t
correctOffset
(int32_t currentOff) = 0;
29
};
30
31
}
32
33
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Reader.h
Lucene::CharStream
CharStream adds correctOffset functionality over Reader. All Tokenizers accept a CharStream instead o...
Definition
CharStream.h:18
Lucene::CharStream::~CharStream
virtual ~CharStream()
Lucene::CharStream::correctOffset
virtual int32_t correctOffset(int32_t currentOff)=0
Called by CharFilter(s) and Tokenizer to correct token offset.
Lucene::Reader::Reader
Reader()
Lucene
Definition
AbstractAllTermDocs.h:12
clucene.sourceforge.net