]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/nultrans.cpp
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / nultrans.cpp
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**********************************************************************
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
19U_NAMESPACE_BEGIN
20
374ca955 21UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator)
b75a7d8f 22
73c04bcf 23NullTransliterator::NullTransliterator() : Transliterator(UNICODE_STRING_SIMPLE("Any-Null"), 0) {}
374ca955
A
24
25NullTransliterator::~NullTransliterator() {}
26
b75a7d8f
A
27Transliterator* NullTransliterator::clone(void) const {
28 return new NullTransliterator();
29}
30
31void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets,
32 UBool /*isIncremental*/) const {
33 offsets.start = offsets.limit;
34}
35
36U_NAMESPACE_END
37
38#endif /* #if !UCONFIG_NO_TRANSLITERATION */