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

ASCIIFoldingFilter.h
Go to the documentation of this file.
1 // 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
47 LUCENE_CLASS(ASCIIFoldingFilter);
48
49 protected:
50 CharArray output;
51 int32_t outputPos;
52 TermAttributePtr termAtt;
53
54 public:
55 virtual bool incrementToken();
56
61 void foldToASCII(const wchar_t* input, int32_t length);
62 };
63
64 }
65
66 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
TokenFilter.h
Lucene::ASCIIFoldingFilter
This class converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 1...
Definition: ASCIIFoldingFilter.h:42
Lucene::TokenFilter
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition: TokenFilter.h:18
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::ASCIIFoldingFilter::outputPos
int32_t outputPos
Definition: ASCIIFoldingFilter.h:51
Lucene::TermAttributePtr
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition: LuceneTypes.h:58
Lucene::ASCIIFoldingFilter::termAtt
TermAttributePtr termAtt
Definition: ASCIIFoldingFilter.h:52
Lucene::TokenStreamPtr
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63

clucene.sourceforge.net