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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ASCIIFoldingFilter.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 ASCIIFOLDINGFILTER_H
8 #define ASCIIFOLDINGFILTER_H
9 
10 #include "TokenFilter.h"
11 
12 namespace Lucene
13 {
42  class LPPAPI ASCIIFoldingFilter : public TokenFilter
43  {
44  public:
46  virtual ~ASCIIFoldingFilter();
47 
49 
50  protected:
51  CharArray output;
52  int32_t outputPos;
54 
55  public:
56  virtual bool incrementToken();
57 
62  void foldToASCII(const wchar_t* input, int32_t length);
63  };
64 }
65 
66 #endif

clucene.sourceforge.net