ModErn Text Analysis
META Enumerates Textual Applications
|
Class that encapsulates transliteration of unicode strings. More...
#include <transformer.h>
Classes | |
class | impl |
Implementation class for the transformer. More... | |
Public Member Functions | |
transformer (const std::string &id) | |
Constructs a new transformer. More... | |
transformer (const transformer &other) | |
Copy constructor. | |
transformer (transformer &&other) | |
Move constructor. | |
~transformer () | |
Destructor for the transformer. | |
std::string | operator() (const std::string &str) |
Transforms the given utf8 string. More... | |
Private Attributes | |
util::pimpl< impl > | impl_ |
A pointer to the implementation class for this transformer. | |
Class that encapsulates transliteration of unicode strings.
meta::utf::transformer::transformer | ( | const std::string & | id | ) |
Constructs a new transformer.
id | the id of the transliteration rule as defined by ICU |
std::string meta::utf::transformer::operator() | ( | const std::string & | str | ) |
Transforms the given utf8 string.