• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--- libicu/ndk_headers/unicode/ucol.h	2024-03-08 16:39:44.550050707 +0000
2+++ libicu/ndk_headers/unicode/ucol.h	2024-03-08 16:39:51.262182329 +0000
3@@ -73,7 +73,7 @@
4  * Possible values for a comparison result
5  * \xrefitem stable "Stable" "Stable List" ICU 2.0
6  */
7-typedef enum {
8+typedef enum UCollationResult : int32_t {
9   /** string a == string b */
10   UCOL_EQUAL    = 0,
11   /** string a > string b */
12@@ -89,7 +89,7 @@
13  * value for that locale
14  * \xrefitem stable "Stable" "Stable List" ICU 2.0
15  */
16-typedef enum {
17+typedef enum UColAttributeValue : int32_t {
18   /** accepted by most attributes */
19   UCOL_DEFAULT = -1,
20
21@@ -146,7 +146,7 @@
22  * @see UScriptCode
23  * \xrefitem stable "Stable" "Stable List" ICU 4.8
24  */
25- typedef enum {
26+ typedef enum UColReorderCode : int32_t {
27    /**
28     * A special reordering code that is used to specify the default
29     * reordering codes for a locale.
30@@ -242,7 +242,7 @@
31  * value, as well as the values specific to each one.
32  * \xrefitem stable "Stable" "Stable List" ICU 2.0
33  */
34-typedef enum {
35+typedef enum UColAttribute : int32_t {
36      /** Attribute for direction of secondary weights - used in Canadian French.
37       * Acceptable values are UCOL_ON, which results in secondary weights
38       * being considered backwards and UCOL_OFF which treats secondary
39@@ -366,25 +366,6 @@
40 #endif  // U_FORCE_HIDE_DEPRECATED_API
41 } UColAttribute;
42
43-/** Options for retrieving the rule string
44- *  \xrefitem stable "Stable" "Stable List" ICU 2.0
45- */
46-typedef enum {
47-  /**
48-   * Retrieves the tailoring rules only.
49-   * Same as calling the version of getRules() without UColRuleOption.
50-   * \xrefitem stable "Stable" "Stable List" ICU 2.0
51-   */
52-  UCOL_TAILORING_ONLY,
53-  /**
54-   * Retrieves the "UCA rules" concatenated with the tailoring rules.
55-   * The "UCA rules" are an <i>approximation</i> of the root collator's sort order.
56-   * They are almost never used or useful at runtime and can be removed from the data.
57-   * See https://unicode-org.github.io/icu/userguide/collation/customization#building-on-existing-locales
58-   * \xrefitem stable "Stable" "Stable List" ICU 2.0
59-   */
60-  UCOL_FULL_RULES
61-} UColRuleOption ;
62
63 /**
64  * Open a UCollator for comparing strings.
65@@ -888,7 +869,7 @@
66  * depends on them having these numbers
67  * \xrefitem stable "Stable" "Stable List" ICU 2.0
68  */
69-typedef enum {
70+typedef enum UColBoundMode : int32_t {
71   /** lower bound */
72   UCOL_BOUND_LOWER = 0,
73   /** upper bound that will match strings of exact size */
74