]> granicus.if.org Git - icu/commitdiff
ICU-8610 Small fixes to API docs for C++ number skeletons.
authorShane Carr <shane@unicode.org>
Thu, 29 Mar 2018 00:47:26 +0000 (00:47 +0000)
committerShane Carr <shane@unicode.org>
Thu, 29 Mar 2018 00:47:26 +0000 (00:47 +0000)
X-SVN-Rev: 41169

icu4c/source/i18n/unicode/numberformatter.h

index 21e42c11b0d660a991a40ae139d66c79198c39fd..51ead000cf4c1d8f2d71bf71c1f8d9f73718764e 100644 (file)
@@ -1884,16 +1884,13 @@ class U_I18N_API NumberFormatterSettings {
     /**
      * Creates a skeleton string representation of this number formatter. A skeleton string is a
      * locale-agnostic serialized form of a number formatter.
-     * <p>
+     *
      * Not all options are capable of being represented in the skeleton string; for example, a
-     * DecimalFormatSymbols object. If any such option is encountered, an
-     * {@link UnsupportedOperationException} is thrown.
-     * <p>
+     * DecimalFormatSymbols object. If any such option is encountered, the error code is set to
+     * U_UNSUPPORTED_ERROR.
+     *
      * The returned skeleton is in normalized form, such that two number formatters with equivalent
      * behavior should produce the same skeleton.
-     * <p>
-     * Sets an error code if the number formatter has an option that cannot be represented in a skeleton
-     * string.
      *
      * @return A number skeleton string with behavior corresponding to this number formatter.
      * @draft ICU 62
@@ -2322,8 +2319,9 @@ class U_I18N_API NumberFormatter final {
      *
      * @param skeleton
      *            The skeleton string off of which to base this NumberFormatter.
+     * @param status
+     *            Set to U_NUMBER_SKELETON_SYNTAX_ERROR if the skeleton was invalid.
      * @return An UnlocalizedNumberFormatter, to be used for chaining.
-     * @throws SkeletonSyntaxException If the given string is not a valid number formatting skeleton.
      * @draft ICU 62
      */
     static UnlocalizedNumberFormatter fromSkeleton(const UnicodeString& skeleton, UErrorCode& status);