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 // Copyright (c) 2009-2011 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  {
18  public:
20  virtual ~BaseCharFilter();
21 
23 
24  protected:
25  IntArray offsets;
26  IntArray diffs;
27  int32_t size;
28 
29  protected:
31  virtual int32_t correct(int32_t currentOff);
32 
33  int32_t getLastCumulativeDiff();
34  void addOffCorrectMap(int32_t off, int32_t cumulativeDiff);
35  };
36 }
37 
38 #endif

clucene.sourceforge.net