xref: /aosp_15_r20/external/icu/libandroidicu/include/unicode/ulocdata.h (revision 0e209d3975ff4a8c132096b14b0e9364a753506e)
1*0e209d39SAndroid Build Coastguard Worker // © 2016 and later: Unicode, Inc. and others.
2*0e209d39SAndroid Build Coastguard Worker // License & terms of use: http://www.unicode.org/copyright.html
3*0e209d39SAndroid Build Coastguard Worker /*
4*0e209d39SAndroid Build Coastguard Worker ******************************************************************************
5*0e209d39SAndroid Build Coastguard Worker *                                                                            *
6*0e209d39SAndroid Build Coastguard Worker * Copyright (C) 2003-2015, International Business Machines                   *
7*0e209d39SAndroid Build Coastguard Worker *                Corporation and others. All Rights Reserved.                *
8*0e209d39SAndroid Build Coastguard Worker *                                                                            *
9*0e209d39SAndroid Build Coastguard Worker ******************************************************************************
10*0e209d39SAndroid Build Coastguard Worker *   file name:  ulocdata.h
11*0e209d39SAndroid Build Coastguard Worker *   encoding:   UTF-8
12*0e209d39SAndroid Build Coastguard Worker *   tab size:   8 (not used)
13*0e209d39SAndroid Build Coastguard Worker *   indentation:4
14*0e209d39SAndroid Build Coastguard Worker *
15*0e209d39SAndroid Build Coastguard Worker *   created on: 2003Oct21
16*0e209d39SAndroid Build Coastguard Worker *   created by: Ram Viswanadha
17*0e209d39SAndroid Build Coastguard Worker */
18*0e209d39SAndroid Build Coastguard Worker 
19*0e209d39SAndroid Build Coastguard Worker #ifndef __ULOCDATA_H__
20*0e209d39SAndroid Build Coastguard Worker #define __ULOCDATA_H__
21*0e209d39SAndroid Build Coastguard Worker 
22*0e209d39SAndroid Build Coastguard Worker #include "unicode/ures.h"
23*0e209d39SAndroid Build Coastguard Worker #include "unicode/uloc.h"
24*0e209d39SAndroid Build Coastguard Worker #include "unicode/uset.h"
25*0e209d39SAndroid Build Coastguard Worker 
26*0e209d39SAndroid Build Coastguard Worker #if U_SHOW_CPLUSPLUS_API
27*0e209d39SAndroid Build Coastguard Worker #include "unicode/localpointer.h"
28*0e209d39SAndroid Build Coastguard Worker #endif   // U_SHOW_CPLUSPLUS_API
29*0e209d39SAndroid Build Coastguard Worker 
30*0e209d39SAndroid Build Coastguard Worker /**
31*0e209d39SAndroid Build Coastguard Worker  * \file
32*0e209d39SAndroid Build Coastguard Worker  * \brief C API: Provides access to locale data.
33*0e209d39SAndroid Build Coastguard Worker  */
34*0e209d39SAndroid Build Coastguard Worker 
35*0e209d39SAndroid Build Coastguard Worker /** Forward declaration of the ULocaleData structure. @stable ICU 3.6 */
36*0e209d39SAndroid Build Coastguard Worker struct ULocaleData;
37*0e209d39SAndroid Build Coastguard Worker 
38*0e209d39SAndroid Build Coastguard Worker /** A locale data object. @stable ICU 3.6 */
39*0e209d39SAndroid Build Coastguard Worker typedef struct ULocaleData ULocaleData;
40*0e209d39SAndroid Build Coastguard Worker 
41*0e209d39SAndroid Build Coastguard Worker 
42*0e209d39SAndroid Build Coastguard Worker 
43*0e209d39SAndroid Build Coastguard Worker /** The possible types of exemplar character sets.
44*0e209d39SAndroid Build Coastguard Worker   * @stable ICU 3.4
45*0e209d39SAndroid Build Coastguard Worker   */
46*0e209d39SAndroid Build Coastguard Worker typedef enum ULocaleDataExemplarSetType  {
47*0e209d39SAndroid Build Coastguard Worker     /** Basic set @stable ICU 3.4 */
48*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_ES_STANDARD=0,
49*0e209d39SAndroid Build Coastguard Worker     /** Auxiliary set @stable ICU 3.4 */
50*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_ES_AUXILIARY=1,
51*0e209d39SAndroid Build Coastguard Worker     /** Index Character set @stable ICU 4.8 */
52*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_ES_INDEX=2,
53*0e209d39SAndroid Build Coastguard Worker     /** Punctuation set @stable ICU 51 */
54*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_ES_PUNCTUATION=3,
55*0e209d39SAndroid Build Coastguard Worker #ifndef U_HIDE_DEPRECATED_API
56*0e209d39SAndroid Build Coastguard Worker     /**
57*0e209d39SAndroid Build Coastguard Worker      * One more than the highest normal ULocaleDataExemplarSetType value.
58*0e209d39SAndroid Build Coastguard Worker      * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
59*0e209d39SAndroid Build Coastguard Worker      */
60*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_ES_COUNT=4
61*0e209d39SAndroid Build Coastguard Worker #endif  /* U_HIDE_DEPRECATED_API */
62*0e209d39SAndroid Build Coastguard Worker } ULocaleDataExemplarSetType;
63*0e209d39SAndroid Build Coastguard Worker 
64*0e209d39SAndroid Build Coastguard Worker /** The possible types of delimiters.
65*0e209d39SAndroid Build Coastguard Worker   * @stable ICU 3.4
66*0e209d39SAndroid Build Coastguard Worker   */
67*0e209d39SAndroid Build Coastguard Worker typedef enum ULocaleDataDelimiterType {
68*0e209d39SAndroid Build Coastguard Worker     /** Quotation start @stable ICU 3.4 */
69*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_QUOTATION_START = 0,
70*0e209d39SAndroid Build Coastguard Worker     /** Quotation end @stable ICU 3.4 */
71*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_QUOTATION_END = 1,
72*0e209d39SAndroid Build Coastguard Worker     /** Alternate quotation start @stable ICU 3.4 */
73*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_ALT_QUOTATION_START = 2,
74*0e209d39SAndroid Build Coastguard Worker     /** Alternate quotation end @stable ICU 3.4 */
75*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_ALT_QUOTATION_END = 3,
76*0e209d39SAndroid Build Coastguard Worker #ifndef U_HIDE_DEPRECATED_API
77*0e209d39SAndroid Build Coastguard Worker     /**
78*0e209d39SAndroid Build Coastguard Worker      * One more than the highest normal ULocaleDataDelimiterType value.
79*0e209d39SAndroid Build Coastguard Worker      * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
80*0e209d39SAndroid Build Coastguard Worker      */
81*0e209d39SAndroid Build Coastguard Worker     ULOCDATA_DELIMITER_COUNT = 4
82*0e209d39SAndroid Build Coastguard Worker #endif  /* U_HIDE_DEPRECATED_API */
83*0e209d39SAndroid Build Coastguard Worker } ULocaleDataDelimiterType;
84*0e209d39SAndroid Build Coastguard Worker 
85*0e209d39SAndroid Build Coastguard Worker /**
86*0e209d39SAndroid Build Coastguard Worker  * Opens a locale data object for the given locale
87*0e209d39SAndroid Build Coastguard Worker  *
88*0e209d39SAndroid Build Coastguard Worker  * @param localeID  Specifies the locale associated with this locale
89*0e209d39SAndroid Build Coastguard Worker  *                  data object.
90*0e209d39SAndroid Build Coastguard Worker  * @param status    Pointer to error status code.
91*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 3.4
92*0e209d39SAndroid Build Coastguard Worker  */
93*0e209d39SAndroid Build Coastguard Worker U_CAPI ULocaleData* U_EXPORT2
94*0e209d39SAndroid Build Coastguard Worker ulocdata_open(const char *localeID, UErrorCode *status);
95*0e209d39SAndroid Build Coastguard Worker 
96*0e209d39SAndroid Build Coastguard Worker /**
97*0e209d39SAndroid Build Coastguard Worker  * Closes a locale data object.
98*0e209d39SAndroid Build Coastguard Worker  *
99*0e209d39SAndroid Build Coastguard Worker  * @param uld       The locale data object to close
100*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 3.4
101*0e209d39SAndroid Build Coastguard Worker  */
102*0e209d39SAndroid Build Coastguard Worker U_CAPI void U_EXPORT2
103*0e209d39SAndroid Build Coastguard Worker ulocdata_close(ULocaleData *uld);
104*0e209d39SAndroid Build Coastguard Worker 
105*0e209d39SAndroid Build Coastguard Worker #if U_SHOW_CPLUSPLUS_API
106*0e209d39SAndroid Build Coastguard Worker 
107*0e209d39SAndroid Build Coastguard Worker U_NAMESPACE_BEGIN
108*0e209d39SAndroid Build Coastguard Worker 
109*0e209d39SAndroid Build Coastguard Worker /**
110*0e209d39SAndroid Build Coastguard Worker  * \class LocalULocaleDataPointer
111*0e209d39SAndroid Build Coastguard Worker  * "Smart pointer" class, closes a ULocaleData via ulocdata_close().
112*0e209d39SAndroid Build Coastguard Worker  * For most methods see the LocalPointerBase base class.
113*0e209d39SAndroid Build Coastguard Worker  *
114*0e209d39SAndroid Build Coastguard Worker  * @see LocalPointerBase
115*0e209d39SAndroid Build Coastguard Worker  * @see LocalPointer
116*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 4.4
117*0e209d39SAndroid Build Coastguard Worker  */
118*0e209d39SAndroid Build Coastguard Worker U_DEFINE_LOCAL_OPEN_POINTER(LocalULocaleDataPointer, ULocaleData, ulocdata_close);
119*0e209d39SAndroid Build Coastguard Worker 
120*0e209d39SAndroid Build Coastguard Worker U_NAMESPACE_END
121*0e209d39SAndroid Build Coastguard Worker 
122*0e209d39SAndroid Build Coastguard Worker #endif
123*0e209d39SAndroid Build Coastguard Worker 
124*0e209d39SAndroid Build Coastguard Worker /**
125*0e209d39SAndroid Build Coastguard Worker  * Sets the "no Substitute" attribute of the locale data
126*0e209d39SAndroid Build Coastguard Worker  * object.  If true, then any methods associated with the
127*0e209d39SAndroid Build Coastguard Worker  * locale data object will return null when there is no
128*0e209d39SAndroid Build Coastguard Worker  * data available for that method, given the locale ID
129*0e209d39SAndroid Build Coastguard Worker  * supplied to ulocdata_open().
130*0e209d39SAndroid Build Coastguard Worker  *
131*0e209d39SAndroid Build Coastguard Worker  * @param uld       The locale data object to set.
132*0e209d39SAndroid Build Coastguard Worker  * @param setting   Value of the "no substitute" attribute.
133*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 3.4
134*0e209d39SAndroid Build Coastguard Worker  */
135*0e209d39SAndroid Build Coastguard Worker U_CAPI void U_EXPORT2
136*0e209d39SAndroid Build Coastguard Worker ulocdata_setNoSubstitute(ULocaleData *uld, UBool setting);
137*0e209d39SAndroid Build Coastguard Worker 
138*0e209d39SAndroid Build Coastguard Worker /**
139*0e209d39SAndroid Build Coastguard Worker  * Retrieves the current "no Substitute" value of the locale data
140*0e209d39SAndroid Build Coastguard Worker  * object.  If true, then any methods associated with the
141*0e209d39SAndroid Build Coastguard Worker  * locale data object will return null when there is no
142*0e209d39SAndroid Build Coastguard Worker  * data available for that method, given the locale ID
143*0e209d39SAndroid Build Coastguard Worker  * supplied to ulocdata_open().
144*0e209d39SAndroid Build Coastguard Worker  *
145*0e209d39SAndroid Build Coastguard Worker  * @param uld       Pointer to the The locale data object to set.
146*0e209d39SAndroid Build Coastguard Worker  * @return UBool    Value of the "no substitute" attribute.
147*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 3.4
148*0e209d39SAndroid Build Coastguard Worker  */
149*0e209d39SAndroid Build Coastguard Worker U_CAPI UBool U_EXPORT2
150*0e209d39SAndroid Build Coastguard Worker ulocdata_getNoSubstitute(ULocaleData *uld);
151*0e209d39SAndroid Build Coastguard Worker 
152*0e209d39SAndroid Build Coastguard Worker /**
153*0e209d39SAndroid Build Coastguard Worker  * Returns the set of exemplar characters for a locale.
154*0e209d39SAndroid Build Coastguard Worker  *
155*0e209d39SAndroid Build Coastguard Worker  * @param uld       Pointer to the locale data object from which the
156*0e209d39SAndroid Build Coastguard Worker  *                  exemplar character set is to be retrieved.
157*0e209d39SAndroid Build Coastguard Worker  * @param fillIn    Pointer to a USet object to receive the
158*0e209d39SAndroid Build Coastguard Worker  *                  exemplar character set for the given locale.  Previous
159*0e209d39SAndroid Build Coastguard Worker  *                  contents of fillIn are lost.  <em>If fillIn is NULL,
160*0e209d39SAndroid Build Coastguard Worker  *                  then a new USet is created and returned.  The caller
161*0e209d39SAndroid Build Coastguard Worker  *                  owns the result and must dispose of it by calling
162*0e209d39SAndroid Build Coastguard Worker  *                  uset_close.</em>
163*0e209d39SAndroid Build Coastguard Worker  * @param options   Bitmask for options to apply to the exemplar pattern.
164*0e209d39SAndroid Build Coastguard Worker  *                  Specify zero to retrieve the exemplar set as it is
165*0e209d39SAndroid Build Coastguard Worker  *                  defined in the locale data.  Specify
166*0e209d39SAndroid Build Coastguard Worker  *                  USET_CASE_INSENSITIVE to retrieve a case-folded
167*0e209d39SAndroid Build Coastguard Worker  *                  exemplar set.  See uset_applyPattern for a complete
168*0e209d39SAndroid Build Coastguard Worker  *                  list of valid options.  The USET_IGNORE_SPACE bit is
169*0e209d39SAndroid Build Coastguard Worker  *                  always set, regardless of the value of 'options'.
170*0e209d39SAndroid Build Coastguard Worker  * @param extype    Specifies the type of exemplar set to be retrieved.
171*0e209d39SAndroid Build Coastguard Worker  * @param status    Pointer to an input-output error code value;
172*0e209d39SAndroid Build Coastguard Worker  *                  must not be NULL.  Will be set to U_MISSING_RESOURCE_ERROR
173*0e209d39SAndroid Build Coastguard Worker  *                  if the requested data is not available.
174*0e209d39SAndroid Build Coastguard Worker  * @return USet*    Either fillIn, or if fillIn is NULL, a pointer to
175*0e209d39SAndroid Build Coastguard Worker  *                  a newly-allocated USet that the user must close.
176*0e209d39SAndroid Build Coastguard Worker  *                  In case of error, NULL is returned.
177*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 3.4
178*0e209d39SAndroid Build Coastguard Worker  */
179*0e209d39SAndroid Build Coastguard Worker U_CAPI USet* U_EXPORT2
180*0e209d39SAndroid Build Coastguard Worker ulocdata_getExemplarSet(ULocaleData *uld, USet *fillIn,
181*0e209d39SAndroid Build Coastguard Worker                         uint32_t options, ULocaleDataExemplarSetType extype, UErrorCode *status);
182*0e209d39SAndroid Build Coastguard Worker 
183*0e209d39SAndroid Build Coastguard Worker /**
184*0e209d39SAndroid Build Coastguard Worker  * Returns one of the delimiter strings associated with a locale.
185*0e209d39SAndroid Build Coastguard Worker  *
186*0e209d39SAndroid Build Coastguard Worker  * @param uld           Pointer to the locale data object from which the
187*0e209d39SAndroid Build Coastguard Worker  *                      delimiter string is to be retrieved.
188*0e209d39SAndroid Build Coastguard Worker  * @param type          the type of delimiter to be retrieved.
189*0e209d39SAndroid Build Coastguard Worker  * @param result        A pointer to a buffer to receive the result.
190*0e209d39SAndroid Build Coastguard Worker  * @param resultLength  The maximum size of result.
191*0e209d39SAndroid Build Coastguard Worker  * @param status        Pointer to an error code value
192*0e209d39SAndroid Build Coastguard Worker  * @return int32_t      The total buffer size needed; if greater than resultLength,
193*0e209d39SAndroid Build Coastguard Worker  *                      the output was truncated.
194*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 3.4
195*0e209d39SAndroid Build Coastguard Worker  */
196*0e209d39SAndroid Build Coastguard Worker U_CAPI int32_t U_EXPORT2
197*0e209d39SAndroid Build Coastguard Worker ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type, UChar *result, int32_t resultLength, UErrorCode *status);
198*0e209d39SAndroid Build Coastguard Worker 
199*0e209d39SAndroid Build Coastguard Worker /**
200*0e209d39SAndroid Build Coastguard Worker  * Enumeration for representing the measurement systems.
201*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 2.8
202*0e209d39SAndroid Build Coastguard Worker  */
203*0e209d39SAndroid Build Coastguard Worker typedef enum UMeasurementSystem {
204*0e209d39SAndroid Build Coastguard Worker     UMS_SI,     /**< Measurement system specified by SI otherwise known as Metric system. @stable ICU 2.8 */
205*0e209d39SAndroid Build Coastguard Worker     UMS_US,     /**< Measurement system followed in the United States of America. @stable ICU 2.8 */
206*0e209d39SAndroid Build Coastguard Worker     UMS_UK,     /**< Mix of metric and imperial units used in Great Britain. @stable ICU 55 */
207*0e209d39SAndroid Build Coastguard Worker #ifndef U_HIDE_DEPRECATED_API
208*0e209d39SAndroid Build Coastguard Worker     /**
209*0e209d39SAndroid Build Coastguard Worker      * One more than the highest normal UMeasurementSystem value.
210*0e209d39SAndroid Build Coastguard Worker      * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
211*0e209d39SAndroid Build Coastguard Worker      */
212*0e209d39SAndroid Build Coastguard Worker     UMS_LIMIT
213*0e209d39SAndroid Build Coastguard Worker #endif  /* U_HIDE_DEPRECATED_API */
214*0e209d39SAndroid Build Coastguard Worker } UMeasurementSystem;
215*0e209d39SAndroid Build Coastguard Worker 
216*0e209d39SAndroid Build Coastguard Worker /**
217*0e209d39SAndroid Build Coastguard Worker  * Returns the measurement system used in the locale specified by the localeID.
218*0e209d39SAndroid Build Coastguard Worker  * Please note that this API will change in ICU 3.6 and will use an ulocdata object.
219*0e209d39SAndroid Build Coastguard Worker  *
220*0e209d39SAndroid Build Coastguard Worker  * @param localeID      The id of the locale for which the measurement system to be retrieved.
221*0e209d39SAndroid Build Coastguard Worker  * @param status        Must be a valid pointer to an error code value,
222*0e209d39SAndroid Build Coastguard Worker  *                      which must not indicate a failure before the function call.
223*0e209d39SAndroid Build Coastguard Worker  * @return UMeasurementSystem the measurement system used in the locale.
224*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 2.8
225*0e209d39SAndroid Build Coastguard Worker  */
226*0e209d39SAndroid Build Coastguard Worker U_CAPI UMeasurementSystem U_EXPORT2
227*0e209d39SAndroid Build Coastguard Worker ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
228*0e209d39SAndroid Build Coastguard Worker 
229*0e209d39SAndroid Build Coastguard Worker /**
230*0e209d39SAndroid Build Coastguard Worker  * Returns the element gives the normal business letter size, and customary units.
231*0e209d39SAndroid Build Coastguard Worker  * The units for the numbers are always in <em>milli-meters</em>.
232*0e209d39SAndroid Build Coastguard Worker  * For US since 8.5 and 11 do not yield an integral value when converted to milli-meters,
233*0e209d39SAndroid Build Coastguard Worker  * the values are rounded off.
234*0e209d39SAndroid Build Coastguard Worker  * So for A4 size paper the height and width are 297 mm and 210 mm respectively,
235*0e209d39SAndroid Build Coastguard Worker  * and for US letter size the height and width are 279 mm and 216 mm respectively.
236*0e209d39SAndroid Build Coastguard Worker  * Please note that this API will change in ICU 3.6 and will use an ulocdata object.
237*0e209d39SAndroid Build Coastguard Worker  *
238*0e209d39SAndroid Build Coastguard Worker  * @param localeID      The id of the locale for which the paper size information to be retrieved.
239*0e209d39SAndroid Build Coastguard Worker  * @param height        A pointer to int to receive the height information.
240*0e209d39SAndroid Build Coastguard Worker  * @param width         A pointer to int to receive the width information.
241*0e209d39SAndroid Build Coastguard Worker  * @param status        Must be a valid pointer to an error code value,
242*0e209d39SAndroid Build Coastguard Worker  *                      which must not indicate a failure before the function call.
243*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 2.8
244*0e209d39SAndroid Build Coastguard Worker  */
245*0e209d39SAndroid Build Coastguard Worker U_CAPI void U_EXPORT2
246*0e209d39SAndroid Build Coastguard Worker ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
247*0e209d39SAndroid Build Coastguard Worker 
248*0e209d39SAndroid Build Coastguard Worker /**
249*0e209d39SAndroid Build Coastguard Worker  * Return the current CLDR version used by the library.
250*0e209d39SAndroid Build Coastguard Worker  * @param versionArray fill-in that will receive the version number
251*0e209d39SAndroid Build Coastguard Worker  * @param status error code - could be U_MISSING_RESOURCE_ERROR if the version was not found.
252*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 4.2
253*0e209d39SAndroid Build Coastguard Worker  */
254*0e209d39SAndroid Build Coastguard Worker U_CAPI void U_EXPORT2
255*0e209d39SAndroid Build Coastguard Worker ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status);
256*0e209d39SAndroid Build Coastguard Worker 
257*0e209d39SAndroid Build Coastguard Worker /**
258*0e209d39SAndroid Build Coastguard Worker  * Returns locale display pattern associated with a locale.
259*0e209d39SAndroid Build Coastguard Worker  *
260*0e209d39SAndroid Build Coastguard Worker  * @param uld       Pointer to the locale data object from which the
261*0e209d39SAndroid Build Coastguard Worker  *                  exemplar character set is to be retrieved.
262*0e209d39SAndroid Build Coastguard Worker  * @param pattern   locale display pattern for locale.
263*0e209d39SAndroid Build Coastguard Worker  * @param patternCapacity the size of the buffer to store the locale display
264*0e209d39SAndroid Build Coastguard Worker  *                  pattern with.
265*0e209d39SAndroid Build Coastguard Worker  * @param status    Must be a valid pointer to an error code value,
266*0e209d39SAndroid Build Coastguard Worker  *                  which must not indicate a failure before the function call.
267*0e209d39SAndroid Build Coastguard Worker  * @return the actual buffer size needed for localeDisplayPattern.  If it's greater
268*0e209d39SAndroid Build Coastguard Worker  * than patternCapacity, the returned pattern will be truncated.
269*0e209d39SAndroid Build Coastguard Worker  *
270*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 4.2
271*0e209d39SAndroid Build Coastguard Worker  */
272*0e209d39SAndroid Build Coastguard Worker U_CAPI int32_t U_EXPORT2
273*0e209d39SAndroid Build Coastguard Worker ulocdata_getLocaleDisplayPattern(ULocaleData *uld,
274*0e209d39SAndroid Build Coastguard Worker                                  UChar *pattern,
275*0e209d39SAndroid Build Coastguard Worker                                  int32_t patternCapacity,
276*0e209d39SAndroid Build Coastguard Worker                                  UErrorCode *status);
277*0e209d39SAndroid Build Coastguard Worker 
278*0e209d39SAndroid Build Coastguard Worker 
279*0e209d39SAndroid Build Coastguard Worker /**
280*0e209d39SAndroid Build Coastguard Worker  * Returns locale separator associated with a locale.
281*0e209d39SAndroid Build Coastguard Worker  *
282*0e209d39SAndroid Build Coastguard Worker  * @param uld       Pointer to the locale data object from which the
283*0e209d39SAndroid Build Coastguard Worker  *                  exemplar character set is to be retrieved.
284*0e209d39SAndroid Build Coastguard Worker  * @param separator locale separator for locale.
285*0e209d39SAndroid Build Coastguard Worker  * @param separatorCapacity the size of the buffer to store the locale
286*0e209d39SAndroid Build Coastguard Worker  *                  separator with.
287*0e209d39SAndroid Build Coastguard Worker  * @param status    Must be a valid pointer to an error code value,
288*0e209d39SAndroid Build Coastguard Worker  *                  which must not indicate a failure before the function call.
289*0e209d39SAndroid Build Coastguard Worker  * @return the actual buffer size needed for localeSeparator.  If it's greater
290*0e209d39SAndroid Build Coastguard Worker  * than separatorCapacity, the returned separator will be truncated.
291*0e209d39SAndroid Build Coastguard Worker  *
292*0e209d39SAndroid Build Coastguard Worker  * @stable ICU 4.2
293*0e209d39SAndroid Build Coastguard Worker  */
294*0e209d39SAndroid Build Coastguard Worker U_CAPI int32_t U_EXPORT2
295*0e209d39SAndroid Build Coastguard Worker ulocdata_getLocaleSeparator(ULocaleData *uld,
296*0e209d39SAndroid Build Coastguard Worker                             UChar *separator,
297*0e209d39SAndroid Build Coastguard Worker                             int32_t separatorCapacity,
298*0e209d39SAndroid Build Coastguard Worker                             UErrorCode *status);
299*0e209d39SAndroid Build Coastguard Worker #endif
300