ICU-4078 Depend less on the default converter.
X-SVN-Rev: 16406
This commit is contained in:
parent
d6ecaf682b
commit
61639cbad5
@ -65,19 +65,19 @@ Transliterator* EscapeTransliterator::_createPerl(const UnicodeString& ID, Token
|
||||
void EscapeTransliterator::registerIDs() {
|
||||
Token t = integerToken(0);
|
||||
|
||||
Transliterator::_registerFactory("Any-Hex/Unicode", _createUnicode, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/Unicode"), _createUnicode, t);
|
||||
|
||||
Transliterator::_registerFactory("Any-Hex/Java", _createJava, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/Java"), _createJava, t);
|
||||
|
||||
Transliterator::_registerFactory("Any-Hex/C", _createC, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/C"), _createC, t);
|
||||
|
||||
Transliterator::_registerFactory("Any-Hex/XML", _createXML, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/XML"), _createXML, t);
|
||||
|
||||
Transliterator::_registerFactory("Any-Hex/XML10", _createXML10, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/XML10"), _createXML10, t);
|
||||
|
||||
Transliterator::_registerFactory("Any-Hex/Perl", _createPerl, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/Perl"), _createPerl, t);
|
||||
|
||||
Transliterator::_registerFactory("Any-Hex", _createJava, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex"), _createJava, t);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1076,7 +1076,7 @@ Transliterator::createFromRules(const UnicodeString& ID,
|
||||
} else {
|
||||
// idBlock and data -- this is a compound
|
||||
// RBT
|
||||
UnicodeString id("_", "");
|
||||
UnicodeString id((UChar)0x005F); // '_'
|
||||
t = new RuleBasedTransliterator(id, parser.orphanData(), TRUE); // TRUE == adopt data object
|
||||
/* test for NULL */
|
||||
if (t == 0) {
|
||||
@ -1462,7 +1462,7 @@ UBool Transliterator::initializeRegistry() {
|
||||
for (row = 0; row < maxRows; row++) {
|
||||
colBund = ures_getByIndex(transIDs, row, 0, &status);
|
||||
if (U_SUCCESS(status)) {
|
||||
UnicodeString id = ures_getKey(colBund);
|
||||
UnicodeString id(ures_getKey(colBund));
|
||||
UResourceBundle* res = ures_getNextResource(colBund, NULL, &status);
|
||||
const char* typeStr = ures_getKey(res);
|
||||
UChar type = (UChar)*typeStr;
|
||||
@ -1519,8 +1519,10 @@ UBool Transliterator::initializeRegistry() {
|
||||
|
||||
_registerSpecialInverse(NullTransliterator::SHORT_ID,
|
||||
NullTransliterator::SHORT_ID, FALSE);
|
||||
_registerSpecialInverse("Upper", "Lower", TRUE);
|
||||
_registerSpecialInverse("Title", "Lower", FALSE);
|
||||
_registerSpecialInverse(UNICODE_STRING_SIMPLE("Upper"),
|
||||
UNICODE_STRING_SIMPLE("Lower"), TRUE);
|
||||
_registerSpecialInverse(UNICODE_STRING_SIMPLE("Title"),
|
||||
UNICODE_STRING_SIMPLE("Lower"), FALSE);
|
||||
|
||||
ucln_i18n_registerCleanup(UCLN_I18N_TRANSLITERATOR, transliterator_cleanup);
|
||||
|
||||
|
@ -107,19 +107,19 @@ Transliterator* UnescapeTransliterator::_createAny(const UnicodeString& ID, Toke
|
||||
void UnescapeTransliterator::registerIDs() {
|
||||
Token t = integerToken(0);
|
||||
|
||||
Transliterator::_registerFactory("Hex-Any/Unicode", _createUnicode, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Unicode"), _createUnicode, t);
|
||||
|
||||
Transliterator::_registerFactory("Hex-Any/Java", _createJava, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Java"), _createJava, t);
|
||||
|
||||
Transliterator::_registerFactory("Hex-Any/C", _createC, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/C"), _createC, t);
|
||||
|
||||
Transliterator::_registerFactory("Hex-Any/XML", _createXML, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/XML"), _createXML, t);
|
||||
|
||||
Transliterator::_registerFactory("Hex-Any/XML10", _createXML10, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/XML10"), _createXML10, t);
|
||||
|
||||
Transliterator::_registerFactory("Hex-Any/Perl", _createPerl, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Perl"), _createPerl, t);
|
||||
|
||||
Transliterator::_registerFactory("Hex-Any", _createAny, t);
|
||||
Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any"), _createAny, t);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user