2 **********************************************************************
3 * Copyright (C) 2001-2006, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 06/07/01 aliu Creation.
8 **********************************************************************
13 #include "unicode/utypes.h"
15 #if !UCONFIG_NO_TRANSLITERATION
17 #include "unicode/translit.h"
18 #include "unicode/uniset.h"
23 * A transliterator that performs name to character mapping.
24 * It recognizes the Perl syntax \N{name}.
27 class U_I18N_API NameUnicodeTransliterator
: public Transliterator
{
31 * Constructs a transliterator.
32 * @param adoptedFilter the filter for this transliterator.
34 NameUnicodeTransliterator(UnicodeFilter
* adoptedFilter
= 0);
39 virtual ~NameUnicodeTransliterator();
44 NameUnicodeTransliterator(const NameUnicodeTransliterator
&);
47 * Assignment operator.
49 NameUnicodeTransliterator
& operator=(const NameUnicodeTransliterator
&);
53 * @return A copy of the object.
55 virtual Transliterator
* clone(void) const;
58 * ICU "poor man's RTTI", returns a UClassID for the actual class.
60 virtual UClassID
getDynamicClassID() const;
63 * ICU "poor man's RTTI", returns a UClassID for this class.
65 static UClassID U_EXPORT2
getStaticClassID();
70 * Implements {@link Transliterator#handleTransliterate}.
71 * @param text the buffer holding transliterated and
72 * untransliterated text
73 * @param offset the start and limit of the text, the position
74 * of the cursor, and the start and limit of transliteration.
75 * @param incremental if true, assume more text may be coming after
76 * pos.contextLimit. Otherwise, assume the text is complete.
78 virtual void handleTransliterate(Replaceable
& text
, UTransPosition
& offset
,
79 UBool isIncremental
) const;
82 * Set of characters which occur in Unicode character names.
89 #endif /* #if !UCONFIG_NO_TRANSLITERATION */