2000-01-11 17:28:49 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
|
|
|
* Copyright (c) 2000, International Business Machines
|
|
|
|
* 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
|
|
|
|
|
2002-08-21 19:12:24 +00:00
|
|
|
/* These APIs are becoming private */
|
|
|
|
#define ICU_NULLTRANSLITERATOR_USE_DEPRECATES 1
|
|
|
|
|
2000-01-11 17:28:49 +00:00
|
|
|
#include "unicode/nultrans.h"
|
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2002-06-29 00:04:16 +00:00
|
|
|
const char NullTransliterator::fgClassID=0;
|
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
|
|
|
|
|
|
|
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 */
|