Lines Matching defs:country
46 #define COUNTRY_TAB ZONEINFOTABDIR "country.tab"
56 #define CCLEN 2 /* country code length */
198 * file, for the input continent, and retrieves the country
199 * names from the country.tab file. It also retrieves the localized
200 * country names. The returned list of countries is sorted by the
204 get_tz_countries(struct tz_country **country, struct tz_continent *cont)
221 /* open zone_sun.tab and country.tab files */
255 * If country matches previously *matched* country, skip
256 * entry, since zone.tab is alphabetized by country code
257 * (It should be a *matched* country, because the same country
260 /* Get country code */
267 /* Check country code cache; skip if already found */
288 /* If continents match, allocate a country struct */
297 /* Copy and save country code (len already checked) */
317 /* Get country name from country.tab; get localized country name */
318 /* Read country list, match country codes to process entry */
340 /* Match country codes */
347 /* Get country description, and localized desc. */
348 /* Skip to country description */
355 lp += len; /* lp points to country desc. */
366 /* Get localized country description */
375 /* Keep searching country.tab */
410 /* Rearrange the country list according to qsort order */
438 *country = head;
445 * zone_sun.tab file, for the input country.
449 struct tz_country *country)
486 * Find country entries, or detect if no country matches.
494 if (strncmp(country->ctry_code, lp_cc, CCLEN) == 0) {
585 /* Get localized country description */
619 * the input country, then we've found all of
621 * be past that country's section in
661 free_tz_countries(struct tz_country *country)
665 cptr = country;
1380 * for locale-sensitive comparison for the localized country names.