2 **********************************************************************
3 * Copyright (C) 2001-2006, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 06/06/01 aliu Creation.
8 **********************************************************************
13 #include "unicode/utypes.h"
15 #if !UCONFIG_NO_TRANSLITERATION
17 #include "unicode/translit.h"
22 * A transliterator that performs character to name mapping.
23 * It generates the Perl syntax \N{name}.
26 class U_I18N_API UnicodeNameTransliterator
: public Transliterator
{
31 * Constructs a transliterator.
32 * @param adoptedFilter the filter to be adopted.
34 UnicodeNameTransliterator(UnicodeFilter
* adoptedFilter
= 0);
39 virtual ~UnicodeNameTransliterator();
44 UnicodeNameTransliterator(const UnicodeNameTransliterator
&);
47 * Assignment operator.
49 UnicodeNameTransliterator
& operator=(const UnicodeNameTransliterator
&);
54 virtual Transliterator
* clone(void) const;
57 * ICU "poor man's RTTI", returns a UClassID for the actual class.
59 virtual UClassID
getDynamicClassID() const;
62 * ICU "poor man's RTTI", returns a UClassID for this class.
64 static UClassID U_EXPORT2
getStaticClassID();
69 * Implements {@link Transliterator#handleTransliterate}.
70 * @param text the buffer holding transliterated and
71 * untransliterated text
72 * @param offset the start and limit of the text, the position
73 * of the cursor, and the start and limit of transliteration.
74 * @param incremental if true, assume more text may be coming after
75 * pos.contextLimit. Otherwise, assume the text is complete.
77 virtual void handleTransliterate(Replaceable
& text
, UTransPosition
& offset
,
78 UBool isIncremental
) const;
84 #endif /* #if !UCONFIG_NO_TRANSLITERATION */