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

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

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 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/numfmt.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 faf7c832bee9321db02e5c09a079249dd23c9247..7abd6574086495f59ad1a401e2b8caf370837c38 100644
--- a/source/i18n/unicode/plurrule.h
+++ b/source/i18n/unicode/plurrule.h
@@ -1,6 +1,6 @@
/*
*******************************************************************************
-* Copyright (C) 2008-2014, International Business Machines Corporation and
+* Copyright (C) 2008-2015, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*
@@ -39,6 +39,7 @@ U_NAMESPACE_BEGIN
class Hashtable;
class FixedDecimal;
+class VisibleDigitsWithExponent;
class RuleChain;
class PluralRuleParser;
class PluralKeywordEnumeration;
@@ -163,7 +164,7 @@ class SharedPluralRules;
* <p>
* The difference between 'in' and 'within' is that 'in' only includes
* integers in the specified range, while 'within' includes all values.
- * Using 'within' with a range_list consisting entirely of values is the
+ * Using 'within' with a range_list consisting entirely of values is the
* same as using 'in' (it's not an error).
*</p>
* <p>
@@ -301,7 +302,7 @@ public:
/**
* For ICU use only.
- * creates a SharedPluralRules object
+ * creates a SharedPluralRules object
* @internal
*/
static PluralRules* U_EXPORT2 internalForLocale(const Locale& locale, UPluralType type, UErrorCode& status);
@@ -316,7 +317,7 @@ public:
static const SharedPluralRules* U_EXPORT2 createSharedInstance(
const Locale& locale, UPluralType type, UErrorCode& status);
-
+
#endif /* U_HIDE_INTERNAL_API */
/**
@@ -346,6 +347,10 @@ public:
* @internal
*/
UnicodeString select(const FixedDecimal &number) const;
+ /**
+ * @internal
+ */
+ UnicodeString select(const VisibleDigitsWithExponent &number) const;
#endif /* U_HIDE_INTERNAL_API */
/**
@@ -360,21 +365,24 @@ public:
*/
StringEnumeration* getKeywords(UErrorCode& status) const;
+#ifndef U_HIDE_DEPRECATED_API
/**
- * Returns a unique value for this keyword if it exists, else the constant
- * UPLRULES_NO_UNIQUE_VALUE.
+ * Deprecated Function, does not return useful results.
+ *
+ * Originally intended to return a unique value for this keyword if it exists,
+ * else the constant UPLRULES_NO_UNIQUE_VALUE.
*
* @param keyword The keyword.
- * @return The unique value that generates the keyword, or
- * UPLRULES_NO_UNIQUE_VALUE if the keyword is undefined or there is no
- * unique value that generates this keyword.
- * @stable ICU 4.8
+ * @return Stub deprecated function returns UPLRULES_NO_UNIQUE_VALUE always.
+ * @deprecated ICU 55
*/
double getUniqueKeywordValue(const UnicodeString& keyword);
/**
- * Returns all the values for which select() would return the keyword. If
- * the keyword is unknown, returns no values, but this is not an error. If
+ * Deprecated Function, does not produce useful results.
+ *
+ * Orginally intended to return all the values for which select() would return the keyword.
+ * If the keyword is unknown, returns no values, but this is not an error. If
* the number of values is unlimited, returns no values and -1 as the
* count.
*
@@ -384,15 +392,16 @@ public:
* @param dest Array into which to put the returned values. May
* be NULL if destCapacity is 0.
* @param destCapacity The capacity of the array, must be at least 0.
- * @param status The error code.
+ * @param status The error code. Deprecated function, always sets U_UNSUPPORTED_ERROR.
* @return The count of values available, or -1. This count
* can be larger than destCapacity, but no more than
* destCapacity values will be written.
- * @stable ICU 4.8
+ * @deprecated ICU 55
*/
int32_t getAllKeywordValues(const UnicodeString &keyword,
double *dest, int32_t destCapacity,
UErrorCode& status);
+#endif /* U_HIDE_DEPRECATED_API */
/**
* Returns sample values for which select() would return the keyword. If
« no previous file with comments | « source/i18n/unicode/numfmt.h ('k') | source/i18n/unicode/rbnf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698