]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/translit/answers/unaccent.h
1 /********************************************************************
3 * Copyright (c) 1999-2002, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
7 #include "unicode/translit.h"
8 #include "unicode/normlzr.h"
10 class UnaccentTransliterator
: public Transliterator
{
17 UnaccentTransliterator();
22 virtual ~UnaccentTransliterator();
27 * Implement Transliterator API
29 virtual void handleTransliterate(Replaceable
& text
,
30 UTransPosition
& index
,
31 UBool incremental
) const;
36 * Unaccent a single character using normalizer.
38 UChar
unaccent(UChar c
) const;
40 Normalizer normalizer
;