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

Implementation class for the transformer. More...

Public Member Functions

 impl (const std::string &id)
 Constructs a new impl. More...
 
 impl (const impl &other)
 Copy constructs an impl. More...
 
 impl (impl &&)=default
 Defaulted move constructor.
 
std::string convert (const std::string &str)
 Converts a string using the internal Transliterator. More...
 

Private Attributes

std::unique_ptr< icu::Transliterator > translit_
 A pointer to the internal Transliterator.
 

Detailed Description

Implementation class for the transformer.

Constructor & Destructor Documentation

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

Constructs a new impl.

Parameters
idThe ICU id for the internal Transliterator to be created
meta::utf::transformer::impl::impl ( const impl other)
inline

Copy constructs an impl.

Parameters
otherThe impl to copy

Member Function Documentation

std::string meta::utf::transformer::impl::convert ( const std::string &  str)
inline

Converts a string using the internal Transliterator.

Parameters
strThe string to convert
Returns
the converted string, encoded in utf8

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