ModErn Text Analysis
META Enumerates Textual Applications
|
Filter that converts all tokens to lowercase. More...
#include <lowercase_filter.h>
Public Member Functions | |
lowercase_filter (std::unique_ptr< token_stream > source) | |
Constructs a new lowercase_filter, reading tokens from the given source. More... | |
lowercase_filter (const lowercase_filter &other) | |
Copy constructor. More... | |
void | set_content (const std::string &content) override |
Sets the content for the beginning of the filter chain. More... | |
std::string | next () override |
Obtains the next token in the sequence. | |
operator bool () const override | |
Determines whether there are more tokens available in the stream. | |
Public Member Functions inherited from meta::util::multilevel_clonable< Root, Base, Derived > | |
virtual std::unique_ptr< Root > | clone () const |
Clones the given object. More... | |
Static Public Attributes | |
static const std::string | id = "lowercase" |
Identifier for this filter. | |
Private Attributes | |
std::unique_ptr< token_stream > | source_ |
The stream to read tokens from. | |
Filter that converts all tokens to lowercase.
meta::analyzers::filters::lowercase_filter::lowercase_filter | ( | std::unique_ptr< token_stream > | source | ) |
Constructs a new lowercase_filter, reading tokens from the given source.
source | The source to construct the filter from |
meta::analyzers::filters::lowercase_filter::lowercase_filter | ( | const lowercase_filter & | other | ) |
Copy constructor.
other | The lowercase_filter to copy into this one |
|
override |
Sets the content for the beginning of the filter chain.
content | The string content to set |