lib/Locale/Codes/Country.pm

filter: Statementstmt 100% 42 / 42 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 21 / 21 Podpod 100% 15 / 15 totaltotal 100% 78 / 78 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Locale/Codes/Constants.pm ↑ Summary lib/Locale/Codes/Country_Codes.pm »
1 package Locale::Codes::Country;
2 # Copyright (C) 2001 Canon Research Centre Europe (CRE).
3 # Copyright (C) 2002-2009 Neil Bowers
4 # Copyright (c) 2010-2026 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 Sep 1 12:13:46 EDT 2026
11  
12 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 require 5.006;
15 1 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 our($VERSION,@EXPORT);
18 1 $VERSION = '3.91';
19  
20 ################################################################################
21 1 ▶use if $] >= 5.027007, 'deprecate';
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use Locale::Codes;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use Locale::Codes::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 1 @EXPORT = qw(
26 code2country
27 code2countrys
28 country2code
29 all_country_codes
30 all_country_names
31 country_code2code
32 );
33 1 push(@EXPORT,@Locale::Codes::Constants::CONSTANTS_COUNTRY);
34  
35 1 our $obj = new Locale::Codes('country');
36 1 $obj->show_errors(0);
37  
38 1 ▶sub show_errors {
Subroutine show_errors: called CC=1 SCAR=0.0
Pod documented
39 1 my($val) = @_;
40 1 $obj->show_errors($val);
41 }
42  
43 75 ▶sub code2country {
Subroutine code2country: called CC=1 SCAR=0.0
Pod documented
44 75 return $obj->code2name(@_);
45 }
46  
47 1 ▶sub code2countrys {
Subroutine code2countrys: called CC=1 SCAR=0.0
Pod documented
48 1 return $obj->code2names(@_);
49 }
50  
51 67 ▶sub country2code {
Subroutine country2code: called CC=1 SCAR=0.0
Pod documented
52 67 return $obj->name2code(@_);
53 }
54  
55 17 ▶sub country_code2code {
Subroutine country_code2code: called CC=1 SCAR=0.0
Pod documented
56 17 return $obj->code2code(@_);
57 }
58  
59 3 ▶sub all_country_codes {
Subroutine all_country_codes: called CC=1 SCAR=0.0
Pod documented
60 3 return $obj->all_codes(@_);
61 }
62  
63 3 ▶sub all_country_names {
Subroutine all_country_names: called CC=1 SCAR=0.0
Pod documented
64 3 return $obj->all_names(@_);
65 }
66  
67 7 ▶sub rename_country {
Subroutine rename_country: called CC=1 SCAR=0.0
Pod documented
68 7 return $obj->rename_code(@_);
69 }
70  
71 13 ▶sub add_country {
Subroutine add_country: called CC=1 SCAR=0.0
Pod documented
72 13 return $obj->add_code(@_);
73 }
74  
75 5 ▶sub delete_country {
Subroutine delete_country: called CC=1 SCAR=0.0
Pod documented
76 5 return $obj->delete_code(@_);
77 }
78  
79 6 ▶sub add_country_alias {
Subroutine add_country_alias: called CC=1 SCAR=0.0
Pod documented
80 6 return $obj->add_alias(@_);
81 }
82  
83 6 ▶sub delete_country_alias {
Subroutine delete_country_alias: called CC=1 SCAR=0.0
Pod documented
84 6 return $obj->delete_alias(@_);
85 }
86  
87 7 ▶sub rename_country_code {
Subroutine rename_country_code: called CC=1 SCAR=0.0
Pod documented
88 7 return $obj->replace_code(@_);
89 }
90  
91 7 ▶sub add_country_code_alias {
Subroutine add_country_code_alias: called CC=1 SCAR=0.0
Pod documented
92 7 return $obj->add_code_alias(@_);
93 }
94  
95 5 ▶sub delete_country_code_alias {
Subroutine delete_country_code_alias: called CC=1 SCAR=0.0
Pod documented
96 5 return $obj->delete_code_alias(@_);
97 }
98  
99 1 1;
« blib/lib/Locale/Codes/Constants.pm ↑ Summary lib/Locale/Codes/Country_Codes.pm »