2
**********************************************************************
3
* Copyright (C) 2001-2007, 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 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&);
48
* @return A copy of the object.
50
virtual Transliterator* clone(void) const;
53
* ICU "poor man's RTTI", returns a UClassID for the actual class.
55
virtual UClassID getDynamicClassID() const;
58
* ICU "poor man's RTTI", returns a UClassID for this class.
60
U_I18N_API static UClassID U_EXPORT2 getStaticClassID();
65
* Implements {@link Transliterator#handleTransliterate}.
66
* @param text the buffer holding transliterated and
67
* untransliterated text
68
* @param offset the start and limit of the text, the position
69
* of the cursor, and the start and limit of transliteration.
70
* @param incremental if true, assume more text may be coming after
71
* pos.contextLimit. Otherwise, assume the text is complete.
73
virtual void handleTransliterate(Replaceable& text, UTransPosition& offset,
74
UBool isIncremental) const;
77
* Set of characters which occur in Unicode character names.
82
* Assignment operator.
84
NameUnicodeTransliterator& operator=(const NameUnicodeTransliterator&);
89
#endif /* #if !UCONFIG_NO_TRANSLITERATION */