aboutsummaryrefslogtreecommitdiff
path: root/i18n/coll.cpp
diff options
context:
space:
mode:
authorclaireho <chinglanho@gmail.com>2011-06-09 11:11:49 -0700
committerclaireho <chinglanho@gmail.com>2011-06-11 10:58:15 -0700
commit27f654740f2a26ad62a5c155af9199af9e69b889 (patch)
tree50c37339e167c1073e457fea8d1cd2d5bc638780 /i18n/coll.cpp
parent39b7df1636cb72b2b4c9992b56f4b787d7df5da9 (diff)
downloadicu4c-27f654740f2a26ad62a5c155af9199af9e69b889.tar.gz
ICU4.6 upgrade.
ICU4.6 syncs to Unicode6.0 and CLDR1.9. Change-Id: I695558055cc139b42b71da9138f61d19bcbd9758
Diffstat (limited to 'i18n/coll.cpp')
-rw-r--r--i18n/coll.cpp27
1 files changed, 23 insertions, 4 deletions
diff --git a/i18n/coll.cpp b/i18n/coll.cpp
index 86f423ed..83c7565a 100644
--- a/i18n/coll.cpp
+++ b/i18n/coll.cpp
@@ -1,7 +1,7 @@
/*
******************************************************************************
- * Copyright (C) 1996-2009, International Business Machines Corporation and *
- * others. All Rights Reserved. *
+ * Copyright (C) 1996-2010, International Business Machines Corporation and
+ * others. All Rights Reserved.
******************************************************************************
*/
@@ -235,8 +235,8 @@ Collator::createUCollator(const char *loc,
if (status && U_SUCCESS(*status) && hasService()) {
Locale desiredLocale(loc);
Collator *col = (Collator*)gService->get(desiredLocale, *status);
- if (col && col->getDynamicClassID() == RuleBasedCollator::getStaticClassID()) {
- RuleBasedCollator *rbc = (RuleBasedCollator *)col;
+ RuleBasedCollator *rbc;
+ if (col && (rbc = dynamic_cast<RuleBasedCollator *>(col))) {
if (!rbc->dataIsOwned) {
result = ucol_safeClone(rbc->ucollator, NULL, NULL, status);
} else {
@@ -833,6 +833,25 @@ Collator::getFunctionalEquivalent(const char* keyword, const Locale& locale,
return Locale::createFromName(loc);
}
+int32_t Collator::getReorderCodes(int32_t *dest,
+ int32_t destCapacity,
+ UErrorCode& status) const
+{
+ if (U_SUCCESS(status)) {
+ status = U_UNSUPPORTED_ERROR;
+ }
+ return 0;
+}
+
+void Collator::setReorderCodes(const int32_t *reorderCodes,
+ int32_t reorderCodesLength,
+ UErrorCode& status)
+{
+ if (U_SUCCESS(status)) {
+ status = U_UNSUPPORTED_ERROR;
+ }
+}
+
// UCollator private data members ----------------------------------------
/* This is useless information */