1package Locale::Country;
2# Copyright (C) 2001      Canon Research Centre Europe (CRE).
3# Copyright (C) 2002-2009 Neil Bowers
4# Copyright (c) 2010-2020 Sullivan Beck
5# This program is free software; you can redistribute it and/or modify it
6# under the same terms as Perl itself.
7
8# This file was automatically generated.  Any changes to this file will
9# be lost the next time 'gen_mods' is run.
10#    Generated on: Tue Jun  2 12:18:37 EDT 2020
11
12use strict;
13use warnings;
14require 5.006;
15use Exporter qw(import);
16
17our($VERSION,@EXPORT);
18$VERSION   = '3.64';
19
20################################################################################
21use if $] >= 5.027007, 'deprecate';
22use Locale::Codes;
23use Locale::Codes::Constants;
24
25@EXPORT    = qw(
26                code2country
27                country2code
28                all_country_codes
29                all_country_names
30                country_code2code
31               );
32push(@EXPORT,@Locale::Codes::Constants::CONSTANTS_COUNTRY);
33
34our $obj = new Locale::Codes('country');
35$obj->show_errors(0);
36
37sub show_errors {
38   my($val) = @_;
39   $obj->show_errors($val);
40}
41
42sub code2country {
43   return $obj->code2name(@_);
44}
45
46sub country2code {
47   return $obj->name2code(@_);
48}
49
50sub country_code2code {
51   return $obj->code2code(@_);
52}
53
54sub all_country_codes {
55   return $obj->all_codes(@_);
56}
57
58sub all_country_names {
59   return $obj->all_names(@_);
60}
61
62sub rename_country {
63   return $obj->rename_code(@_);
64}
65
66sub add_country {
67   return $obj->add_code(@_);
68}
69
70sub delete_country {
71   return $obj->delete_code(@_);
72}
73
74sub add_country_alias {
75   return $obj->add_alias(@_);
76}
77
78sub delete_country_alias {
79   return $obj->delete_alias(@_);
80}
81
82sub rename_country_code {
83   return $obj->replace_code(@_);
84}
85
86sub add_country_code_alias {
87   return $obj->add_code_alias(@_);
88}
89
90sub delete_country_code_alias {
91   return $obj->delete_code_alias(@_);
92}
93
941;
95