]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/nultrans.h
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / nultrans.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f
A
3/*
4**********************************************************************
46f4442e 5* Copyright (c) 2000-2007, International Business Machines
b75a7d8f
A
6* Corporation and others. All Rights Reserved.
7**********************************************************************
8* Date Name Description
9* 01/11/2000 aliu Creation.
10**********************************************************************
11*/
12#ifndef NULTRANS_H
13#define NULTRANS_H
14
15#include "unicode/utypes.h"
16
17#if !UCONFIG_NO_TRANSLITERATION
18
19#include "unicode/translit.h"
20
21U_NAMESPACE_BEGIN
22
23/**
24 * A transliterator that leaves text unchanged.
25 * @author Alan Liu
26 * @internal Use transliterator factory methods instead since this class will be removed in that release.
27 */
46f4442e 28class NullTransliterator : public Transliterator {
b75a7d8f
A
29
30public:
31
b75a7d8f
A
32 /**
33 * Constructs a transliterator.
34 * @internal Use transliterator factory methods instead since this class will be removed in that release.
35 */
36 NullTransliterator();
37
38 /**
39 * Destructor.
40 * @internal Use transliterator factory methods instead since this class will be removed in that release.
41 */
42 virtual ~NullTransliterator();
43
44 /**
45 * Transliterator API.
46 * @internal Use transliterator factory methods instead since this class will be removed in that release.
47 */
374ca955 48 virtual Transliterator* clone(void) const;
b75a7d8f
A
49
50 /**
51 * Implements {@link Transliterator#handleTransliterate}.
52 * @internal Use transliterator factory methods instead since this class will be removed in that release.
53 */
54 virtual void handleTransliterate(Replaceable& text, UTransPosition& offset,
55 UBool isIncremental) const;
56
57 /**
58 * ICU "poor man's RTTI", returns a UClassID for the actual class.
b75a7d8f 59 */
374ca955 60 virtual UClassID getDynamicClassID() const;
b75a7d8f
A
61
62 /**
63 * ICU "poor man's RTTI", returns a UClassID for this class.
b75a7d8f 64 */
46f4442e 65 U_I18N_API static UClassID U_EXPORT2 getStaticClassID();
b75a7d8f 66
b75a7d8f
A
67};
68
b75a7d8f
A
69U_NAMESPACE_END
70
71#endif /* #if !UCONFIG_NO_TRANSLITERATION */
72
73#endif