]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /* |
2 | ********************************************************************** | |
73c04bcf | 3 | * Copyright (c) 2000-2005, International Business Machines |
b75a7d8f A |
4 | * Corporation and others. All Rights Reserved. |
5 | ********************************************************************** | |
6 | * Date Name Description | |
7 | * 01/11/2000 aliu Creation. | |
8 | ********************************************************************** | |
9 | */ | |
10 | ||
11 | #include "unicode/utypes.h" | |
12 | ||
13 | #if !UCONFIG_NO_TRANSLITERATION | |
14 | ||
15 | #include "nultrans.h" | |
16 | ||
17 | U_NAMESPACE_BEGIN | |
18 | ||
374ca955 | 19 | UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator) |
b75a7d8f | 20 | |
73c04bcf | 21 | NullTransliterator::NullTransliterator() : Transliterator(UNICODE_STRING_SIMPLE("Any-Null"), 0) {} |
374ca955 A |
22 | |
23 | NullTransliterator::~NullTransliterator() {} | |
24 | ||
b75a7d8f A |
25 | Transliterator* NullTransliterator::clone(void) const { |
26 | return new NullTransliterator(); | |
27 | } | |
28 | ||
29 | void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets, | |
30 | UBool /*isIncremental*/) const { | |
31 | offsets.start = offsets.limit; | |
32 | } | |
33 | ||
34 | U_NAMESPACE_END | |
35 | ||
36 | #endif /* #if !UCONFIG_NO_TRANSLITERATION */ |