Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: source/i18n/unicode/plurrule.h

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/unicode/plurfmt.h ('k') | source/i18n/unicode/rbnf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
/**
« no previous file with comments | « source/i18n/unicode/plurfmt.h ('k') | source/i18n/unicode/rbnf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698