ICU 73.2  73.2
uregion.h
Go to the documentation of this file.
00001 // © 2016 and later: Unicode, Inc. and others.
00002 // License & terms of use: http://www.unicode.org/copyright.html
00003 /*
00004 *****************************************************************************************
00005 * Copyright (C) 2014, International Business Machines
00006 * Corporation and others. All Rights Reserved.
00007 *****************************************************************************************
00008 */
00009 
00010 #ifndef UREGION_H
00011 #define UREGION_H
00012 
00013 #include "unicode/utypes.h"
00014 #include "unicode/uenum.h"
00015 
00065 typedef enum URegionType {
00070     URGN_UNKNOWN,
00071 
00076     URGN_TERRITORY,
00077 
00082     URGN_WORLD,
00083 
00088     URGN_CONTINENT,
00089 
00094     URGN_SUBCONTINENT,
00095 
00101     URGN_GROUPING,
00102 
00108     URGN_DEPRECATED,
00109 
00110 #ifndef U_HIDE_DEPRECATED_API
00111 
00115     URGN_LIMIT
00116 #endif  /* U_HIDE_DEPRECATED_API */
00117 } URegionType;
00118 
00119 #if !UCONFIG_NO_FORMATTING
00120 
00125 struct URegion;
00126 typedef struct URegion URegion; 
00136 U_CAPI const URegion* U_EXPORT2
00137 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status);
00138 
00144 U_CAPI const URegion* U_EXPORT2
00145 uregion_getRegionFromNumericCode (int32_t code, UErrorCode *status);
00146 
00152 U_CAPI UEnumeration* U_EXPORT2
00153 uregion_getAvailable(URegionType type, UErrorCode *status);
00154 
00159 U_CAPI UBool U_EXPORT2
00160 uregion_areEqual(const URegion* uregion, const URegion* otherRegion);
00161 
00168 U_CAPI const URegion* U_EXPORT2
00169 uregion_getContainingRegion(const URegion* uregion);
00170 
00180 U_CAPI const URegion* U_EXPORT2
00181 uregion_getContainingRegionOfType(const URegion* uregion, URegionType type);
00182 
00193 U_CAPI UEnumeration* U_EXPORT2
00194 uregion_getContainedRegions(const URegion* uregion, UErrorCode *status);
00195 
00205 U_CAPI UEnumeration* U_EXPORT2
00206 uregion_getContainedRegionsOfType(const URegion* uregion, URegionType type, UErrorCode *status);
00207 
00213 U_CAPI UBool U_EXPORT2
00214 uregion_contains(const URegion* uregion, const URegion* otherRegion);
00215 
00224 U_CAPI UEnumeration* U_EXPORT2
00225 uregion_getPreferredValues(const URegion* uregion, UErrorCode *status);
00226 
00231 U_CAPI const char* U_EXPORT2
00232 uregion_getRegionCode(const URegion* uregion);
00233 
00239 U_CAPI int32_t U_EXPORT2
00240 uregion_getNumericCode(const URegion* uregion);
00241 
00246 U_CAPI URegionType U_EXPORT2
00247 uregion_getType(const URegion* uregion);
00248 
00249 
00250 #endif /* #if !UCONFIG_NO_FORMATTING */
00251 
00252 #endif