Home | History | Annotate | Download | only in unicode

Lines Matching refs:uregion

18  * \brief C API: URegion (territory containment and mapping)
20 * URegion objects represent data associated with a particular Unicode Region Code, also known as a
25 * URegion objects can also provide mappings to and from additional codes. There are different types
54 * URegion objects are const/immutable, owned and maintained by ICU itself, so there are not functions
122 * Opaque URegion object for use in C programs.
125 struct URegion;
126 typedef struct URegion URegion; /**< @stable ICU 52 */
129 * Returns a pointer to a URegion for the specified region code: A 2-letter or 3-letter ISO 3166
136 U_STABLE const URegion* U_EXPORT2
140 * Returns a pointer to a URegion for the specified numeric region code. If the numeric region
144 U_STABLE const URegion* U_EXPORT2
156 * Returns true if the specified uregion is equal to the specified otherRegion.
160 uregion_areEqual(const URegion* uregion, const URegion* otherRegion);
163 * Returns a pointer to the URegion that contains the specified uregion. Returns NULL if the
164 * specified uregion is code "001" (World) or "ZZ" (Unknown region). For example, calling
165 * this method with region "IT" (Italy) returns the URegion for "039" (Southern Europe).
168 U_STABLE const URegion* U_EXPORT2
169 uregion_getContainingRegion(const URegion* uregion);
172 * Return a pointer to the URegion that geographically contains this uregion and matches the
176 * For example, calling this method with uregion "IT" (Italy) for type URGN_CONTINENT returns the
177 * URegion "150" (Europe).
180 U_STABLE const URegion* U_EXPORT2
181 uregion_getContainingRegionOfType(const URegion* uregion, URegionType type);
185 * of the specified uregion in the region hierarchy. These returned regions could be either macro
187 * CLDR. This API returns NULL if this uregion doesn't have any sub-regions. For example, calling
188 * this function for uregion "150" (Europe) returns an enumeration containing the various
194 uregion_getContainedRegions(const URegion* uregion, UErrorCode *status);
198 * specified uregion anywhere in the region hierarchy and match the given type. This API may return
199 * an empty enumeration if this uregion doesn't have any sub-regions that match the given type.
206 uregion_getContainedRegionsOfType(const URegion* uregion, URegionType type, UErrorCode *status);
209 * Returns true if the specified uregion contains the specified otherRegion anywhere in the region
214 uregion_contains(const URegion* uregion, const URegion* otherRegion);
217 * If the specified uregion is deprecated, returns an enumeration over the canonical codes of the
218 * regions that are the preferred replacement regions for the specified uregion. If the specified
219 * uregion is not deprecated, returns NULL. For example, calling this method with uregion
225 uregion_getPreferredValues(const URegion* uregion, UErrorCode *status);
228 * Returns the specified uregion's canonical code.
232 uregion_getRegionCode(const URegion* uregion);
235 * Returns the specified uregion's numeric code, or a negative value if there is no numeric code
236 * for the specified uregion.
240 uregion_getNumericCode(const URegion* uregion);
243 * Returns the URegionType of the specified uregion.
247 uregion_getType(const URegion* uregion);