Simplistic CharFilter that applies the mappings contained in a NormalizeCharMap to the character stream, and correcting the resulting changes to the offsets.
More...
#include <MappingCharFilter.h>
Protected Member Functions |
int32_t | nextChar () |
void | pushChar (int32_t c) |
void | pushLastChar (int32_t c) |
NormalizeCharMapPtr | match (const NormalizeCharMapPtr &map) |
virtual int32_t | correct (int32_t currentOff) |
| Retrieve the corrected offset.
|
int32_t | getLastCumulativeDiff () |
void | addOffCorrectMap (int32_t off, int32_t cumulativeDiff) |
| CharFilter (const CharStreamPtr &in) |
virtual int32_t | correctOffset (int32_t currentOff) |
| Chains the corrected offset through the input CharFilter.
|
virtual void | close () |
| Close the stream.
|
virtual bool | markSupported () |
| Tell whether this stream supports the mark() operation.
|
virtual void | mark (int32_t readAheadLimit) |
| Mark the present position in the stream. Subsequent calls to reset() will attempt to reposition the stream to this point.
|
virtual void | reset () |
| Reset the stream. If the stream has been marked, then attempt to reposition it at the mark. If the stream has not been marked, then attempt to reset it in some way appropriate to the particular stream, for example by repositioning it to its starting point.
|
Additional Inherited Members |
static const int32_t | READER_EOF |
Detailed Description
Simplistic CharFilter that applies the mappings contained in a NormalizeCharMap to the character stream, and correcting the resulting changes to the offsets.
Constructor & Destructor Documentation
Easy-use constructor that takes a Reader.
virtual Lucene::MappingCharFilter::~MappingCharFilter |
( |
| ) |
|
|
virtual |
Member Function Documentation
static String Lucene::MappingCharFilter::_getClassName |
( |
| ) |
|
|
inlinestatic |
virtual String Lucene::MappingCharFilter::getClassName |
( |
| ) |
|
|
inlinevirtual |
int32_t Lucene::MappingCharFilter::nextChar |
( |
| ) |
|
|
protected |
void Lucene::MappingCharFilter::pushChar |
( |
int32_t |
c | ) |
|
|
protected |
void Lucene::MappingCharFilter::pushLastChar |
( |
int32_t |
c | ) |
|
|
protected |
virtual int32_t Lucene::MappingCharFilter::read |
( |
| ) |
|
|
virtual |
virtual int32_t Lucene::MappingCharFilter::read |
( |
wchar_t * |
buffer, |
|
|
int32_t |
offset, |
|
|
int32_t |
length |
|
) |
| |
|
virtual |
boost::shared_ptr< MappingCharFilter > Lucene::MappingCharFilter::shared_from_this |
( |
| ) |
|
|
inline |
Field Documentation
Collection<wchar_t> Lucene::MappingCharFilter::buffer |
|
protected |
int32_t Lucene::MappingCharFilter::charPointer |
|
protected |
int32_t Lucene::MappingCharFilter::nextCharCounter |
|
protected |
String Lucene::MappingCharFilter::replacement |
|
protected |
The documentation for this class was generated from the following file: