]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/nultrans.cpp
ICU-6.2.15.tar.gz
[apple/icu.git] / icuSources / i18n / nultrans.cpp
1 /*
2 **********************************************************************
3 * Copyright (c) 2000-2003, International Business Machines
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
19 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator)
20
21 // "Any-Null"
22 const UChar NullTransliterator::ID[] = {65,110,121,45,0x4E, 0x75, 0x6C, 0x6C, 0x00};
23
24 // "Null"
25 const UChar NullTransliterator::SHORT_ID[] = {0x4E, 0x75, 0x6C, 0x6C, 0x00};
26
27 NullTransliterator::NullTransliterator() : Transliterator(ID, 0) {}
28
29 NullTransliterator::~NullTransliterator() {}
30
31 Transliterator* NullTransliterator::clone(void) const {
32 return new NullTransliterator();
33 }
34
35 void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets,
36 UBool /*isIncremental*/) const {
37 offsets.start = offsets.limit;
38 }
39
40 U_NAMESPACE_END
41
42 #endif /* #if !UCONFIG_NO_TRANSLITERATION */