mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +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
|
||||
/*
|
||||
*******************************************************************************
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*******************************************************************************
|
||||
* file name: udatpg.h
|
||||
* encoding: US-ASCII
|
||||
* encoding: UTF-8
|
||||
* tab size: 8 (not used)
|
||||
* indentation:4
|
||||
*
|
||||
|
|
@ -86,8 +86,8 @@ typedef enum UDateTimePatternField {
|
|||
/** @stable ICU 3.8 */
|
||||
UDATPG_ZONE_FIELD,
|
||||
|
||||
// Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API,
|
||||
// it is needed for layout of DateTimePatternGenerator object.
|
||||
/* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API,
|
||||
* it is needed for layout of DateTimePatternGenerator object. */
|
||||
/**
|
||||
* One more than the highest normal UDateTimePatternField value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
|
|
@ -95,6 +95,21 @@ typedef enum UDateTimePatternField {
|
|||
UDATPG_FIELD_COUNT
|
||||
} UDateTimePatternField;
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Field display name width constants for udatpg_getFieldDisplayName().
|
||||
* @draft ICU 61
|
||||
*/
|
||||
typedef enum UDateTimePGDisplayWidth {
|
||||
/** @draft ICU 61 */
|
||||
UDATPG_WIDE,
|
||||
/** @draft ICU 61 */
|
||||
UDATPG_ABBREVIATED,
|
||||
/** @draft ICU 61 */
|
||||
UDATPG_NARROW
|
||||
} UDateTimePGDisplayWidth;
|
||||
#endif // U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* Masks to control forcing the length of specified fields in the returned
|
||||
* pattern to match those in the skeleton (when this would not happen
|
||||
|
|
@ -410,12 +425,14 @@ udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg,
|
|||
|
||||
/**
|
||||
* Getter corresponding to setAppendItemNames. Values below 0 or at or above
|
||||
* UDATPG_FIELD_COUNT are illegal arguments.
|
||||
* UDATPG_FIELD_COUNT are illegal arguments. Note: The more general function
|
||||
* for getting date/time field display names is udatpg_getFieldDisplayName.
|
||||
*
|
||||
* @param dtpg a pointer to UDateTimePatternGenerator.
|
||||
* @param field UDateTimePatternField, such as UDATPG_ERA_FIELD
|
||||
* @param pLength A pointer that will receive the length of the name for field.
|
||||
* @return name for field
|
||||
* @see udatpg_getFieldDisplayName
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
U_STABLE const UChar * U_EXPORT2
|
||||
|
|
@ -423,6 +440,40 @@ udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
|
|||
UDateTimePatternField field,
|
||||
int32_t *pLength);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* The general interface to get a display name for a particular date/time field,
|
||||
* in one of several possible display widths.
|
||||
*
|
||||
* @param dtpg
|
||||
* A pointer to the UDateTimePatternGenerator object with the localized
|
||||
* display names.
|
||||
* @param field
|
||||
* The desired UDateTimePatternField, such as UDATPG_ERA_FIELD.
|
||||
* @param width
|
||||
* The desired UDateTimePGDisplayWidth, such as UDATPG_ABBREVIATED.
|
||||
* @param fieldName
|
||||
* A pointer to a buffer to receive the NULL-terminated display name. If the name
|
||||
* fits into fieldName but cannot be NULL-terminated (length == capacity) then
|
||||
* the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the name doesn't
|
||||
* fit into fieldName then the error code is set to U_BUFFER_OVERFLOW_ERROR.
|
||||
* @param capacity
|
||||
* The size of fieldName (in UChars).
|
||||
* @param pErrorCode
|
||||
* A pointer to a UErrorCode to receive any errors
|
||||
* @return
|
||||
* The full length of the name; if greater than capacity, fieldName contains a
|
||||
* truncated result.
|
||||
* @draft ICU 61
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
udatpg_getFieldDisplayName(const UDateTimePatternGenerator *dtpg,
|
||||
UDateTimePatternField field,
|
||||
UDateTimePGDisplayWidth width,
|
||||
UChar *fieldName, int32_t capacity,
|
||||
UErrorCode *pErrorCode);
|
||||
#endif // U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* The DateTimeFormat is a message format pattern used to compose date and
|
||||
* time patterns. The default pattern in the root locale is "{1} {0}", where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue