ICU 56.1  56.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uregion.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *****************************************************************************************
6 */
7 
8 #ifndef UREGION_H
9 #define UREGION_H
10 
11 #include "unicode/utypes.h"
12 #include "unicode/uenum.h"
13 
63 typedef enum URegionType {
69 
75 
81 
87 
93 
100 
107 
113 } URegionType;
114 
115 #if !UCONFIG_NO_FORMATTING
116 
121 struct URegion;
122 typedef struct URegion URegion;
132 U_STABLE const URegion* U_EXPORT2
133 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status);
134 
140 U_STABLE const URegion* U_EXPORT2
141 uregion_getRegionFromNumericCode (int32_t code, UErrorCode *status);
142 
148 U_STABLE UEnumeration* U_EXPORT2
150 
155 U_STABLE UBool U_EXPORT2
156 uregion_areEqual(const URegion* uregion, const URegion* otherRegion);
157 
164 U_STABLE const URegion* U_EXPORT2
165 uregion_getContainingRegion(const URegion* uregion);
166 
176 U_STABLE const URegion* U_EXPORT2
178 
189 U_STABLE UEnumeration* U_EXPORT2
190 uregion_getContainedRegions(const URegion* uregion, UErrorCode *status);
191 
201 U_STABLE UEnumeration* U_EXPORT2
202 uregion_getContainedRegionsOfType(const URegion* uregion, URegionType type, UErrorCode *status);
203 
209 U_STABLE UBool U_EXPORT2
210 uregion_contains(const URegion* uregion, const URegion* otherRegion);
211 
220 U_STABLE UEnumeration* U_EXPORT2
221 uregion_getPreferredValues(const URegion* uregion, UErrorCode *status);
222 
227 U_STABLE const char* U_EXPORT2
228 uregion_getRegionCode(const URegion* uregion);
229 
235 U_STABLE int32_t U_EXPORT2
236 uregion_getNumericCode(const URegion* uregion);
237 
242 U_STABLE URegionType U_EXPORT2
243 uregion_getType(const URegion* uregion);
244 
245 
246 #endif /* #if !UCONFIG_NO_FORMATTING */
247 
248 #endif