From a5096d30753f46c2be9249a3e3736d64d69fe2fe Mon Sep 17 00:00:00 2001 From: Shane Carr Date: Thu, 29 Mar 2018 00:47:26 +0000 Subject: [PATCH] ICU-8610 Small fixes to API docs for C++ number skeletons. X-SVN-Rev: 41169 --- icu4c/source/i18n/unicode/numberformatter.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/icu4c/source/i18n/unicode/numberformatter.h b/icu4c/source/i18n/unicode/numberformatter.h index 21e42c11b0d..51ead000cf4 100644 --- a/icu4c/source/i18n/unicode/numberformatter.h +++ b/icu4c/source/i18n/unicode/numberformatter.h @@ -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. - *

+ * * 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. - *

+ * 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. - *

- * 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); -- 2.40.0