/**********************************************************************
* © 2016 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html
**********************************************************************
**********************************************************************
* COPYRIGHT:
* Copyright (c) 1999-2003, International Business Machines Corporation and
* others. All Rights Reserved.
**********************************************************************/
#include "unaccent.h"
const char UnaccentTransliterator::fgClassID = 0;
/**
* Constructor
*/
UnaccentTransliterator::UnaccentTransliterator() :
normalizer("", UNORM_NFD),
Transliterator("Unaccent", nullptr) {
}
/**
* Destructor
*/
UnaccentTransliterator::~UnaccentTransliterator() {
}
/**
* Remove accents from a character using Normalizer.
*/
char16_t UnaccentTransliterator::unaccent(char16_t c) const {
UnicodeString str(c);
UErrorCode status = U_ZERO_ERROR;
UnaccentTransliterator* t = const_cast