OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OPENTREP::OTransliterator Class Reference

#include <opentrep/basic/OTransliterator.hpp>

Public Member Functions

std::string normalise (const std::string &iString) const
 OTransliterator ()
 OTransliterator (const OTransliterator &)
 ~OTransliterator ()

Detailed Description

Wrapper around a Unicode transliterator.

Definition at line 20 of file OTransliterator.hpp.

Constructor & Destructor Documentation

OPENTREP::OTransliterator::OTransliterator ( )

Default Constructor.

Definition at line 17 of file OTransliterator.cpp.

OPENTREP::OTransliterator::OTransliterator ( const OTransliterator iTransliterator)

Copy Constructor.

Definition at line 24 of file OTransliterator.cpp.

OPENTREP::OTransliterator::~OTransliterator ( )


Definition at line 42 of file OTransliterator.cpp.

Member Function Documentation

std::string OPENTREP::OTransliterator::normalise ( const std::string &  iString) const

Remove the accents of the given string.

conststd::string& The string for which the strings must be removed
std::string The unaccentuated string.

Definition at line 134 of file OTransliterator.cpp.

References OPENTREP::getUTF8().

Referenced by OPENTREP::Place::addNameToXapianSets(), BOOST_AUTO_TEST_CASE(), and OPENTREP::Place::buildIndexSets().

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