mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-25 02:03:03 +01:00
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
|
/*
|
||
|
**********************************************************************
|
||
|
* Copyright (c) 2000-2003, International Business Machines
|
||
|
* Corporation and others. All Rights Reserved.
|
||
|
**********************************************************************
|
||
|
* Date Name Description
|
||
|
* 01/11/2000 aliu Creation.
|
||
|
**********************************************************************
|
||
|
*/
|
||
|
|
||
|
#include "unicode/utypes.h"
|
||
|
|
||
|
#if !UCONFIG_NO_TRANSLITERATION
|
||
|
|
||
|
#include "nultrans.h"
|
||
|
|
||
|
U_NAMESPACE_BEGIN
|
||
|
|
||
|
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NullTransliterator)
|
||
|
|
||
|
// "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};
|
||
|
|
||
|
NullTransliterator::NullTransliterator() : Transliterator(ID, 0) {}
|
||
|
|
||
|
NullTransliterator::~NullTransliterator() {}
|
||
|
|
||
|
Transliterator* NullTransliterator::clone(void) const {
|
||
|
return new NullTransliterator();
|
||
|
}
|
||
|
|
||
|
void NullTransliterator::handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets,
|
||
|
UBool /*isIncremental*/) const {
|
||
|
offsets.start = offsets.limit;
|
||
|
}
|
||
|
|
||
|
U_NAMESPACE_END
|
||
|
|
||
|
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
|