mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +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
|
||||
/*
|
||||
**********************************************************************
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
/**
|
||||
* \file
|
||||
* \brief C++ API: Formatter for measure objects.
|
||||
* \brief C++ API: Compatibility APIs for measure formatting.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -87,8 +87,9 @@ class ListFormatter;
|
|||
class DateFormat;
|
||||
|
||||
/**
|
||||
*
|
||||
* A formatter for measure objects.
|
||||
* <p><strong>IMPORTANT:</strong> New users are strongly encouraged to see if
|
||||
* numberformatter.h fits their use case. Although not deprecated, this header
|
||||
* is provided for backwards compatibility only.
|
||||
*
|
||||
* @see Format
|
||||
* @author Alan Liu
|
||||
|
|
@ -101,6 +102,9 @@ class U_I18N_API MeasureFormat : public Format {
|
|||
|
||||
/**
|
||||
* Constructor.
|
||||
* <p>
|
||||
* <strong>NOTE:</strong> New users are strongly encouraged to use
|
||||
* {@link icu::number::NumberFormatter} instead of NumberFormat.
|
||||
* @stable ICU 53
|
||||
*/
|
||||
MeasureFormat(
|
||||
|
|
@ -108,6 +112,9 @@ class U_I18N_API MeasureFormat : public Format {
|
|||
|
||||
/**
|
||||
* Constructor.
|
||||
* <p>
|
||||
* <strong>NOTE:</strong> New users are strongly encouraged to use
|
||||
* {@link icu::number::NumberFormatter} instead of NumberFormat.
|
||||
* @stable ICU 53
|
||||
*/
|
||||
MeasureFormat(
|
||||
|
|
@ -195,7 +202,7 @@ class U_I18N_API MeasureFormat : public Format {
|
|||
* formatted string is 3.5 meters per second.
|
||||
* @param measure The measure object. In above example, 3.5 meters.
|
||||
* @param perUnit The per unit. In above example, it is
|
||||
* *MeasureUnit::createSecond(status).
|
||||
* `*%MeasureUnit::createSecond(status)`.
|
||||
* @param appendTo formatted string appended here.
|
||||
* @param pos the field position.
|
||||
* @param status the error.
|
||||
|
|
@ -210,25 +217,26 @@ class U_I18N_API MeasureFormat : public Format {
|
|||
FieldPosition &pos,
|
||||
UErrorCode &status) const;
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Gets the display name of the specified {@link MeasureUnit} corresponding to the current
|
||||
* locale and format width.
|
||||
* @param unit The unit for which to get a display name.
|
||||
* @param status the error.
|
||||
* @return The display name in the locale and width specified in
|
||||
* {@link MeasureFormat#getInstance}, or null if there is no display name available
|
||||
* the MeasureFormat constructor, or null if there is no display name available
|
||||
* for the specified unit.
|
||||
*
|
||||
* @draft ICU 58
|
||||
* @stable ICU 58
|
||||
*/
|
||||
UnicodeString getUnitDisplayName(const MeasureUnit& unit, UErrorCode &status) const;
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
|
||||
/**
|
||||
* Return a formatter for CurrencyAmount objects in the given
|
||||
* locale.
|
||||
* <p>
|
||||
* <strong>NOTE:</strong> New users are strongly encouraged to use
|
||||
* {@link icu::number::NumberFormatter} instead of NumberFormat.
|
||||
* @param locale desired locale
|
||||
* @param ec input-output error code
|
||||
* @return a formatter object, or NULL upon error
|
||||
|
|
@ -240,6 +248,9 @@ class U_I18N_API MeasureFormat : public Format {
|
|||
/**
|
||||
* Return a formatter for CurrencyAmount objects in the default
|
||||
* locale.
|
||||
* <p>
|
||||
* <strong>NOTE:</strong> New users are strongly encouraged to use
|
||||
* {@link icu::number::NumberFormatter} instead of NumberFormat.
|
||||
* @param ec input-output error code
|
||||
* @return a formatter object, or NULL upon error
|
||||
* @stable ICU 3.0
|
||||
|
|
@ -337,7 +348,7 @@ class U_I18N_API MeasureFormat : public Format {
|
|||
const MeasureFormatCacheData *cache;
|
||||
const SharedNumberFormat *numberFormat;
|
||||
const SharedPluralRules *pluralRules;
|
||||
UMeasureFormatWidth width;
|
||||
UMeasureFormatWidth fWidth;
|
||||
|
||||
// Declared outside of MeasureFormatSharedData because ListFormatter
|
||||
// objects are relatively cheap to copy; therefore, they don't need to be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue