/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Locale-SubCountry/blib/html/site/lib/Locale/SubCountry.html


regional_division</pre> <p>Given a sub country object, the <code>regional_division</code> method takes the ISO 3166-2 code of a sub country and returns the sub country's regionional_division. This is, an alphanumeric code. The regional_division is returned as a capitalised string, or &quot;unknown&quot; if no match is found.</p> <p> </p> <h2><a name=``has_sub_countries''>has_sub_countries</a></h2> <p>Given a sub country object, the <code>has_sub_countries</code> method returns 1 if the current country has sub countries, or 0 if it does not. Some small countires such as Singapore do not have sub countries.</p> <p> </p> <h2><a name=``fips10_4_code''>FIPS10_4_code</a></h2> <p>Given a sub country object, the <code>FIPS_10_4_code</code> method takes the ISO 3166-2 code of a sub country and returns the sub country's FIPS 10-4 code, or the string 'unknown', if none exists. FIPS is a standard developed by the US government.</p> <p> </p> <h2><a name=``iso3166_2_code''>ISO3166_2_code</a></h2> <p>Given a sub country object, the <code>ISO3166_2_code</code> method takes the FIPS 10-4 code of a sub country and returns the sub country's ISO 3166-2 code, or the string 'unknown', if none exists.</p> <p> </p> <h2><a name=``full_name_code_hash__for_subcountry_objects_''>full_name_code_hash (for subcountry objects)</a></h2> <p>Given a sub country object, returns a hash of all full name/code pairs, keyed by sub country name. If the country has no sub countries, returns undef.</p> <p> </p> <h2><a name=``code_full_name_hash__for_subcountry_objects_''>code_full_name_hash (for subcountry objects)</a></h2> <p>Given a sub country object, returns a hash of all code/full name pairs, keyed by sub country code. If the country has no sub countries, returns undef.</p> <p> </p> <h2><a name=``all_full_names__for_subcountry_objects_''>all_full_names (for subcountry objects)</a></h2> <p>Given a sub country object, returns an array of all sub country full names, sorted alphabetically. If the country has no sub countries, returns undef.</p> <p> </p> <h2><a name=``all_codes__for_subcountry_objects_''>all_codes (for subcountry objects)</a></h2> <p>Given a sub country object, returns an array of all sub country ISO 3166-2 codes, sorted alphabetically. If the country has no sub countries, returns undef.</p> <p> </p> <hr /> <h1><a name=``see_also''>SEE ALSO</a></h1> <p>ISO 3166-1:1997 Codes for the representation of names of countries and their subdivisions - Part 1: Country codes</p> <p>ISO 3166-2:1998 Codes for the representation of names of countries and their subdivisions - Part 2: Country subdivision code Also released as AS/NZS 2632.2:1999</p> <p>Federal Information Processing Standards Publication 10-4 1995 April Specifications for COUNTRIES, DEPENDENCIES, AREAS OF SPECIAL SOVEREIGNTY, AND THEIR PRINCIPAL ADMINISTRATIVE DIVISION/p <p><a href=``http://www.statoids.com/statoids.html''>http://www.statoids.com/statoids.html</p> <p><a href=``../../../lib/Locale/Country.html''>the Locale::Country manpage</a>,<a href=``../../../Lingua/EN/AddressParse.html''>the Lingua::EN::AddressParse manpage</a>, <a href=``../../../site/lib/Geo/StreetAddress/US.html''>the Geo::StreetAddress::US manpage</a><a href=``../../../Geo/PostalAddress.html''>the Geo::PostalAddress manpage</a><a href=``../../../Geo/IP.html''>the Geo::IP manpage</a></p> <p> </p> <hr /> <h1><a name=``limitations''>LIMITATION/a</h1> <p>ISO 3166-2:1998 defines all sub country codes as being up to 3 letters and/or numbers. These codes are commonly accepted for countries like the USA and Canada. In Australia this method of abbreviation is not widely accepted. For example, the ISO code for 'New South Wales' is 'NS', but 'NSW' is the abbreviation that is most commonly used. I could add a flag to enforce ISO-3166-2 codes if needed.</p> <p>The ISO 3166-2 standard romanizes the names of provinces and regions in non-latin script areas, such as Russia and South Korea. One Romanisation is given for each province name. For Russia, the BGN (1947) Romanization is used.</p> <p>Several sub country names have more than one code, and may not return the correct code for that sub country. These entries are usually duplicated because the name represents two different types of sub country, such as a province and a geographical unit. Examples are:</p> <pre> <span class=``variable''>AZERBAIJAN</span> <span class=``operator''>:</span> <span class=``variable''>spanä<span class=``variable''>nk</span>ä<span class=``variable''>ran</span><span class=``operator''>;</span> <span class=``variable''>LA</span> <span class=``operator''>(</span><span class=``variable''>the</span> <span class=``variable''>City</span><span class=``operator''>),</span> <span class=``variable''>LAN</span> <span class=``operator''>(</span><span class=``variable''>the</span> <span class=``variable''>Rayon</span><span class=``operator''>)</span> <span class=``variable''>AZERBAIJAN</span> <span class=``operator''>:</span> <span class=``variable''>/spanä<span class=``variable''>ki</span><span class=``operator''>;</span> <span class=``variable''>SA</span><span class=``operator''>,</span><span class=``variable''>SAK</span> <span class=``variable''>AZERBAIJAN</span> <span class=``operator''>:</span> <span class=``variable''>Susa</span><span class=``operator''>;</span> <span class=``variable''>S/span<span class=``operator''>,</span><span class=``variable''>SU/span <span class=``variable''>AZERBAIJAN</span> <span class=``operator''>:</span> <span class=``variable''>Yevlax</span><span class=``operator''>;</span> <span class=``variable''>Y&Y;/span><span class=``operator''>,</span><span class=``variable''>YEV</span> <span class=``variable''>INDONESIA</span> <span class=``operator''>:</span> <span class=``variable''>Kalimantan</span> <span class=``variable''>Timur</span><span class=``operator''>;</span> <span class=``variable''>K/span<span class=``operator''>,</span><span class=``variable''>KT</span> <span class=``variable''>LAO/span <span class=``operator''>:</span> <span class=``variable''>Vientiane</span> <span class=``variable''>V/span<span class=``operator''>,</span><span class=``variable''>VT</span> <span class=``variable''>MOLDOVA</span> <span class=``operator''>:</span> <span class=``variable''>Hahul</span><span class=``operator''>;</span> <span class=``variable''>CA</span><span class=``operator''>,</span><span class=``variable''>CHspan <span class=``variable''>MOLDOVA</span> <span class=``operator''>:</span> <span class=``variable''>Bubasari</span><span class=``operator''>;</span> <span class=``variable''>DU</span><span class=``operator''>,</span><span class=``variable''>DB/span <span class=``variable''>MOLDOVA</span> <span class=``operator''>:</span> <span class=``variable''>Hrhei</span><span class=``operator''>;</span> <span class=``variable''>OR</span><span class=``operator''>,</span><span class=``variable''>OH/span <span class=``variable''>MOLDOVA</span> <span class=``operator''>:</span> <span class=``variable''>Coroca</span><span class=``operator''>;</span> <span class=``variable''>SO</span><span class=``operator''>,</span><span class=``variable''>SOA</span> <span class=``variable''>MOLDOVA</span> <span class=``operator''>:</span> <span class=``variable''>Gngheni</span><span class=``operator''>;</span> <span class=``variable''>UN</span><span class=``operator''>,</span><span class=``variable''>UG/span <span class=``variable''>MOZAMBIQU&MOZAMBIQU;/span> <span class=``operator''>:</span> <span class=``variable''>Maputo</span><span class=``operator''>;</span> <span class=``variable''>MPM</span><span class=``operator''>,</span><span class=``variable''>span </pre> <p>FIPS codes are not provided for all sub countries.</p> <p> </p> <hr /> <h1><a name=``bugs''>BUG/a</h1> <p>None known</p> <p> </p> <hr /> <h1><a name=``author''>AUTHOR</a></h1> <p>Locale::SubCountry was written by Kim Ryan &lt;kimryan at cpan dot org&gt;.</p> <p> </p> <hr /> <h1><a name=``credits''>CREDIT/a</h1> <p>Alastair McKinstry provided many of the sub country codes and names.</p> <p>Terrence Brannon produced Locale::US, which was the starting point for this module.</p> <p>Mark Summerfield and Guy Fraser provided the list of UK counties.</p> <p>TJ Mather supplied the FIPS codes and many ammendments to the sub country data</p> <p> </p> <hr /> <h1><a name=``copyright_and_license''>COPYRIGHT AND LICENS©RIGHT AND LICENS;/a></h1> <p>Copyright (c) 2006 Kim Ryan. All rights reserved.</p> <p>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.</p>

</body>

</html>

 /Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Locale-SubCountry/blib/html/site/lib/Locale/SubCountry.html