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

Loading...
Searching...
No Matches
ISOLatin1AccentFilter.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 ISOLATIN1ACCENTFILTER_H
8#define ISOLATIN1ACCENTFILTER_H
9
10#include "TokenFilter.h"
11
12 namespace Lucene {
13
21 class LPPAPI ISOLatin1AccentFilter : public TokenFilter {
22 public:
23 ISOLatin1AccentFilter(const TokenStreamPtr& input);
24 virtual ~ISOLatin1AccentFilter();
25
26 LUCENE_CLASS(ISOLatin1AccentFilter);
27
28 protected:
29 CharArray output;
30 int32_t outputPos;
31 TermAttributePtr termAtt;
32
33 public:
34 virtual bool incrementToken();
35
37 void removeAccents(const wchar_t* input, int32_t length);
38};
39
40}
41
42#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
TokenFilter.h
Lucene::ISOLatin1AccentFilter
A filter that replaces accented characters in the ISO Latin 1 character set (ISO-8859-1) by their una...
Definition ISOLatin1AccentFilter.h:21
Lucene::ISOLatin1AccentFilter::termAtt
TermAttributePtr termAtt
Definition ISOLatin1AccentFilter.h:31
Lucene::ISOLatin1AccentFilter::~ISOLatin1AccentFilter
virtual ~ISOLatin1AccentFilter()
Lucene::ISOLatin1AccentFilter::incrementToken
virtual bool incrementToken()
Consumers (ie., IndexWriter) use this method to advance the stream to the next token....
Lucene::ISOLatin1AccentFilter::outputPos
int32_t outputPos
Definition ISOLatin1AccentFilter.h:30
Lucene::ISOLatin1AccentFilter::output
CharArray output
Definition ISOLatin1AccentFilter.h:29
Lucene::ISOLatin1AccentFilter::ISOLatin1AccentFilter
ISOLatin1AccentFilter(const TokenStreamPtr &input)
Lucene::ISOLatin1AccentFilter::removeAccents
void removeAccents(const wchar_t *input, int32_t length)
To replace accented characters in a String by unaccented equivalents.
Lucene::TokenFilter
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition TokenFilter.h:18
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