Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
ASCIIFoldingFilter.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2011 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
{
44
public
:
45
ASCIIFoldingFilter
(
TokenStreamPtr
input);
46
virtual
~
ASCIIFoldingFilter
();
47
48
LUCENE_CLASS
(
ASCIIFoldingFilter
);
49
50
protected
:
51
CharArray output;
52
int32_t
outputPos
;
53
TermAttributePtr
termAtt
;
54
55
public
:
56
virtual
bool
incrementToken();
57
62
void
foldToASCII(
const
wchar_t
* input, int32_t length);
63
};
64
}
65
66
#endif
clucene.sourceforge.net