scuffed-code/icu4c/source/i18n/nultrans.cpp
Alan Liu b062d159c4 ICU-114 add NullTransliterator
X-SVN-Rev: 528
2000-01-11 17:28:49 +00:00

27 lines
896 B
C++

/*
**********************************************************************
* Copyright (c) 2000, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 01/11/2000 aliu Creation.
**********************************************************************
*/
#include "unicode/nultrans.h"
const char* NullTransliterator::_ID = "Null";
Transliterator* NullTransliterator::clone(void) const {
return new NullTransliterator();
}
int32_t NullTransliterator::transliterate(Replaceable&, int32_t,
int32_t limit) const {
return limit;
}
void NullTransliterator::handleKeyboardTransliterate(Replaceable&,
int32_t offsets[3]) const {
offsets[CURSOR] = offsets[LIMIT];
}