ModErn Text Analysis
META Enumerates Textual Applications
transformer.h
Go to the documentation of this file.
1 
10 #ifndef META_TRANSFORMER_H_
11 #define META_TRANSFORMER_H_
12 
13 #include <string>
14 
15 #include "util/pimpl.h"
16 
17 namespace meta
18 {
19 namespace utf
20 {
21 
27 {
28  public:
34  transformer(const std::string& id);
35 
39  transformer(const transformer& other);
40 
44  transformer(transformer&& other);
45 
49  ~transformer();
50 
55  std::string operator()(const std::string& str);
56 
57  private:
59  class impl;
62 };
63 }
64 }
65 #endif
util::pimpl< impl > impl_
A pointer to the implementation class for this transformer.
Definition: transformer.h:59
Class to assist in simple pointer-to-implementation classes.
Definition: pimpl.h:26
Implementation class for the transformer.
Definition: transformer.cpp:20
std::string operator()(const std::string &str)
Transforms the given utf8 string.
Definition: transformer.cpp:81
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24
~transformer()
Destructor for the transformer.
transformer(const std::string &id)
Constructs a new transformer.
Definition: transformer.cpp:67
Class that encapsulates transliteration of unicode strings.
Definition: transformer.h:26