ModErn Text Analysis
META Enumerates Textual Applications
Classes | Public Member Functions | Private Attributes | List of all members
meta::utf::transformer Class Reference

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< implimpl_
 A pointer to the implementation class for this transformer.
 

Detailed Description

Class that encapsulates transliteration of unicode strings.

See also
http://userguide.icu-project.org/transforms

Constructor & Destructor Documentation

meta::utf::transformer::transformer ( const std::string &  id)

Constructs a new transformer.

Parameters
idthe id of the transliteration rule as defined by ICU

Member Function Documentation

std::string meta::utf::transformer::operator() ( const std::string &  str)

Transforms the given utf8 string.

Returns
the transformed string, encoded in utf8

The documentation for this class was generated from the following files: