]> granicus.if.org Git - icu/commitdiff
ICU-9249 deprecate PluralFormat::setLocale(locale)
authorMarkus Scherer <markus.icu@gmail.com>
Wed, 18 Apr 2012 23:58:47 +0000 (23:58 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Wed, 18 Apr 2012 23:58:47 +0000 (23:58 +0000)
X-SVN-Rev: 31742

icu4c/source/i18n/unicode/plurfmt.h

index be3152ba3f619cd7b2967c414e537f206ab362eb..196d8b579d605b285ff01e5fdb51db86a990c9c8 100644 (file)
@@ -389,11 +389,14 @@ public:
      *     i.e., a pattern that was applied previously will be removed,
      *     and the NumberFormat is set to the default number format for
      *     the locale.  The resulting format behaves the same as one
-     *     constructed from {@link #PluralFormat(const Locale& locale, UPLURAL_TYPE_CARDINAL, UErrorCode& status)}.
+     *     constructed from {@link #PluralFormat(const Locale& locale, UPluralType type, UErrorCode& status)}
+     *     with UPLURAL_TYPE_CARDINAL.
      * @param locale  the <code>locale</code> to use to configure the formatter.
      * @param status  output param set to success/failure code on exit, which
      *                must not indicate a failure before the function call.
-     * @stable ICU 4.0
+     * @deprecated ICU 50 This method clears the pattern and might create
+     *             a different kind of PluralRules instance;
+     *             use one of the constructors to create a new instance instead.
      */
     void setLocale(const Locale& locale, UErrorCode& status);