ICU 4.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ulocdata.h
Go to the documentation of this file.
1 /*
2 ******************************************************************************
3 * *
4 * Copyright (C) 2003-2009, International Business Machines *
5 * Corporation and others. All Rights Reserved. *
6 * *
7 ******************************************************************************
8 * file name: ulocdata.h
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2003Oct21
14 * created by: Ram Viswanadha
15 */
16 
17 #ifndef __ULOCDATA_H__
18 #define __ULOCDATA_H__
19 
20 #include "unicode/ures.h"
21 #include "unicode/uloc.h"
22 #include "unicode/uset.h"
23 
30 struct ULocaleData;
31 
33 typedef struct ULocaleData ULocaleData;
34 
35 
36 
41  ULOCDATA_ES_STANDARD=0, /* Basic set */
42  ULOCDATA_ES_AUXILIARY=1, /* Auxiliary set */
43  ULOCDATA_ES_COUNT=2
45 
50  ULOCDATA_QUOTATION_START = 0, /* Quotation start */
51  ULOCDATA_QUOTATION_END = 1, /* Quotation end */
52  ULOCDATA_ALT_QUOTATION_START = 2, /* Alternate quotation start */
53  ULOCDATA_ALT_QUOTATION_END = 3, /* Alternate quotation end */
54  ULOCDATA_DELIMITER_COUNT = 4
56 
66 ulocdata_open(const char *localeID, UErrorCode *status);
67 
76 
90 
104 
132  uint32_t options, ULocaleDataExemplarSetType extype, UErrorCode *status);
133 
148 ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type, UChar *result, int32_t resultLength, UErrorCode *status);
149 
154 typedef enum UMeasurementSystem {
155  UMS_SI,
159 
171 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
172 
189 U_STABLE void U_EXPORT2
190 ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
191 
198 U_DRAFT void U_EXPORT2
199 ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status);
200 
218  UChar *pattern,
219  int32_t patternCapacity,
220  UErrorCode *status);
221 
222 
240  UChar *separator,
241  int32_t separatorCapacity,
242  UErrorCode *status);
243 #endif
uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]
The binary form of a version on ICU APIs is an array of 4 uint8_t.
Definition: uversion.h:124
void ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status)
Return the current CLDR version used by the library.
void ulocdata_setNoSubstitute(ULocaleData *uld, UBool setting)
Sets the "no Substitute" attribute of the locale data object.
void ulocdata_close(ULocaleData *uld)
Closes a locale data object.
void ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status)
Returns the element gives the normal business letter size, and customary units.
UMeasurementSystem
Enumeration for representing the measurement systems.
Definition: ulocdata.h:154
unsigned int uint32_t
Define 64 bit limits.
Definition: pwin32.h:147
int32_t ulocdata_getLocaleSeparator(ULocaleData *uld, UChar *separator, int32_t separatorCapacity, UErrorCode *status)
Returns locale separator associated with a locale.
C API: Unicode Set.
UMeasurementSystem ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status)
Returns the measurement system used in the locale specified by the localeID.
ULocaleDataDelimiterType
The possible types of delimiters.
Definition: ulocdata.h:49
int32_t ulocdata_getLocaleDisplayPattern(ULocaleData *uld, UChar *pattern, int32_t patternCapacity, UErrorCode *status)
Returns locale display pattern associated with a locale.
#define U_EXPORT2
Definition: platform.h:338
USet * ulocdata_getExemplarSet(ULocaleData *uld, USet *fillIn, uint32_t options, ULocaleDataExemplarSetType extype, UErrorCode *status)
Returns the set of exemplar characters for a locale.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
Definition: umachine.h:299
struct USet USet
Definition: ucnv.h:66
Measurement system followed in the United States of America.
Definition: ulocdata.h:157
ULocaleDataExemplarSetType
The possible types of exemplar character sets.
Definition: ulocdata.h:40
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:593
Measurement system specified by SI otherwise known as Metric system.
Definition: ulocdata.h:156
struct ULocaleData ULocaleData
A locale data object.
Definition: ulocdata.h:33
ULocaleData * ulocdata_open(const char *localeID, UErrorCode *status)
Opens a locale data object for the given locale.
int32_t ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type, UChar *result, int32_t resultLength, UErrorCode *status)
Returns one of the delimiter strings associated with a locale.
UBool ulocdata_getNoSubstitute(ULocaleData *uld)
Retrieves the current "no Substitute" value of the locale data object.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
Definition: umachine.h:119
signed int int32_t
Define 64 bit limits.
Definition: pwin32.h:143
C API: Resource Bundle.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:117
int8_t UBool
The ICU boolean type.
Definition: umachine.h:208
C API: Locale.