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


Loading...
Searching...
No Matches
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
12namespace Lucene {
13
42class LPPAPI ASCIIFoldingFilter : public TokenFilter {
43public:
46
48
49protected:
50 CharArray output;
51 int32_t outputPos;
53
54public:
55 virtual bool incrementToken();
56
61 void foldToASCII(const wchar_t* input, int32_t length);
62};
63
64}
65
66#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
This class converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 1...
Definition ASCIIFoldingFilter.h:42
ASCIIFoldingFilter(const TokenStreamPtr &input)
virtual bool incrementToken()
Consumers (ie., IndexWriter) use this method to advance the stream to the next token....
void foldToASCII(const wchar_t *input, int32_t length)
Converts characters above ASCII to their ASCII equivalents. For example, accents are removed from acc...
int32_t outputPos
Definition ASCIIFoldingFilter.h:51
TermAttributePtr termAtt
Definition ASCIIFoldingFilter.h:52
CharArray output
Definition ASCIIFoldingFilter.h:50
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition TokenFilter.h:18
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition LuceneTypes.h:63
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition LuceneTypes.h:58

clucene.sourceforge.net