]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/translit/answers/unaccent.h
1 /***********************************************************************
2 * © 2016 and later: Unicode, Inc. and others.
3 * License & terms of use: http://www.unicode.org/copyright.html#License
4 ***********************************************************************
5 ***********************************************************************
7 * Copyright (c) 1999-2002, International Business Machines Corporation and
8 * others. All Rights Reserved.
9 ***********************************************************************/
11 #include "unicode/translit.h"
12 #include "unicode/normlzr.h"
14 class UnaccentTransliterator
: public Transliterator
{
21 UnaccentTransliterator();
26 virtual ~UnaccentTransliterator();
31 * Implement Transliterator API
33 virtual void handleTransliterate(Replaceable
& text
,
34 UTransPosition
& index
,
35 UBool incremental
) const;
40 * Unaccent a single character using normalizer.
42 UChar
unaccent(UChar c
) const;
44 Normalizer normalizer
;