mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*
|
||||
******************************************************************************
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
#include "unicode/fmtable.h"
|
||||
#include "unicode/fieldpos.h"
|
||||
#include "standardplural.h"
|
||||
#include "visibledigits.h"
|
||||
#include "uassert.h"
|
||||
#include "number_decimalquantity.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
|
|
@ -149,15 +149,15 @@ StandardPlural::Form QuantityFormatter::selectPlural(
|
|||
return StandardPlural::OTHER;
|
||||
}
|
||||
UnicodeString pluralKeyword;
|
||||
VisibleDigitsWithExponent digits;
|
||||
const DecimalFormat *decFmt = dynamic_cast<const DecimalFormat *>(&fmt);
|
||||
if (decFmt != NULL) {
|
||||
decFmt->initVisibleDigitsWithExponent(number, digits, status);
|
||||
number::impl::DecimalQuantity dq;
|
||||
decFmt->formatToDecimalQuantity(number, dq, status);
|
||||
if (U_FAILURE(status)) {
|
||||
return StandardPlural::OTHER;
|
||||
}
|
||||
pluralKeyword = rules.select(digits);
|
||||
decFmt->format(digits, formattedNumber, pos, status);
|
||||
pluralKeyword = rules.select(dq);
|
||||
decFmt->format(number, formattedNumber, pos, status);
|
||||
} else {
|
||||
if (number.getType() == Formattable::kDouble) {
|
||||
pluralKeyword = rules.select(number.getDouble());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue