Go to the documentation of this file.
20 #if U_SHOW_CPLUSPLUS_API
22 #if !UCONFIG_NO_FORMATTING
185 #ifndef U_HIDE_INTERNAL_API
199 UVector *containedRegions;
200 UVector *preferredValues;
virtual ~Region()
Destructor.
C API: URegion (territory containment and mapping)
Basic definitions for ICU, for both C and C++ APIs.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
int8_t UBool
The ICU boolean type.
UBool operator!=(const Region &that) const
Returns true if the two regions are NOT equal; that is, if operator ==() returns false.
URegionType
URegionType is an enumeration defining the different types of regions.
StringEnumeration * getContainedRegions(UErrorCode &status) const
Return an enumeration over the IDs of all the regions that are immediate children of this region in t...
URegionType getType() const
Returns the region type of this region.
StringEnumeration * getPreferredValues(UErrorCode &status) const
For deprecated regions, return an enumeration over the IDs of the regions that are the preferred repl...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
const Region * getContainingRegion(URegionType type) const
Return a pointer to the region that geographically contains this region and matches the given type,...
UObject is the common ICU "boilerplate" class.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Base class for 'pure' C++ implementations of uenum api.
static StringEnumeration * getAvailable(URegionType type, UErrorCode &status)
Returns an enumeration over the IDs of all known regions that match the given type.
UBool contains(const Region &other) const
Returns true if this region contains the supplied other region anywhere in the region hierarchy.
static const Region * getInstance(int32_t code, UErrorCode &status)
Returns a pointer to a Region using the given numeric region code.
UBool operator==(const Region &that) const
Returns true if the two regions are equal.
Region is the class representing a Unicode Region Code, also known as a Unicode Region Subtag,...
int32_t getNumericCode() const
Return this region's numeric code.
static void cleanupRegionData()
Cleans up statically allocated memory.
static const Region * getInstance(const char *region_code, UErrorCode &status)
Returns a pointer to a Region using the given region code.
C++ API: String Enumeration.
StringEnumeration * getContainedRegions(URegionType type, UErrorCode &status) const
Returns an enumeration over the IDs of all the regions that are children of this region anywhere in t...
C++ API: Common ICU base class UObject.
const Region * getContainingRegion() const
Returns a pointer to the region that contains this region.
const char * getRegionCode() const
Return this region's canonical region code.