number format support number grouping

Signed-off-by: sunyaozu <sunyaozu@huawei.com>
This commit is contained in:
sunyaozu 2023-04-06 14:38:29 +08:00
parent f495376750
commit d1e742d5ad

View File

@ -136,7 +136,7 @@ void NumberFormat::InitProperties()
numberFormat = numberFormat.precision(icu::number::Precision::maxFraction(DEFAULT_FRACTION_DIGITS));
}
if (!useGrouping.empty()) {
numberFormat.grouping((useGrouping == "true") ?
numberFormat = numberFormat.grouping((useGrouping == "true") ?
UNumberGroupingStrategy::UNUM_GROUPING_AUTO : UNumberGroupingStrategy::UNUM_GROUPING_OFF);
}
if (!currencySign.empty() || !signDisplayString.empty()) {