From 3eb414943efd16dfa845e6cec946bee475173ba7 Mon Sep 17 00:00:00 2001 From: Shane Carr Date: Wed, 9 May 2018 02:04:21 +0000 Subject: [PATCH] ICU-13662 Minor fixes after r41365. X-SVN-Rev: 41366 --- icu4c/source/i18n/number_fluent.cpp | 1 + icu4c/source/i18n/unicode/numberformatter.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/icu4c/source/i18n/number_fluent.cpp b/icu4c/source/i18n/number_fluent.cpp index a5e7f894baf..597df575870 100644 --- a/icu4c/source/i18n/number_fluent.cpp +++ b/icu4c/source/i18n/number_fluent.cpp @@ -787,6 +787,7 @@ void FormattedNumber::populateFieldPosition(FieldPosition& fieldPosition, UError return; } // in case any users were depending on the old behavior: + fieldPosition.setBeginIndex(0); fieldPosition.setEndIndex(0); fResults->string.nextFieldPosition(fieldPosition, status); } diff --git a/icu4c/source/i18n/unicode/numberformatter.h b/icu4c/source/i18n/unicode/numberformatter.h index 8904a308191..e44259c6e8c 100644 --- a/icu4c/source/i18n/unicode/numberformatter.h +++ b/icu4c/source/i18n/unicode/numberformatter.h @@ -1791,12 +1791,12 @@ class U_I18N_API NumberFormatterSettings { * numbering system. * *

- * Note: Calling this method will override any previously specified DecimalFormatSymbols - * or NumberingSystem. + * Note: The instance of DecimalFormatSymbols will be copied: changes made to the symbols object + * after passing it into the fluent chain will not be seen. * *

- * Note: Calling this method will override the NumberingSystem previously specified in - * {@link #symbols(NumberingSystem)}. + * Note: Calling this method will override any previously specified DecimalFormatSymbols + * or NumberingSystem. * *

* The default is to choose the symbols based on the locale specified in the fluent chain.