Lines Matching full:country
3 * IP-address/hostname to country converter.
12 * The 2 letter country code is in <CC> and the ISO-3166 country
221 * Extract the CNAME and figure out the country-code from it.
263 int country_number; /* ISO-3166 country number */
264 char short_name[3]; /* A2 short country code */
265 const char *long_name; /* normal country name */
548 * Find the country-code and name from the CNAME. E.g.:
556 const struct search_list *country; in find_country_from_cname() local
606 TRACE(("Found country-code `%s', number %d\n", in find_country_from_cname()
609 country = list_lookup(cnumber, country_list, in find_country_from_cname()
611 if (!country) in find_country_from_cname()
612 printf("Name for country-number %d not found.\n", cnumber); in find_country_from_cname()
617 if ((country->short_name[0] != ccode_A2[0]) || in find_country_from_cname()
618 (country->short_name[1] != ccode_A2[1]) || in find_country_from_cname()
619 (country->short_name[2] != ccode_A2[2])) in find_country_from_cname()
621 country->short_name, ccode_A2); in find_country_from_cname()
624 country->long_name, country->short_name, cnumber); in find_country_from_cname()