2000-01-11 17:28:49 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
2003-06-03 20:58:22 +00:00
|
|
|
* Copyright (c) 2000-2003, International Business Machines
|
2000-01-11 17:28:49 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
**********************************************************************
|
|
|
|
* Date Name Description
|
|
|
|
* 01/11/2000 aliu Creation.
|
|
|
|
**********************************************************************
|
|
|
|
*/
|
2002-08-21 19:12:24 +00:00
|
|
|
|
2002-09-20 01:54:48 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_TRANSLITERATION
|
|
|
|
|
2003-02-14 01:44:49 +00:00
|
|
|
#include "nultrans.h"
|
2000-01-11 17:28:49 +00:00
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2003-08-29 20:06:23 +00:00
|
|
|
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator)
|
2001-10-08 23:26:58 +00:00
|
|
|
|
2001-08-15 19:06:40 +00:00
|
|
|
// "Any-Null"
|
|
|
|
const UChar NullTransliterator::ID[] = {65,110,121,45,0x4E, 0x75, 0x6C, 0x6C, 0x00};
|
|
|
|
|
|
|
|
// "Null"
|
|
|
|
const UChar NullTransliterator::SHORT_ID[] = {0x4E, 0x75, 0x6C, 0x6C, 0x00};
|
2000-01-11 17:28:49 +00:00
|
|
|
|
2003-08-29 20:06:23 +00:00
|
|
|
NullTransliterator::NullTransliterator() : Transliterator(ID, 0) {}
|
|
|
|
|
|
|
|
NullTransliterator::~NullTransliterator() {}
|
|
|
|
|
2000-01-11 17:28:49 +00:00
|
|
|
Transliterator* NullTransliterator::clone(void) const {
|
|
|
|
return new NullTransliterator();
|
|
|
|
}
|
|
|
|
|
2000-08-15 18:25:20 +00:00
|
|
|
void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets,
|
|
|
|
UBool /*isIncremental*/) const {
|
2000-06-27 20:06:52 +00:00
|
|
|
offsets.start = offsets.limit;
|
2000-01-11 17:28:49 +00:00
|
|
|
}
|
2001-10-08 23:26:58 +00:00
|
|
|
|
|
|
|
U_NAMESPACE_END
|
|
|
|
|
2002-09-20 01:54:48 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
|