]>
Commit | Line | Data |
---|---|---|
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 | ********************************************************************** | |
73c04bcf | 5 | * Copyright (c) 2000-2005, 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 | ||
13 | #include "unicode/utypes.h" | |
14 | ||
15 | #if !UCONFIG_NO_TRANSLITERATION | |
16 | ||
17 | #include "nultrans.h" | |
18 | ||
19 | U_NAMESPACE_BEGIN | |
20 | ||
374ca955 | 21 | UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator) |
b75a7d8f | 22 | |
73c04bcf | 23 | NullTransliterator::NullTransliterator() : Transliterator(UNICODE_STRING_SIMPLE("Any-Null"), 0) {} |
374ca955 A |
24 | |
25 | NullTransliterator::~NullTransliterator() {} | |
26 | ||
b75a7d8f A |
27 | Transliterator* NullTransliterator::clone(void) const { |
28 | return new NullTransliterator(); | |
29 | } | |
30 | ||
31 | void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets, | |
32 | UBool /*isIncremental*/) const { | |
33 | offsets.start = offsets.limit; | |
34 | } | |
35 | ||
36 | U_NAMESPACE_END | |
37 | ||
38 | #endif /* #if !UCONFIG_NO_TRANSLITERATION */ |