+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
-* Copyright (c) 2001-2005, International Business Machines
+* Copyright (c) 2001-2011, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
*/
void RemoveTransliterator::registerIDs() {
- Transliterator::_registerFactory(::CURR_ID, RemoveTransliterator_create, integerToken(0));
+ Transliterator::_registerFactory(UnicodeString(TRUE, ::CURR_ID, -1),
+ RemoveTransliterator_create, integerToken(0));
Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("Remove"),
UNICODE_STRING_SIMPLE("Null"), FALSE);
}
-RemoveTransliterator::RemoveTransliterator() : Transliterator(::CURR_ID, 0) {}
+RemoveTransliterator::RemoveTransliterator() : Transliterator(UnicodeString(TRUE, ::CURR_ID, -1), 0) {}
RemoveTransliterator::~RemoveTransliterator() {}
Transliterator* RemoveTransliterator::clone(void) const {
Transliterator* result = new RemoveTransliterator();
- if (getFilter() != 0) {
+ if (result != NULL && getFilter() != 0) {
result->adoptFilter((UnicodeFilter*)(getFilter()->clone()));
}
return result;