110 #ifndef U_HIDE_DEPRECATED_API 119 #if !UCONFIG_NO_FORMATTING Type representing the whole world.
URegionType
URegionType is an enumeration defining the different types of regions.
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...
Type representing the unknown region.
UEnumeration * uregion_getAvailable(URegionType type, UErrorCode *status)
Returns an enumeration over the canonical codes of all known regions that match the given type...
struct UEnumeration UEnumeration
structure representing an enumeration object instance
UBool uregion_areEqual(const URegion *uregion, const URegion *otherRegion)
Returns true if the specified uregion is equal to the specified otherRegion.
Type representing a sub-continent.
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 ...
Type representing a grouping of territories that is not to be used in the normal WORLD/CONTINENT/SUBC...
One more than the highest normal URegionType value.
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...
Type representing a territory.
const URegion * uregion_getRegionFromNumericCode(int32_t code, UErrorCode *status)
Returns a pointer to a URegion for the specified numeric region code.
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...
Type representing a region whose code has been deprecated, usually due to a country splitting into mu...
Type representing a continent.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
C API: String Enumeration.
const URegion * uregion_getContainingRegion(const URegion *uregion)
Returns a pointer to the URegion that contains the specified uregion.
Basic definitions for ICU, for both C and C++ APIs.
const char * uregion_getRegionCode(const URegion *uregion)
Returns the specified uregion's canonical code.
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...
UBool uregion_contains(const URegion *uregion, const URegion *otherRegion)
Returns true if the specified uregion contains the specified otherRegion anywhere in the region hiera...
URegionType uregion_getType(const URegion *uregion)
Returns the URegionType of the specified uregion.
UEnumeration * uregion_getPreferredValues(const URegion *uregion, UErrorCode *status)
If the specified uregion is deprecated, returns an enumeration over the canonical codes of the region...
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
int8_t UBool
The ICU boolean type.