Add some more TLDs to $country(), synchronised with the IANA list: .ax, .eu,
.me, .rs, .tl, .asia, .cat, .jobs, .tel and .travel. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@113 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[Changes 1.2c01]
|
[Changes 1.2c01]
|
||||||
|
|
||||||
* Improve country() and add .mobi TLD. (caf)
|
* Improve country() and add several new TLDs, suggested by gauze. (caf)
|
||||||
|
|
||||||
* Apply fixes from darkfires removing non-standard use of arithmetic on
|
* Apply fixes from darkfires removing non-standard use of arithmetic on
|
||||||
void * values, to allow building on Irix. (caf)
|
void * values, to allow building on Irix. (caf)
|
||||||
|
|||||||
@@ -4925,6 +4925,7 @@ static const struct {
|
|||||||
{"AT", "Austria" },
|
{"AT", "Austria" },
|
||||||
{"AU", "Australia" },
|
{"AU", "Australia" },
|
||||||
{"AW", "Aruba" },
|
{"AW", "Aruba" },
|
||||||
|
{"AX", "Aland" },
|
||||||
{"AZ", "Azerbaijan" },
|
{"AZ", "Azerbaijan" },
|
||||||
{"BA", "Bosnia and Herzegovina" },
|
{"BA", "Bosnia and Herzegovina" },
|
||||||
{"BB", "Barbados" },
|
{"BB", "Barbados" },
|
||||||
@@ -4947,9 +4948,9 @@ static const struct {
|
|||||||
{"BZ", "Belize" },
|
{"BZ", "Belize" },
|
||||||
{"CA", "Canada (pHEAR)" },
|
{"CA", "Canada (pHEAR)" },
|
||||||
{"CC", "Cocos (Keeling) Islands" },
|
{"CC", "Cocos (Keeling) Islands" },
|
||||||
{"CD", "Democratic Republic of the Congo" },
|
{"CD", "Congo-Kinshasa" },
|
||||||
{"CF", "Central African Republic" },
|
{"CF", "Central African Republic" },
|
||||||
{"CG", "Congo" },
|
{"CG", "Congo-Brazzaville" },
|
||||||
{"CH", "Switzerland" },
|
{"CH", "Switzerland" },
|
||||||
{"CI", "Cote D'Ivoire" },
|
{"CI", "Cote D'Ivoire" },
|
||||||
{"CK", "Cook Islands" },
|
{"CK", "Cook Islands" },
|
||||||
@@ -4976,10 +4977,11 @@ static const struct {
|
|||||||
{"ER", "Eritrea" },
|
{"ER", "Eritrea" },
|
||||||
{"ES", "Spain" },
|
{"ES", "Spain" },
|
||||||
{"ET", "Ethiopia" },
|
{"ET", "Ethiopia" },
|
||||||
|
{"EU", "European Union" },
|
||||||
{"FI", "Finland" },
|
{"FI", "Finland" },
|
||||||
{"FJ", "Fiji" },
|
{"FJ", "Fiji" },
|
||||||
{"FK", "Falkland Islands" },
|
{"FK", "Falkland Islands" },
|
||||||
{"FM", "Federal State of Micronesia" },
|
{"FM", "Micronesia" },
|
||||||
{"FO", "Faroe Islands" },
|
{"FO", "Faroe Islands" },
|
||||||
{"FR", "France" },
|
{"FR", "France" },
|
||||||
{"GA", "Gabon" },
|
{"GA", "Gabon" },
|
||||||
@@ -5004,7 +5006,7 @@ static const struct {
|
|||||||
{"HK", "Hong Kong" },
|
{"HK", "Hong Kong" },
|
||||||
{"HM", "Heard and McDonald Islands" },
|
{"HM", "Heard and McDonald Islands" },
|
||||||
{"HN", "Honduras" },
|
{"HN", "Honduras" },
|
||||||
{"HR", "Croatia/Hrvatska" },
|
{"HR", "Croatia" },
|
||||||
{"HT", "Haiti" },
|
{"HT", "Haiti" },
|
||||||
{"HU", "Hungary" },
|
{"HU", "Hungary" },
|
||||||
{"ID", "Indonesia" },
|
{"ID", "Indonesia" },
|
||||||
@@ -5046,6 +5048,7 @@ static const struct {
|
|||||||
{"MA", "Morocco" },
|
{"MA", "Morocco" },
|
||||||
{"MC", "Monaco" },
|
{"MC", "Monaco" },
|
||||||
{"MD", "Moldova" },
|
{"MD", "Moldova" },
|
||||||
|
{"ME", "Montenegro" },
|
||||||
{"MG", "Madagascar" },
|
{"MG", "Madagascar" },
|
||||||
{"MH", "Marshall Islands" },
|
{"MH", "Marshall Islands" },
|
||||||
{"MK", "Macedonia" },
|
{"MK", "Macedonia" },
|
||||||
@@ -5094,6 +5097,7 @@ static const struct {
|
|||||||
{"QA", "Qatar" },
|
{"QA", "Qatar" },
|
||||||
{"RE", "Reunion Island" },
|
{"RE", "Reunion Island" },
|
||||||
{"RO", "Romania" },
|
{"RO", "Romania" },
|
||||||
|
{"RS", "Serbia" },
|
||||||
{"RU", "Russian Federation (pHEAR)" },
|
{"RU", "Russian Federation (pHEAR)" },
|
||||||
{"RW", "Rwanda" },
|
{"RW", "Rwanda" },
|
||||||
{"SA", "Saudi Arabia" },
|
{"SA", "Saudi Arabia" },
|
||||||
@@ -5114,7 +5118,7 @@ static const struct {
|
|||||||
{"ST", "Sao Tome and Principe" },
|
{"ST", "Sao Tome and Principe" },
|
||||||
{"SU", "Former USSR (pHEAR)" },
|
{"SU", "Former USSR (pHEAR)" },
|
||||||
{"SV", "El Salvador" },
|
{"SV", "El Salvador" },
|
||||||
{"SY", "Syrian Arab Republic" },
|
{"SY", "Syria" },
|
||||||
{"SZ", "Swaziland" },
|
{"SZ", "Swaziland" },
|
||||||
{"TC", "Turks and Caicos Islands" },
|
{"TC", "Turks and Caicos Islands" },
|
||||||
{"TD", "Chad" },
|
{"TD", "Chad" },
|
||||||
@@ -5123,6 +5127,7 @@ static const struct {
|
|||||||
{"TH", "Thailand" },
|
{"TH", "Thailand" },
|
||||||
{"TJ", "Tajikistan" },
|
{"TJ", "Tajikistan" },
|
||||||
{"TK", "Tokelau" },
|
{"TK", "Tokelau" },
|
||||||
|
{"TL", "East Timor" },
|
||||||
{"TM", "Turkmenistan" },
|
{"TM", "Turkmenistan" },
|
||||||
{"TN", "Tunisia" },
|
{"TN", "Tunisia" },
|
||||||
{"TO", "Tonga" },
|
{"TO", "Tonga" },
|
||||||
@@ -5139,7 +5144,7 @@ static const struct {
|
|||||||
{"US", "United States of America" },
|
{"US", "United States of America" },
|
||||||
{"UY", "Uruguay" },
|
{"UY", "Uruguay" },
|
||||||
{"UZ", "Uzbekistan" },
|
{"UZ", "Uzbekistan" },
|
||||||
{"VA", "Vatican City State" },
|
{"VA", "Vatican City" },
|
||||||
{"VC", "St. Vincent and the Grenadines" },
|
{"VC", "St. Vincent and the Grenadines" },
|
||||||
{"VE", "Venezuela" },
|
{"VE", "Venezuela" },
|
||||||
{"VG", "British Virgin Islands" },
|
{"VG", "British Virgin Islands" },
|
||||||
@@ -5157,13 +5162,16 @@ static const struct {
|
|||||||
{"ZW", "Zimbabwe" },
|
{"ZW", "Zimbabwe" },
|
||||||
{"AERO", "Air Transport Industry" },
|
{"AERO", "Air Transport Industry" },
|
||||||
{"ARPA", "Reverse DNS" },
|
{"ARPA", "Reverse DNS" },
|
||||||
|
{"ASIA", "Asia-Pacific" },
|
||||||
{"BIZ", "Business" },
|
{"BIZ", "Business" },
|
||||||
|
{"CAT", "Catalan Language" },
|
||||||
{"COOP", "Cooperative Association" },
|
{"COOP", "Cooperative Association" },
|
||||||
{"COM", "Commercial" },
|
{"COM", "Commercial" },
|
||||||
{"EDU", "Educational Institution" },
|
{"EDU", "Educational Institution" },
|
||||||
{"GOV", "United States Government" },
|
{"GOV", "United States Government" },
|
||||||
{"INFO", "Informational" },
|
{"INFO", "Informational" },
|
||||||
{"INT", "International" },
|
{"INT", "International" },
|
||||||
|
{"JOBS", "Employment Advertisements" },
|
||||||
{"MIL", "United States Military" },
|
{"MIL", "United States Military" },
|
||||||
{"MOBI", "Mobile Device" },
|
{"MOBI", "Mobile Device" },
|
||||||
{"MUSEUM", "Museum" },
|
{"MUSEUM", "Museum" },
|
||||||
@@ -5171,6 +5179,8 @@ static const struct {
|
|||||||
{"NAME", "Individuals" },
|
{"NAME", "Individuals" },
|
||||||
{"ORG", "Organization" },
|
{"ORG", "Organization" },
|
||||||
{"PRO", "Professional" },
|
{"PRO", "Professional" },
|
||||||
|
{"TEL", "Contact Information" },
|
||||||
|
{"TRAVEL", "Travel Industry" },
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
char *p;
|
char *p;
|
||||||
|
|||||||
Reference in New Issue
Block a user