Home | History | Annotate | Download | only in unicode

Lines Matching refs:URegion

16  * \brief C API: URegion (territory containment and mapping)
18 * URegion objects represent data associated with a particular Unicode Region Code, also known as a
23 * URegion objects can also provide mappings to and from additional codes. There are different types
52 * URegion objects are const/immutable, owned and maintained by ICU itself, so there are not functions
120 * Opaque URegion object for use in C programs.
123 struct URegion;
124 typedef struct URegion URegion; /**< @draft ICU 52 */
127 * Returns a pointer to a URegion for the specified region code: A 2-letter or 3-letter ISO 3166
134 U_DRAFT const URegion* U_EXPORT2
138 * Returns a pointer to a URegion for the specified numeric region code. If the numeric region
142 U_DRAFT const URegion* U_EXPORT2
154 * Returns true if the specified uregion is equal to the specified otherRegion.
158 uregion_areEqual(const URegion* uregion, const URegion* otherRegion);
161 * Returns a pointer to the URegion that contains the specified uregion. Returns NULL if the
162 * specified uregion is code "001" (World) or "ZZ" (Unknown region). For example, calling
163 * this method with region "IT" (Italy) returns the URegion for "039" (Southern Europe).
166 U_DRAFT const URegion* U_EXPORT2
167 uregion_getContainingRegion(const URegion* uregion);
170 * Return a pointer to the URegion that geographically contains this uregion and matches the
174 * For example, calling this method with uregion "IT" (Italy) for type URGN_CONTINENT returns the
175 * URegion "150" (Europe).
178 U_DRAFT const URegion* U_EXPORT2
179 uregion_getContainingRegionOfType(const URegion* uregion, URegionType type);
183 * of the specified uregion in the region hierarchy. These returned regions could be either macro
185 * CLDR. This API returns NULL if this uregion doesn't have any sub-regions. For example, calling
186 * this function for uregion "150" (Europe) returns an enumeration containing the various
192 uregion_getContainedRegions(const URegion* uregion, UErrorCode *status);
196 * specified uregion anywhere in the region hierarchy and match the given type. This API may return
197 * an empty enumeration if this uregion doesn't have any sub-regions that match the given type.
204 uregion_getContainedRegionsOfType(const URegion* uregion, URegionType type, UErrorCode *status);
207 * Returns true if the specified uregion contains the specified otherRegion anywhere in the region
212 uregion_contains(const URegion* uregion, const URegion* otherRegion);
215 * If the specified uregion is deprecated, returns an enumeration over the canonical codes of the
216 * regions that are the preferred replacement regions for the specified uregion. If the specified
217 * uregion is not deprecated, returns NULL. For example, calling this method with uregion
223 uregion_getPreferredValues(const URegion* uregion, UErrorCode *status);
226 * Returns the specified uregion's canonical code.
230 uregion_getRegionCode(const URegion* uregion);
233 * Returns the specified uregion's numeric code, or a negative value if there is no numeric code
234 * for the specified uregion.
238 uregion_getNumericCode(const URegion* uregion);
241 * Returns the URegionType of the specified uregion.
245 uregion_getType(const URegion* uregion);