From 2b40cbd993d11d91dba9d203ab4ff9a39f6e54fb Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Mon, 11 Jun 2001 23:45:22 +0000 Subject: [PATCH] ICU-989 register Any-Name, Name-Any X-SVN-Rev: 4953 --- icu4c/source/i18n/translit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/icu4c/source/i18n/translit.cpp b/icu4c/source/i18n/translit.cpp index 3437e13aa3..98e26aaeba 100644 --- a/icu4c/source/i18n/translit.cpp +++ b/icu4c/source/i18n/translit.cpp @@ -19,6 +19,7 @@ #include "unicode/jamohang.h" #include "unicode/locid.h" #include "unicode/msgfmt.h" +#include "unicode/name2uni.h" #include "unicode/nultrans.h" #include "unicode/putil.h" #include "unicode/rep.h" @@ -28,10 +29,10 @@ #include "unicode/tolowtrn.h" #include "unicode/toupptrn.h" #include "unicode/translit.h" +#include "unicode/uni2name.h" #include "unicode/unifilt.h" #include "unicode/uniset.h" #include "unicode/unitohex.h" -#include const UChar Transliterator::ID_SEP = 0x002D; /*-*/ const UChar Transliterator::ID_DELIM = 0x003B; /*;*/ @@ -975,6 +976,8 @@ void Transliterator::initializeCache(void) { _registerInstance(new LowercaseTransliterator(), status); _registerInstance(new UppercaseTransliterator(), status); _registerInstance(new TitlecaseTransliterator(), status); + _registerInstance(new UnicodeNameTransliterator(), status); + _registerInstance(new NameUnicodeTransliterator(), status); cacheInitialized = TRUE; }