X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b25be06635768807f8f693286fa73bb2297bb06c..4388f060552cc537e71e957d32f35e9d75a61233:/icuSources/i18n/anytrans.cpp diff --git a/icuSources/i18n/anytrans.cpp b/icuSources/i18n/anytrans.cpp index 7ce9ca71..c3b3b67c 100644 --- a/icuSources/i18n/anytrans.cpp +++ b/icuSources/i18n/anytrans.cpp @@ -1,6 +1,6 @@ /* ***************************************************************** -* Copyright (c) 2002-2008, International Business Machines Corporation +* Copyright (c) 2002-2011, International Business Machines Corporation * and others. All Rights Reserved. ***************************************************************** * Date Name Description @@ -39,7 +39,7 @@ U_CDECL_BEGIN */ static void U_CALLCONV _deleteTransliterator(void *obj) { - delete (U_NAMESPACE_QUALIFIER Transliterator*) obj; + delete (icu::Transliterator*) obj; } U_CDECL_END @@ -288,7 +288,7 @@ Transliterator* AnyTransliterator::getTransliterator(UScriptCode source) const { // Try to pivot around Latin, our most common script id = sourceName; - id.append(LATIN_PIVOT).append(target); + id.append(LATIN_PIVOT, -1).append(target); t = Transliterator::createInstance(id, UTRANS_FORWARD, ec); if (U_FAILURE(ec) || t == NULL) { delete t; @@ -341,7 +341,7 @@ void AnyTransliterator::registerIDs() { Transliterator::_getAvailableSource(s, source); // Ignore the "Any" source - if (source.caseCompare(ANY, 0 /*U_FOLD_CASE_DEFAULT*/) == 0) continue; + if (source.caseCompare(ANY, 3, 0 /*U_FOLD_CASE_DEFAULT*/) == 0) continue; int32_t targetCount = Transliterator::_countAvailableTargets(source); for (int32_t t=0; t