Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BaseCharFilter.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 BASECHARFILTER_H
8 #define BASECHARFILTER_H
9 
10 #include "CharFilter.h"
11 
12 namespace Lucene {
13 
16 class LPPAPI BaseCharFilter : public CharFilter {
17 public:
18  BaseCharFilter(const CharStreamPtr& in);
19  virtual ~BaseCharFilter();
20 
22 
23 protected:
24  IntArray offsets;
25  IntArray diffs;
26  int32_t size;
27 
28 protected:
30  virtual int32_t correct(int32_t currentOff);
31 
32  int32_t getLastCumulativeDiff();
33  void addOffCorrectMap(int32_t off, int32_t cumulativeDiff);
34 };
35 
36 }
37 
38 #endif

clucene.sourceforge.net