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