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
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::ASCIIFoldingFilter
ASCIIFoldingFilter(const TokenStreamPtr &input)
Lucene::ASCIIFoldingFilter::~ASCIIFoldingFilter
virtual ~ASCIIFoldingFilter()
Lucene::ASCIIFoldingFilter::incrementToken
virtual bool incrementToken()
Consumers (ie., IndexWriter) use this method to advance the stream to the next token....
Lucene::ASCIIFoldingFilter::foldToASCII
void foldToASCII(const wchar_t *input, int32_t length)
Converts characters above ASCII to their ASCII equivalents. For example, accents are removed from acc...
Lucene::ASCIIFoldingFilter::outputPos
int32_t outputPos
Definition ASCIIFoldingFilter.h:51
Lucene::ASCIIFoldingFilter::termAtt
TermAttributePtr termAtt
Definition ASCIIFoldingFilter.h:52
Lucene::ASCIIFoldingFilter::output
CharArray output
Definition ASCIIFoldingFilter.h:50
Lucene::TokenFilter::TokenFilter
TokenFilter(const TokenStreamPtr &input)
Construct a token stream filtering the given input.
Lucene::TokenFilter::input
TokenStreamPtr input
The source of tokens for this filter.
Definition TokenFilter.h:30
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::TokenStreamPtr
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition LuceneTypes.h:63
Lucene::TermAttributePtr
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition LuceneTypes.h:58

clucene.sourceforge.net