mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 15:05:53 +00:00
ICU-12420 deprecate COUNT/LIMIT constants whose value may change
X-SVN-Rev: 39164
This commit is contained in:
parent
4bf12725a1
commit
c84e233733
29 changed files with 509 additions and 126 deletions
|
@ -159,7 +159,11 @@ typedef enum {
|
|||
UPLUG_REASON_QUERY = 0, /**< The plugin is being queried for info. **/
|
||||
UPLUG_REASON_LOAD = 1, /**< The plugin is being loaded. **/
|
||||
UPLUG_REASON_UNLOAD = 2, /**< The plugin is being unloaded. **/
|
||||
UPLUG_REASON_COUNT /**< count of known reasons **/
|
||||
/**
|
||||
* Number of known reasons.
|
||||
* @internal The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UPLUG_REASON_COUNT
|
||||
} UPlugReason;
|
||||
|
||||
|
||||
|
@ -175,7 +179,11 @@ typedef enum {
|
|||
UPLUG_LEVEL_UNKNOWN = 1, /**< The plugin is waiting to be installed. **/
|
||||
UPLUG_LEVEL_LOW = 2, /**< The plugin must be called before u_init completes **/
|
||||
UPLUG_LEVEL_HIGH = 3, /**< The plugin can run at any time. **/
|
||||
UPLUG_LEVEL_COUNT /**< count of known reasons **/
|
||||
/**
|
||||
* Number of known levels.
|
||||
* @internal The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UPLUG_LEVEL_COUNT
|
||||
} UPlugLevel;
|
||||
|
||||
/**
|
||||
|
|
|
@ -720,9 +720,13 @@ typedef enum UBiDiReorderingMode {
|
|||
* <code>UBIDI_REORDER_NUMBERS_SPECIAL</code> Bidi algorithm.
|
||||
* @stable ICU 3.6 */
|
||||
UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL,
|
||||
/** Number of values for reordering mode.
|
||||
* @stable ICU 3.6 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Number of values for reordering mode.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UBIDI_REORDER_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UBiDiReorderingMode;
|
||||
|
||||
/**
|
||||
|
@ -1961,13 +1965,19 @@ U_STABLE int32_t U_EXPORT2
|
|||
ubidi_getResultLength(const UBiDi *pBiDi);
|
||||
|
||||
U_CDECL_BEGIN
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* value returned by <code>UBiDiClassCallback</code> callbacks when
|
||||
* Value returned by <code>UBiDiClassCallback</code> callbacks when
|
||||
* there is no need to override the standard Bidi class for a given code point.
|
||||
*
|
||||
* This constant is deprecated; use u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS)+1 instead.
|
||||
*
|
||||
* @see UBiDiClassCallback
|
||||
* @stable ICU 3.6
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
#define U_BIDI_CLASS_DEFAULT U_CHAR_DIRECTION_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/**
|
||||
* Callback type declaration for overriding default Bidi class values with
|
||||
|
@ -1983,8 +1993,8 @@ U_CDECL_BEGIN
|
|||
*
|
||||
* @return The directional property / Bidi class for the given code point
|
||||
* <code>c</code> if the default class has been overridden, or
|
||||
* <code>#U_BIDI_CLASS_DEFAULT</code> if the standard Bidi class value
|
||||
* for <code>c</code> is to be used.
|
||||
* <code>#U_BIDI_CLASS_DEFAULT=u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS)+1</code>
|
||||
* if the standard Bidi class value for <code>c</code> is to be used.
|
||||
* @see ubidi_setClassCallback
|
||||
* @see ubidi_getClassCallback
|
||||
* @stable ICU 3.6
|
||||
|
@ -1997,8 +2007,8 @@ U_CDECL_END
|
|||
/**
|
||||
* Retrieve the Bidi class for a given code point.
|
||||
* <p>If a <code>#UBiDiClassCallback</code> callback is defined and returns a
|
||||
* value other than <code>#U_BIDI_CLASS_DEFAULT</code>, that value is used;
|
||||
* otherwise the default class determination mechanism is invoked.</p>
|
||||
* value other than <code>#U_BIDI_CLASS_DEFAULT=u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS)+1</code>,
|
||||
* that value is used; otherwise the default class determination mechanism is invoked.</p>
|
||||
*
|
||||
* @param pBiDi is the paragraph <code>UBiDi</code> object.
|
||||
*
|
||||
|
|
|
@ -116,8 +116,12 @@ typedef enum UBreakIteratorType {
|
|||
* @deprecated ICU 2.8 Use the word break iterator for titlecasing for Unicode 4 and later.
|
||||
*/
|
||||
UBRK_TITLE = 4,
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
UBRK_COUNT = 5
|
||||
/**
|
||||
* One more than the highest normal UBreakIteratorType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UBRK_COUNT = 5
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UBreakIteratorType;
|
||||
|
||||
/** Value indicating all text boundaries have been returned.
|
||||
|
@ -132,7 +136,10 @@ typedef enum UBreakIteratorType {
|
|||
* word, to allow for further subdivisions of a category in future releases.
|
||||
* Applications should check for tag values falling within the range, rather
|
||||
* than for single individual values.
|
||||
* @stable ICU 2.2
|
||||
*
|
||||
* The numeric values of all of these constants are stable (will not change).
|
||||
*
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UWordBreak {
|
||||
/** Tag value for "words" that do not fit into any of other categories.
|
||||
|
@ -165,7 +172,10 @@ typedef enum UWordBreak {
|
|||
* word, to allow for further subdivisions of a category in future releases.
|
||||
* Applications should check for tag values falling within the range, rather
|
||||
* than for single individual values.
|
||||
* @stable ICU 2.8
|
||||
*
|
||||
* The numeric values of all of these constants are stable (will not change).
|
||||
*
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
typedef enum ULineBreakTag {
|
||||
/** Tag value for soft line breaks, positions at which a line break
|
||||
|
@ -187,7 +197,10 @@ typedef enum ULineBreakTag {
|
|||
* sentence, to allow for further subdivisions of a category in future releases.
|
||||
* Applications should check for tag values falling within the range, rather
|
||||
* than for single individual values.
|
||||
* @stable ICU 2.8
|
||||
*
|
||||
* The numeric values of all of these constants are stable (will not change).
|
||||
*
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
typedef enum USentenceBreakTag {
|
||||
/** Tag value for for sentences ending with a sentence terminator
|
||||
|
|
|
@ -429,8 +429,13 @@ typedef enum UProperty {
|
|||
*/
|
||||
UCHAR_EMOJI_MODIFIER_BASE=60,
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
/** One more than the last constant for binary Unicode properties. @stable ICU 2.1 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the last constant for binary Unicode properties.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCHAR_BINARY_LIMIT=61,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/** Enumerated property Bidi_Class.
|
||||
Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */
|
||||
|
@ -517,8 +522,13 @@ typedef enum UProperty {
|
|||
(http://www.unicode.org/reports/tr9/)
|
||||
Returns UBidiPairedBracketType values. @stable ICU 52 */
|
||||
UCHAR_BIDI_PAIRED_BRACKET_TYPE=0x1015,
|
||||
/** One more than the last constant for enumerated/integer Unicode properties. @stable ICU 2.2 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the last constant for enumerated/integer Unicode properties.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCHAR_INT_LIMIT=0x1016,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/** Bitmask property General_Category_Mask.
|
||||
This is the General_Category property returned as a bit mask.
|
||||
|
@ -531,16 +541,26 @@ typedef enum UProperty {
|
|||
UCHAR_GENERAL_CATEGORY_MASK=0x2000,
|
||||
/** First constant for bit-mask Unicode properties. @stable ICU 2.4 */
|
||||
UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK,
|
||||
/** One more than the last constant for bit-mask Unicode properties. @stable ICU 2.4 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the last constant for bit-mask Unicode properties.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCHAR_MASK_LIMIT=0x2001,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/** Double property Numeric_Value.
|
||||
Corresponds to u_getNumericValue. @stable ICU 2.4 */
|
||||
UCHAR_NUMERIC_VALUE=0x3000,
|
||||
/** First constant for double Unicode properties. @stable ICU 2.4 */
|
||||
UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE,
|
||||
/** One more than the last constant for double Unicode properties. @stable ICU 2.4 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the last constant for double Unicode properties.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCHAR_DOUBLE_LIMIT=0x3001,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/** String property Age.
|
||||
Corresponds to u_charAge. @stable ICU 2.4 */
|
||||
|
@ -592,8 +612,13 @@ typedef enum UProperty {
|
|||
/** String property Bidi_Paired_Bracket (new in Unicode 6.3).
|
||||
Corresponds to u_getBidiPairedBracket. @stable ICU 52 */
|
||||
UCHAR_BIDI_PAIRED_BRACKET=0x400D,
|
||||
/** One more than the last constant for string Unicode properties. @stable ICU 2.4 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the last constant for string Unicode properties.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCHAR_STRING_LIMIT=0x400E,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/** Miscellaneous property Script_Extensions (new in Unicode 6.0).
|
||||
Some characters are commonly used in multiple scripts.
|
||||
|
@ -603,9 +628,14 @@ typedef enum UProperty {
|
|||
UCHAR_SCRIPT_EXTENSIONS=0x7000,
|
||||
/** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */
|
||||
UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS,
|
||||
/** One more than the last constant for Unicode properties with unusual value types.
|
||||
* @stable ICU 4.6 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the last constant for Unicode properties with unusual value types.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCHAR_OTHER_PROPERTY_LIMIT=0x7001,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */
|
||||
UCHAR_INVALID_CODE = -1
|
||||
} UProperty;
|
||||
|
@ -686,7 +716,13 @@ typedef enum UCharCategory
|
|||
U_INITIAL_PUNCTUATION = 28,
|
||||
/** Pf @stable ICU 2.0 */
|
||||
U_FINAL_PUNCTUATION = 29,
|
||||
/** One higher than the last enum UCharCategory constant. @stable ICU 2.0 */
|
||||
/**
|
||||
* One higher than the last enum UCharCategory constant.
|
||||
* This numeric value is stable (will not change), see
|
||||
* http://www.unicode.org/policies/stability_policy.html#Property_Value
|
||||
*
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CHAR_CATEGORY_COUNT
|
||||
} UCharCategory;
|
||||
|
||||
|
@ -860,8 +896,15 @@ typedef enum UCharDirection {
|
|||
U_RIGHT_TO_LEFT_ISOLATE = 21,
|
||||
/** PDI @stable ICU 52 */
|
||||
U_POP_DIRECTIONAL_ISOLATE = 22,
|
||||
/** @stable ICU 2.0 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest UCharDirection value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_CHAR_DIRECTION_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UCharDirection;
|
||||
|
||||
/**
|
||||
|
@ -883,8 +926,15 @@ typedef enum UBidiPairedBracketType {
|
|||
U_BPT_OPEN,
|
||||
/** Close paired bracket. @stable ICU 52 */
|
||||
U_BPT_CLOSE,
|
||||
/** @stable ICU 52 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UBidiPairedBracketType value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_PAIRED_BRACKET_TYPE).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_BPT_COUNT /* 3 */
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UBidiPairedBracketType;
|
||||
|
||||
/**
|
||||
|
@ -1599,8 +1649,15 @@ enum UBlockCode {
|
|||
/** @stable ICU 58 */
|
||||
UBLOCK_TANGUT_COMPONENTS = 273, /*[18800]*/
|
||||
|
||||
/** @stable ICU 2.0 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UBlockCode value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_BLOCK).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UBLOCK_COUNT = 274,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/** @stable ICU 2.0 */
|
||||
UBLOCK_INVALID_CODE=-1
|
||||
|
@ -1629,7 +1686,15 @@ typedef enum UEastAsianWidth {
|
|||
U_EA_FULLWIDTH, /*[F]*/
|
||||
U_EA_NARROW, /*[Na]*/
|
||||
U_EA_WIDE, /*[W]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UEastAsianWidth value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_EAST_ASIAN_WIDTH).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_EA_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UEastAsianWidth;
|
||||
|
||||
/**
|
||||
|
@ -1658,8 +1723,13 @@ typedef enum UCharNameChoice {
|
|||
U_EXTENDED_CHAR_NAME = U_UNICODE_CHAR_NAME+2,
|
||||
/** Corrected name from NameAliases.txt. @stable ICU 4.4 */
|
||||
U_CHAR_NAME_ALIAS,
|
||||
/** @stable ICU 2.0 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UCharNameChoice value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_CHAR_NAME_CHOICE_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UCharNameChoice;
|
||||
|
||||
/**
|
||||
|
@ -1678,7 +1748,13 @@ typedef enum UCharNameChoice {
|
|||
typedef enum UPropertyNameChoice {
|
||||
U_SHORT_PROPERTY_NAME,
|
||||
U_LONG_PROPERTY_NAME,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UPropertyNameChoice value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_PROPERTY_NAME_CHOICE_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UPropertyNameChoice;
|
||||
|
||||
/**
|
||||
|
@ -1712,7 +1788,15 @@ typedef enum UDecompositionType {
|
|||
U_DT_SUPER, /*[sup]*/
|
||||
U_DT_VERTICAL, /*[vert]*/
|
||||
U_DT_WIDE, /*[wide]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UDecompositionType value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_DECOMPOSITION_TYPE).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_DT_COUNT /* 18 */
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDecompositionType;
|
||||
|
||||
/**
|
||||
|
@ -1734,7 +1818,15 @@ typedef enum UJoiningType {
|
|||
U_JT_LEFT_JOINING, /*[L]*/
|
||||
U_JT_RIGHT_JOINING, /*[R]*/
|
||||
U_JT_TRANSPARENT, /*[T]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UJoiningType value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_TYPE).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_JT_COUNT /* 6 */
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UJoiningType;
|
||||
|
||||
/**
|
||||
|
@ -1840,7 +1932,15 @@ typedef enum UJoiningGroup {
|
|||
U_JG_AFRICAN_FEH, /**< @stable ICU 58 */
|
||||
U_JG_AFRICAN_NOON, /**< @stable ICU 58 */
|
||||
U_JG_AFRICAN_QAF, /**< @stable ICU 58 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UJoiningGroup value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_GROUP).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_JG_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UJoiningGroup;
|
||||
|
||||
/**
|
||||
|
@ -1882,7 +1982,15 @@ typedef enum UGraphemeClusterBreak {
|
|||
U_GCB_GLUE_AFTER_ZWJ = 16, /*[GAZ]*/
|
||||
/** @stable ICU 58 */
|
||||
U_GCB_ZWJ = 17, /*[ZWJ]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UGraphemeClusterBreak value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_GRAPHEME_CLUSTER_BREAK).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_GCB_COUNT = 18
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UGraphemeClusterBreak;
|
||||
|
||||
/**
|
||||
|
@ -1935,7 +2043,15 @@ typedef enum UWordBreakValues {
|
|||
U_WB_GLUE_AFTER_ZWJ = 20, /*[GAZ]*/
|
||||
/** @stable ICU 58 */
|
||||
U_WB_ZWJ = 21, /*[ZWJ]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UWordBreakValues value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_WORD_BREAK).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_WB_COUNT = 22
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UWordBreakValues;
|
||||
|
||||
/**
|
||||
|
@ -1966,7 +2082,15 @@ typedef enum USentenceBreak {
|
|||
U_SB_EXTEND = 12, /*[EX]*/
|
||||
U_SB_LF = 13, /*[LF]*/
|
||||
U_SB_SCONTINUE = 14, /*[SC]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal USentenceBreak value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_SENTENCE_BREAK).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_SB_COUNT = 15
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} USentenceBreak;
|
||||
|
||||
/**
|
||||
|
@ -2041,7 +2165,15 @@ typedef enum ULineBreak {
|
|||
U_LB_E_MODIFIER = 41, /*[EM]*/
|
||||
/** @stable ICU 58 */
|
||||
U_LB_ZWJ = 42, /*[ZWJ]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal ULineBreak value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_LINE_BREAK).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_LB_COUNT = 43
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} ULineBreak;
|
||||
|
||||
/**
|
||||
|
@ -2061,7 +2193,15 @@ typedef enum UNumericType {
|
|||
U_NT_DECIMAL, /*[de]*/
|
||||
U_NT_DIGIT, /*[di]*/
|
||||
U_NT_NUMERIC, /*[nu]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UNumericType value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_NUMERIC_TYPE).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_NT_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UNumericType;
|
||||
|
||||
/**
|
||||
|
@ -2083,7 +2223,15 @@ typedef enum UHangulSyllableType {
|
|||
U_HST_TRAILING_JAMO, /*[T]*/
|
||||
U_HST_LV_SYLLABLE, /*[LV]*/
|
||||
U_HST_LVT_SYLLABLE, /*[LVT]*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UHangulSyllableType value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_HANGUL_SYLLABLE_TYPE).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_HST_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UHangulSyllableType;
|
||||
|
||||
/**
|
||||
|
|
|
@ -943,8 +943,13 @@ typedef enum UConverterUnicodeSet {
|
|||
UCNV_ROUNDTRIP_SET,
|
||||
/** Select the set of Unicode code points with roundtrip or fallback mappings. @stable ICU 4.0 */
|
||||
UCNV_ROUNDTRIP_AND_FALLBACK_SET,
|
||||
/** Number of UConverterUnicodeSet selectors. @stable ICU 2.6 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Number of UConverterUnicodeSet selectors.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCNV_SET_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UConverterUnicodeSet;
|
||||
|
||||
|
||||
|
|
|
@ -52,11 +52,13 @@ enum UCurrencyUsage {
|
|||
* @stable ICU 54
|
||||
*/
|
||||
UCURR_USAGE_CASH=1,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One higher than the last enum UCurrencyUsage constant.
|
||||
* @stable ICU 54
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCURR_USAGE_COUNT=2
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
typedef enum UCurrencyUsage UCurrencyUsage;
|
||||
|
||||
|
|
|
@ -410,8 +410,13 @@ typedef enum UDataFileAccess {
|
|||
UDATA_PACKAGES_FIRST,
|
||||
/** ICU does not access the file system for data loading. @stable ICU 3.4 */
|
||||
UDATA_NO_FILES,
|
||||
/** Number of real UDataFileAccess values. @stable ICU 3.4 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Number of real UDataFileAccess values.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDATA_FILE_ACCESS_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDataFileAccess;
|
||||
|
||||
/**
|
||||
|
|
|
@ -350,10 +350,14 @@ typedef enum {
|
|||
* @deprecated ICU 2.8
|
||||
*/
|
||||
ULOC_REQUESTED_LOCALE = 2,
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
ULOC_DATA_LOCALE_TYPE_LIMIT = 3
|
||||
} ULocDataLocaleType ;
|
||||
/**
|
||||
* One more than the highest normal ULocDataLocaleType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
ULOC_DATA_LOCALE_TYPE_LIMIT = 3
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} ULocDataLocaleType;
|
||||
|
||||
#ifndef U_HIDE_SYSTEM_API
|
||||
/**
|
||||
|
|
|
@ -122,9 +122,13 @@ typedef enum {
|
|||
RES_INT_VECTOR=URES_INT_VECTOR,
|
||||
/** @deprecated ICU 2.6 Not used. */
|
||||
RES_RESERVED=15,
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* One more than the highest normal UResType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
URES_LIMIT = 16
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UResType;
|
||||
|
||||
/*
|
||||
|
|
|
@ -444,13 +444,15 @@ typedef enum UScriptCode {
|
|||
/** @stable ICU 58 */
|
||||
USCRIPT_SYMBOLS_EMOJI = 174,/* Zsye */
|
||||
|
||||
/**
|
||||
* One higher than the last script code constant.
|
||||
* This value increases as constants for script codes are added.
|
||||
*
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
USCRIPT_CODE_LIMIT = 175
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UScriptCode value.
|
||||
* The highest value is available via u_getIntPropertyMaxValue(UCHAR_SCRIPT).
|
||||
*
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
USCRIPT_CODE_LIMIT = 175
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UScriptCode;
|
||||
|
||||
/**
|
||||
|
|
|
@ -198,11 +198,13 @@ typedef enum USetSpanCondition {
|
|||
* @stable ICU 3.8
|
||||
*/
|
||||
USET_SPAN_SIMPLE = 2,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the last span condition.
|
||||
* @stable ICU 3.8
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
USET_SPAN_CONDITION_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} USetSpanCondition;
|
||||
|
||||
enum {
|
||||
|
|
|
@ -66,7 +66,13 @@ typedef enum UTraceFunctionNumber {
|
|||
UTRACE_FUNCTION_START=0,
|
||||
UTRACE_U_INIT=UTRACE_FUNCTION_START,
|
||||
UTRACE_U_CLEANUP,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal collation trace location.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UTRACE_FUNCTION_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
UTRACE_CONVERSION_START=0x1000,
|
||||
UTRACE_UCNV_OPEN=UTRACE_CONVERSION_START,
|
||||
|
@ -77,7 +83,13 @@ typedef enum UTraceFunctionNumber {
|
|||
UTRACE_UCNV_FLUSH_CACHE,
|
||||
UTRACE_UCNV_LOAD,
|
||||
UTRACE_UCNV_UNLOAD,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal collation trace location.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UTRACE_CONVERSION_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
UTRACE_COLLATION_START=0x2000,
|
||||
UTRACE_UCOL_OPEN=UTRACE_COLLATION_START,
|
||||
|
@ -89,7 +101,13 @@ typedef enum UTraceFunctionNumber {
|
|||
UTRACE_UCOL_STRCOLLITER,
|
||||
UTRACE_UCOL_OPEN_FROM_SHORT_STRING,
|
||||
UTRACE_UCOL_STRCOLLUTF8, /**< @stable ICU 50 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal collation trace location.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UTRACE_COLLATION_LIMIT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UTraceFunctionNumber;
|
||||
|
||||
/**
|
||||
|
|
|
@ -419,8 +419,13 @@ typedef enum UErrorCode {
|
|||
|
||||
U_PLUGIN_CHANGED_LEVEL_WARNING = -120, /**< A plugin caused a level change. May not be an error, but later plugins may not load. */
|
||||
|
||||
U_ERROR_WARNING_LIMIT, /**< This must always be the last warning value to indicate the limit for UErrorCode warnings (last warning code +1) */
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UErrorCode warning value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_ERROR_WARNING_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
U_ZERO_ERROR = 0, /**< No error, no warning. */
|
||||
|
||||
|
@ -456,9 +461,16 @@ typedef enum UErrorCode {
|
|||
U_USELESS_COLLATOR_ERROR = 29, /**< Collator is options only and no base is specified */
|
||||
U_NO_WRITE_PERMISSION = 30, /**< Attempt to modify read-only or constant data. */
|
||||
|
||||
U_STANDARD_ERROR_LIMIT, /**< This must always be the last value to indicate the limit for standard errors */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest standard error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_STANDARD_ERROR_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/*
|
||||
* the error code range 0x10000 0x10100 are reserved for Transliterator
|
||||
* Error codes in the range 0x10000 0x10100 are reserved for Transliterator.
|
||||
*/
|
||||
U_BAD_VARIABLE_DEFINITION=0x10000,/**< Missing '$' or duplicate variable name */
|
||||
U_PARSE_ERROR_START = 0x10000, /**< Start of Transliterator errors */
|
||||
|
@ -496,10 +508,16 @@ typedef enum UErrorCode {
|
|||
U_INTERNAL_TRANSLITERATOR_ERROR, /**< Internal transliterator system error */
|
||||
U_INVALID_ID, /**< A "::id" rule specifies an unknown transliterator */
|
||||
U_INVALID_FUNCTION, /**< A "&fn()" rule specifies an unknown transliterator */
|
||||
U_PARSE_ERROR_LIMIT, /**< The limit for Transliterator errors */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal Transliterator error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_PARSE_ERROR_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/*
|
||||
* the error code range 0x10100 0x10200 are reserved for formatting API parsing error
|
||||
* Error codes in the range 0x10100 0x10200 are reserved for the formatting API.
|
||||
*/
|
||||
U_UNEXPECTED_TOKEN=0x10100, /**< Syntax error in format pattern */
|
||||
U_FMT_PARSE_ERROR_START=0x10100, /**< Start of format library errors */
|
||||
|
@ -521,10 +539,16 @@ typedef enum UErrorCode {
|
|||
U_DEFAULT_KEYWORD_MISSING, /**< Missing DEFAULT rule in plural rules */
|
||||
U_DECIMAL_NUMBER_SYNTAX_ERROR, /**< Decimal number syntax error */
|
||||
U_FORMAT_INEXACT_ERROR, /**< Cannot format a number exactly and rounding mode is ROUND_UNNECESSARY @stable ICU 4.8 */
|
||||
U_FMT_PARSE_ERROR_LIMIT, /**< The limit for format library errors */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal formatting API error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_FMT_PARSE_ERROR_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/*
|
||||
* the error code range 0x10200 0x102ff are reserved for Break Iterator related error
|
||||
* Error codes in the range 0x10200 0x102ff are reserved for BreakIterator.
|
||||
*/
|
||||
U_BRK_INTERNAL_ERROR=0x10200, /**< An internal error (bug) was detected. */
|
||||
U_BRK_ERROR_START=0x10200, /**< Start of codes indicating Break Iterator failures */
|
||||
|
@ -541,10 +565,16 @@ typedef enum UErrorCode {
|
|||
U_BRK_RULE_EMPTY_SET, /**< Rule contains an empty Unicode Set. */
|
||||
U_BRK_UNRECOGNIZED_OPTION, /**< !!option in RBBI rules not recognized. */
|
||||
U_BRK_MALFORMED_RULE_TAG, /**< The {nnn} tag on a rule is mal formed */
|
||||
U_BRK_ERROR_LIMIT, /**< This must always be the last value to indicate the limit for Break Iterator failures */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal BreakIterator error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_BRK_ERROR_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/*
|
||||
* The error codes in the range 0x10300-0x103ff are reserved for regular expression related errrs
|
||||
* Error codes in the range 0x10300-0x103ff are reserved for regular expression related errors.
|
||||
*/
|
||||
U_REGEX_INTERNAL_ERROR=0x10300, /**< An internal error (bug) was detected. */
|
||||
U_REGEX_ERROR_START=0x10300, /**< Start of codes indicating Regexp failures */
|
||||
|
@ -571,10 +601,16 @@ typedef enum UErrorCode {
|
|||
U_REGEX_STOPPED_BY_CALLER, /**< Matching operation aborted by user callback fn. */
|
||||
U_REGEX_PATTERN_TOO_BIG, /**< Pattern exceeds limits on size or complexity. @stable ICU 55 */
|
||||
U_REGEX_INVALID_CAPTURE_GROUP_NAME, /**< Invalid capture group name. @stable ICU 55 */
|
||||
U_REGEX_ERROR_LIMIT=U_REGEX_STOPPED_BY_CALLER+3, /**< This must always be the last value to indicate the limit for regexp errors */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal regular expression error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_REGEX_ERROR_LIMIT=U_REGEX_STOPPED_BY_CALLER+3,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/*
|
||||
* The error code in the range 0x10400-0x104ff are reserved for IDNA related error codes
|
||||
* Error codes in the range 0x10400-0x104ff are reserved for IDNA related error codes.
|
||||
*/
|
||||
U_IDNA_PROHIBITED_ERROR=0x10400,
|
||||
U_IDNA_ERROR_START=0x10400,
|
||||
|
@ -586,7 +622,13 @@ typedef enum UErrorCode {
|
|||
U_IDNA_LABEL_TOO_LONG_ERROR,
|
||||
U_IDNA_ZERO_LENGTH_LABEL_ERROR,
|
||||
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal IDNA error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_IDNA_ERROR_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
/*
|
||||
* Aliases for StringPrep
|
||||
*/
|
||||
|
@ -595,14 +637,26 @@ typedef enum UErrorCode {
|
|||
U_STRINGPREP_CHECK_BIDI_ERROR = U_IDNA_CHECK_BIDI_ERROR,
|
||||
|
||||
/*
|
||||
* The error code in the range 0x10500-0x105ff are reserved for Plugin related error codes
|
||||
* Error codes in the range 0x10500-0x105ff are reserved for Plugin related error codes.
|
||||
*/
|
||||
U_PLUGIN_ERROR_START=0x10500, /**< Start of codes indicating plugin failures */
|
||||
U_PLUGIN_TOO_HIGH=0x10500, /**< The plugin's level is too high to be loaded right now. */
|
||||
U_PLUGIN_DIDNT_SET_LEVEL, /**< The plugin didn't call uplug_setPlugLevel in response to a QUERY */
|
||||
U_PLUGIN_ERROR_LIMIT, /**< This must always be the last value to indicate the limit for plugin errors */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal plug-in error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_PLUGIN_ERROR_LIMIT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
U_ERROR_LIMIT=U_PLUGIN_ERROR_LIMIT /**< This must always be the last value to indicate the limit for UErrorCode (last error code +1) */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal error code.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
U_ERROR_LIMIT=U_PLUGIN_ERROR_LIMIT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UErrorCode;
|
||||
|
||||
/* Use the following to determine if an UErrorCode represents */
|
||||
|
|
|
@ -272,9 +272,15 @@ public:
|
|||
* @stable ICU 3.6
|
||||
*/
|
||||
enum DtContextType {
|
||||
FORMAT,
|
||||
STANDALONE,
|
||||
DT_CONTEXT_COUNT
|
||||
FORMAT,
|
||||
STANDALONE,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal DtContextType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
DT_CONTEXT_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -282,17 +288,21 @@ public:
|
|||
* @stable ICU 3.6
|
||||
*/
|
||||
enum DtWidthType {
|
||||
ABBREVIATED,
|
||||
WIDE,
|
||||
NARROW,
|
||||
/**
|
||||
* Short width is currently only supported for weekday names.
|
||||
* @stable ICU 51
|
||||
*/
|
||||
SHORT,
|
||||
/**
|
||||
*/
|
||||
DT_WIDTH_COUNT = 4
|
||||
ABBREVIATED,
|
||||
WIDE,
|
||||
NARROW,
|
||||
/**
|
||||
* Short width is currently only supported for weekday names.
|
||||
* @stable ICU 51
|
||||
*/
|
||||
SHORT,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal DtWidthType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
DT_WIDTH_COUNT = 4
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -61,11 +61,13 @@ enum UMeasureFormatWidth {
|
|||
*/
|
||||
UMEASFMT_WIDTH_NUMERIC,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Count of values in this enum.
|
||||
* @stable ICU 53
|
||||
* One more than the highest normal UMeasureFormatWidth value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UMEASFMT_WIDTH_COUNT = 4
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
/** @stable ICU 53 */
|
||||
typedef enum UMeasureFormatWidth UMeasureFormatWidth;
|
||||
|
|
|
@ -56,7 +56,13 @@ enum URBNFRuleSetTag {
|
|||
URBNF_ORDINAL,
|
||||
URBNF_DURATION,
|
||||
URBNF_NUMBERING_SYSTEM,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal URBNFRuleSetTag value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
URBNF_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -76,11 +76,13 @@ typedef enum UDateRelativeUnit {
|
|||
*/
|
||||
UDAT_RELATIVE_YEARS,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Count of items in this enum.
|
||||
* @stable ICU 53
|
||||
* One more than the highest normal UDateRelativeUnit value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDAT_RELATIVE_UNIT_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateRelativeUnit;
|
||||
|
||||
/**
|
||||
|
@ -163,11 +165,13 @@ typedef enum UDateAbsoluteUnit {
|
|||
*/
|
||||
UDAT_ABSOLUTE_NOW,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Count of items in this enum.
|
||||
* @stable ICU 53
|
||||
* One more than the highest normal UDateAbsoluteUnit value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDAT_ABSOLUTE_UNIT_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateAbsoluteUnit;
|
||||
|
||||
/**
|
||||
|
@ -213,11 +217,13 @@ typedef enum UDateDirection {
|
|||
*/
|
||||
UDAT_DIRECTION_PLAIN,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Count of items in this enum.
|
||||
* @stable ICU 53
|
||||
* One more than the highest normal UDateDirection value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDAT_DIRECTION_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateDirection;
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,13 @@ public:
|
|||
UTIMEUNIT_HOUR,
|
||||
UTIMEUNIT_MINUTE,
|
||||
UTIMEUNIT_SECOND,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UTimeUnitFields value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UTIMEUNIT_FIELD_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -425,11 +425,13 @@ enum UCalendarDateFields {
|
|||
*/
|
||||
UCAL_IS_LEAP_MONTH,
|
||||
|
||||
/**
|
||||
* Field count
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UCalendarDateFields value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCAL_FIELD_COUNT,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/**
|
||||
* Field number indicating the
|
||||
|
|
|
@ -125,8 +125,13 @@ typedef enum {
|
|||
/** upper case sorts before lower case */
|
||||
UCOL_UPPER_FIRST = 25,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UColAttributeValue value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCOL_ATTRIBUTE_VALUE_COUNT
|
||||
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UColAttributeValue;
|
||||
|
||||
/**
|
||||
|
@ -193,12 +198,13 @@ typedef enum {
|
|||
* @stable ICU 4.8
|
||||
*/
|
||||
UCOL_REORDER_CODE_DIGIT = 0x1004,
|
||||
/**
|
||||
* The limit of the reorder codes. This is intended for use in range checking
|
||||
* and enumeration of the reorder codes.
|
||||
* @stable ICU 4.8
|
||||
*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UColReorderCode value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCOL_REORDER_CODE_LIMIT = 0x1005
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UColReorderCode;
|
||||
|
||||
/**
|
||||
|
@ -335,11 +341,13 @@ typedef enum {
|
|||
* @stable ICU 2.8
|
||||
*/
|
||||
UCOL_NUMERIC_COLLATION = UCOL_STRENGTH + 2,
|
||||
/**
|
||||
* The number of UColAttribute constants.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UColAttribute value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCOL_ATTRIBUTE_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UColAttribute;
|
||||
|
||||
/** Options for retrieving the rule string
|
||||
|
@ -1052,7 +1060,13 @@ typedef enum {
|
|||
UCOL_BOUND_UPPER = 1,
|
||||
/** upper bound that will match all the strings that have the same initial substring as the given string */
|
||||
UCOL_BOUND_UPPER_LONG = 2,
|
||||
UCOL_BOUND_VALUE_COUNT
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UColBoundMode value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UCOL_BOUND_VALUE_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UColBoundMode;
|
||||
|
||||
/**
|
||||
|
|
|
@ -789,16 +789,15 @@ typedef enum UDateFormatField {
|
|||
UDAT_TIME_SEPARATOR_FIELD = 37,
|
||||
#endif /* U_HIDE_INTERNAL_API */
|
||||
|
||||
/**
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Number of FieldPosition and UFieldPosition selectors for
|
||||
* DateFormat and UDateFormat.
|
||||
* Valid selectors range from 0 to UDAT_FIELD_COUNT-1.
|
||||
* This value is subject to change if new fields are defined
|
||||
* in the future.
|
||||
* @stable ICU 3.0
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDAT_FIELD_COUNT = 38
|
||||
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateFormatField;
|
||||
|
||||
|
||||
|
@ -904,11 +903,13 @@ typedef enum UDateFormatBooleanAttribute {
|
|||
*/
|
||||
UDAT_PARSE_MULTIPLE_PATTERNS_FOR_MATCH = 3,
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* count boolean date format constants
|
||||
* @stable ICU 53
|
||||
* One more than the highest normal UDateFormatBooleanAttribute value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDAT_BOOLEAN_ATTRIBUTE_COUNT = 4
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateFormatBooleanAttribute;
|
||||
|
||||
/**
|
||||
|
|
|
@ -85,8 +85,13 @@ typedef enum UDateTimePatternField {
|
|||
UDATPG_FRACTIONAL_SECOND_FIELD,
|
||||
/** @stable ICU 3.8 */
|
||||
UDATPG_ZONE_FIELD,
|
||||
/** @stable ICU 3.8 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UDateTimePatternField value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDATPG_FIELD_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateTimePatternField;
|
||||
|
||||
/**
|
||||
|
@ -122,8 +127,13 @@ typedef enum UDateTimePatternConflict {
|
|||
UDATPG_BASE_CONFLICT,
|
||||
/** @stable ICU 3.8 */
|
||||
UDATPG_CONFLICT,
|
||||
/** @stable ICU 3.8 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UDateTimePatternConflict value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDATPG_CONFLICT_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateTimePatternConflict;
|
||||
|
||||
/**
|
||||
|
|
|
@ -51,7 +51,13 @@ typedef enum UFormattableType {
|
|||
UFMT_ARRAY, /**< ufmt_countArray() and ufmt_getArray() will return the value. @see ufmt_getArrayItemByIndex */
|
||||
UFMT_INT64, /**< ufmt_getInt64() will return without conversion. @see ufmt_getInt64 */
|
||||
UFMT_OBJECT, /**< ufmt_getObject() will return without conversion. @see ufmt_getObject*/
|
||||
UFMT_COUNT /**< Count of defined UFormattableType values */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UFormattableType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UFMT_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UFormattableType;
|
||||
|
||||
|
||||
|
|
|
@ -49,8 +49,13 @@ typedef enum ULocaleDataExemplarSetType {
|
|||
ULOCDATA_ES_INDEX=2,
|
||||
/** Punctuation set @stable ICU 51 */
|
||||
ULOCDATA_ES_PUNCTUATION=3,
|
||||
/** One higher than the last valid type @stable ICU 3.4 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal ULocaleDataExemplarSetType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
ULOCDATA_ES_COUNT=4
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} ULocaleDataExemplarSetType;
|
||||
|
||||
/** The possible types of delimiters.
|
||||
|
@ -65,8 +70,13 @@ typedef enum ULocaleDataDelimiterType {
|
|||
ULOCDATA_ALT_QUOTATION_START = 2,
|
||||
/** Alternate quotation end @stable ICU 3.4 */
|
||||
ULOCDATA_ALT_QUOTATION_END = 3,
|
||||
/** One higher than the last valid type @stable ICU 3.4 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal ULocaleDataDelimiterType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
ULOCDATA_DELIMITER_COUNT = 4
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} ULocaleDataDelimiterType;
|
||||
|
||||
/**
|
||||
|
@ -191,7 +201,13 @@ typedef enum UMeasurementSystem {
|
|||
UMS_SI, /**< Measurement system specified by SI otherwise known as Metric system. @stable ICU 2.8 */
|
||||
UMS_US, /**< Measurement system followed in the United States of America. @stable ICU 2.8 */
|
||||
UMS_UK, /**< Mix of metric and imperial units used in Great Britain. @stable ICU 55 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UMeasurementSystem value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UMS_LIMIT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UMeasurementSystem;
|
||||
|
||||
/**
|
||||
|
|
|
@ -245,11 +245,13 @@ typedef enum UNumberFormatStyle {
|
|||
UNUM_CURRENCY_STANDARD=16,
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest number format style constant.
|
||||
* @stable ICU 4.8
|
||||
* One more than the highest normal UNumberFormatStyle value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UNUM_FORMAT_STYLE_COUNT=17,
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
/**
|
||||
* Default format
|
||||
|
@ -325,8 +327,13 @@ enum UCurrencySpacing {
|
|||
UNUM_CURRENCY_SURROUNDING_MATCH,
|
||||
/** @stable ICU 4.8 */
|
||||
UNUM_CURRENCY_INSERT,
|
||||
/** @stable ICU 4.8 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UCurrencySpacing value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UNUM_CURRENCY_SPACING_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
typedef enum UCurrencySpacing UCurrencySpacing; /**< @stable ICU 4.8 */
|
||||
|
||||
|
@ -359,8 +366,13 @@ typedef enum UNumberFormatFields {
|
|||
UNUM_PERMILL_FIELD,
|
||||
/** @stable ICU 49 */
|
||||
UNUM_SIGN_FIELD,
|
||||
/** @stable ICU 49 */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UNumberFormatFields value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UNUM_FIELD_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UNumberFormatFields;
|
||||
|
||||
|
||||
|
@ -1274,8 +1286,13 @@ typedef enum UNumberFormatSymbol {
|
|||
*/
|
||||
UNUM_EXPONENT_MULTIPLICATION_SYMBOL = 27,
|
||||
|
||||
/** count symbol constants */
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UNumberFormatSymbol value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UNUM_FORMAT_SYMBOL_COUNT = 28
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UNumberFormatSymbol;
|
||||
|
||||
/**
|
||||
|
|
|
@ -54,11 +54,13 @@ enum UPluralType {
|
|||
* @stable ICU 50
|
||||
*/
|
||||
UPLURAL_TYPE_ORDINAL,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Number of Plural rules types.
|
||||
* @stable ICU 50
|
||||
* One more than the highest normal UPluralType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UPLURAL_TYPE_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
};
|
||||
/**
|
||||
* @stable ICU 50
|
||||
|
|
|
@ -107,11 +107,13 @@ typedef enum URegionType {
|
|||
*/
|
||||
URGN_DEPRECATED,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Maximum value for this unumeration.
|
||||
* @stable ICU 51
|
||||
* One more than the highest normal URegionType value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
URGN_LIMIT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} URegionType;
|
||||
|
||||
#if !UCONFIG_NO_FORMATTING
|
||||
|
|
|
@ -60,11 +60,13 @@ typedef enum UDateRelativeDateTimeFormatterStyle {
|
|||
*/
|
||||
UDAT_STYLE_NARROW,
|
||||
|
||||
/**
|
||||
* The number of styles.
|
||||
* @stable ICU 54
|
||||
*/
|
||||
UDAT_STYLE_COUNT
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* One more than the highest normal UDateRelativeDateTimeFormatterStyle value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDAT_STYLE_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} UDateRelativeDateTimeFormatterStyle;
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
|
@ -164,11 +166,13 @@ typedef enum URelativeDateTimeUnit {
|
|||
* @draft ICU 57
|
||||
*/
|
||||
UDAT_REL_UNIT_SATURDAY,
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Count of URelativeDateTimeUnit values
|
||||
* @draft ICU 57
|
||||
* One more than the highest normal URelativeDateTimeUnit value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
UDAT_REL_UNIT_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} URelativeDateTimeUnit;
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
|
|
|
@ -190,11 +190,13 @@ typedef enum {
|
|||
*/
|
||||
USEARCH_ELEMENT_COMPARISON = 2,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Count of attribute types
|
||||
* @stable ICU 2.4
|
||||
* One more than the highest normal USearchAttribute value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
USEARCH_ATTRIBUTE_COUNT = 3
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} USearchAttribute;
|
||||
|
||||
/**
|
||||
|
@ -264,11 +266,13 @@ typedef enum {
|
|||
*/
|
||||
USEARCH_ANY_BASE_WEIGHT_IS_WILDCARD,
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Count of attribute values
|
||||
* @stable ICU 2.4
|
||||
* One more than the highest normal USearchAttributeValue value.
|
||||
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
|
||||
*/
|
||||
USEARCH_ATTRIBUTE_VALUE_COUNT
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
} USearchAttributeValue;
|
||||
|
||||
/* open and close ------------------------------------------------------ */
|
||||
|
|
Loading…
Add table
Reference in a new issue