1 Revision history for Perl CPAN module Locale::SubCountry
4 - Unofficial developer release
5 - UTF-8 encoding (CPAN RT #38559)
6 - Remove trailing spaces from subcountry names (CPAN RT#38597)
9 Added FIPS codes for UK, thanks to TJMATHER for patch, RT bug #32899
12 Changed regexp match on XML country filed to account for both Unix and MSDOS line endings
13 Converted files to Unix line endings
16 Alowed for sub countires with no ISO code, such as Shariff Kabunsuan in the Phillipines
17 Thanks to Matt Loschert for pointing this out.
21 Changed sub country names in Sudan and Phillipines
22 Added examples/demo.pl
25 Removed invalid characters in data for Iran, United Arab Emirates and Oman
26 Removed alternate names (appended to end of main names in brackects) from many sub countries
28 NOTE: new method now issues warning and returns undef if invalid country code or
29 name parameter is passed. Previous versions died inside the new method.
32 Added regions for Andorra
33 Added regions for Grenada
34 Updated distribution to current CPAN requirements
38 Fixed problem with name space pollution for $VERSION variable
40 Added data for the following countries
48 For Cape Verde, changed Calheta de São Miguel to São Miguel
49 For Venezuela, changed Distrito Federal to Distrito Capital
50 Added districts for Honduras
53 Fixed typo in XML data for American Samoa
55 Added 'has_sub_countries' method to determine if a country has any sub countries
56 (some such a Singapore do not). Updated synopsis to show it's use.
59 Fixed pattern matching in data loader to allow for accented characters
62 Added 'use locale' to main.t to stop 'make test' errors
65 Moved XML data back into main module.
66 Corrected documentation
70 Completely updated data, many new countries and sub countries added
71 Added countries without sub countries, such as Singapore
72 Stored data in separate file in XML format
74 Added method 'category' to return the type of subcountry such as state, city etc
75 NOTE: this replaces the 'sub_country_type' method
77 Added method 'regional_division' to return the regional_division of subcountry
78 such as SCT (Scotland) for Edinburgh
82 Added data for Finland and Singapore, thanks to Chris McKay
85 Removed use of $_ in initialization code, as suggested by Ilya Martynov
86 Corrected country code for Iran, thanks to Todd A. Green
87 Removed Exporter references, as suggested by TJ Mather
88 Added Timor-Leste as a new country (East Timor)
89 Changed Canadian province of Newfoundland to Newfoundland and Labrador
93 Fixed bug in test script main.t
97 Added methods to new Locale::SubCountry::World package
101 - full_name_code_hash
102 - code_full_name_hash
105 all_full_names method replaces the stand alone all_country_names function
106 all_codes method replaces the stand alone all_country_codes function
107 The above method names duplicate existing method names (polymorphism),
108 so make sure you are working with the right type of object first.
110 These changes were necessary because of user requests for country name
111 and code look ups prior to sub-country lookups. Previous versions would not
112 work with Locale::Country because of a clash in exported names. Thanks to
113 Todd Green for this suggestion.
115 Added the FIPS 10-4 (US standard) for many sub countries
116 Added FIPS10_4_code method
117 Added ISO3166_2_code method
118 Added many corrections to sub country names
119 Thanks to TJ Mather for adding FIPS codes and fixing other data errors
121 Added extra tests to main.t
122 Prefixed internal data structure elements with a dash, to follow OO convention
125 Corrected codes for Corsica, France, thanks to Mathias Herberts
128 Replaced INIT block with annonymous subroutine. This removed problems
129 that occurred when mod_perl or eval statements were used.
132 Added code for US, West Virginia (WV), thanks to Michelle Agnew
135 Made many corrections to country data to align it with ISO:3166-2 standard
136 Defined sub country types for all countries
137 Added information for Israel and Albania
138 Removed some MS-DOS line terminators that were generating warnings
139 Added two more tests to main.t
143 Corrected errors in German sub countries thanks to Lars Steubesand
145 Corrected errors in data for Austria, Poland, Romania, Turkey, Germany and
146 Columbia. Thanks to Philip Newton.
149 Allowed countries to be specified by either full name or two letter code
150 Made country names compatible with ISO 3166-1 standard
151 Added country_code method to retrieve ISO code for current object
152 Added all_country_codes method to retrieve ISO codes for all countries
153 Corrected abbreviation for Canadian province of Nunavut
154 Thanks to Trevor Schellhorn for these suggestions
156 Corrected two Belgium sub countries. Thanks to Wim Verhaegen
160 sub_country_type method returns 'unknown' when no data defined
161 Fixed bug in mismatch count in main.t test module
164 Added all remaining countries, thanks to Alastair McKinstry
165 Included sub country type (state, county etc) in lookup data
166 Added country and sub_country_type methods
167 Accounted for sub country codes of 0
170 Added many more countries, thanks to Alastair McKinstry
171 Now account for any incorrect capitalization of sub country names
172 _clean subroutine only removes dots and spaces, dashes are now allowed
173 Added subroutine to return array of countries that have lookup data
174 Added test in main.t to convert all codes to names and back again
175 Allowed for leading or trailing white space in __DATA__ entries
178 Added Canadian province of Nunavut, thanks to Steve Taylor
181 To follow the approach of ISO 3166-2
182 - renamed module from RegionAbbrev to SubCountry
183 - replaced all references to 'abbreviation' with 'code'
185 Improved regexes in _clean, thanks to Mark Summerfield
186 Replaced regexp with hash lookup for valid countries
187 Accepted all forms of upper/lower case in country name