Index: source/i18n/unicode/plurrule.h |
diff --git a/source/i18n/unicode/plurrule.h b/source/i18n/unicode/plurrule.h |
index c36b1a829d13e06efd09fea81f3cd805a888bce4..faf7c832bee9321db02e5c09a079249dd23c9247 100644 |
--- a/source/i18n/unicode/plurrule.h |
+++ b/source/i18n/unicode/plurrule.h |
@@ -1,6 +1,6 @@ |
/* |
******************************************************************************* |
-* Copyright (C) 2008-2013, International Business Machines Corporation and |
+* Copyright (C) 2008-2014, International Business Machines Corporation and |
* others. All Rights Reserved. |
******************************************************************************* |
* |
@@ -43,6 +43,7 @@ class RuleChain; |
class PluralRuleParser; |
class PluralKeywordEnumeration; |
class AndConstraint; |
+class SharedPluralRules; |
/** |
* Defines rules for mapping non-negative numeric values onto a small set of |
@@ -297,6 +298,25 @@ public: |
* @internal |
*/ |
static UBool hasOverride(const Locale &locale); |
+ |
+ /** |
+ * For ICU use only. |
+ * creates a SharedPluralRules object |
+ * @internal |
+ */ |
+ static PluralRules* U_EXPORT2 internalForLocale(const Locale& locale, UPluralType type, UErrorCode& status); |
+ |
+ /** |
+ * For ICU use only. |
+ * Returns handle to the shared, cached PluralRules instance. |
+ * Caller must call removeRef() on returned value once it is done with |
+ * the shared instance. |
+ * @internal |
+ */ |
+ static const SharedPluralRules* U_EXPORT2 createSharedInstance( |
+ const Locale& locale, UPluralType type, UErrorCode& status); |
+ |
+ |
#endif /* U_HIDE_INTERNAL_API */ |
/** |