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 
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 ASCIIFOLDINGFILTER_H
8 #define ASCIIFOLDINGFILTER_H
9 
10 #include "TokenFilter.h"
11 
12 namespace Lucene {
13 
42 class LPPAPI ASCIIFoldingFilter : public TokenFilter {
43 public:
44  ASCIIFoldingFilter(const TokenStreamPtr& input);
45  virtual ~ASCIIFoldingFilter();
46 
48 
49 protected:
50  CharArray output;
51  int32_t outputPos;
53 
54 public:
55  virtual bool incrementToken();
56 
61  void foldToASCII(const wchar_t* input, int32_t length);
62 };
63 
64 }
65 
66 #endif

clucene.sourceforge.net