110#ifndef U_HIDE_DEPRECATED_API
119#if !UCONFIG_NO_FORMATTING
231U_CAPI const char* U_EXPORT2
C API: String Enumeration.
struct UEnumeration UEnumeration
structure representing an enumeration object instance
int8_t UBool
The ICU boolean type, a signed-byte integer.
#define U_CAPI
This is used to declare a function as a public ICU C API.
U_CAPI UEnumeration * uregion_getPreferredValues(const URegion *uregion, UErrorCode *status)
If the specified uregion is deprecated, returns an enumeration over the canonical codes of the region...
U_CAPI UBool uregion_contains(const URegion *uregion, const URegion *otherRegion)
Returns true if the specified uregion contains the specified otherRegion anywhere in the region hiera...
U_CAPI const URegion * uregion_getContainingRegionOfType(const URegion *uregion, URegionType type)
Return a pointer to the URegion that geographically contains this uregion and matches the specified t...
U_CAPI const char * uregion_getRegionCode(const URegion *uregion)
Returns the specified uregion's canonical code.
U_CAPI UEnumeration * uregion_getContainedRegionsOfType(const URegion *uregion, URegionType type, UErrorCode *status)
Returns an enumeration over the canonical codes of all the regions that are children of the specified...
U_CAPI UEnumeration * uregion_getAvailable(URegionType type, UErrorCode *status)
Returns an enumeration over the canonical codes of all known regions that match the given type.
URegionType
URegionType is an enumeration defining the different types of regions.
@ URGN_LIMIT
One more than the highest normal URegionType value.
@ URGN_CONTINENT
Type representing a continent.
@ URGN_WORLD
Type representing the whole world.
@ URGN_GROUPING
Type representing a grouping of territories that is not to be used in the normal WORLD/CONTINENT/SUBC...
@ URGN_UNKNOWN
Type representing the unknown region.
@ URGN_DEPRECATED
Type representing a region whose code has been deprecated, usually due to a country splitting into mu...
@ URGN_TERRITORY
Type representing a territory.
@ URGN_SUBCONTINENT
Type representing a sub-continent.
U_CAPI UBool uregion_areEqual(const URegion *uregion, const URegion *otherRegion)
Returns true if the specified uregion is equal to the specified otherRegion.
U_CAPI const URegion * uregion_getContainingRegion(const URegion *uregion)
Returns a pointer to the URegion that contains the specified uregion.
U_CAPI int32_t uregion_getNumericCode(const URegion *uregion)
Returns the specified uregion's numeric code, or a negative value if there is no numeric code for the...
U_CAPI const URegion * uregion_getRegionFromCode(const char *regionCode, UErrorCode *status)
Returns a pointer to a URegion for the specified region code: A 2-letter or 3-letter ISO 3166 code,...
U_CAPI URegionType uregion_getType(const URegion *uregion)
Returns the URegionType of the specified uregion.
U_CAPI UEnumeration * uregion_getContainedRegions(const URegion *uregion, UErrorCode *status)
Return an enumeration over the canonical codes of all the regions that are immediate children of the ...
U_CAPI const URegion * uregion_getRegionFromNumericCode(int32_t code, UErrorCode *status)
Returns a pointer to a URegion for the specified numeric region code.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.