line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Locale::Currency; |
2
|
|
|
|
|
|
|
# Copyright (C) 2001 Canon Research Centre Europe (CRE). |
3
|
|
|
|
|
|
|
# Copyright (C) 2002-2009 Neil Bowers |
4
|
|
|
|
|
|
|
# Copyright (c) 2010-2023 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: Wed Jun 7 11:50:23 EDT 2023 |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
3770
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
13
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
14
|
|
|
|
|
|
|
require 5.006; |
15
|
1
|
|
|
1
|
|
5
|
use Exporter qw(import); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
57
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our($VERSION,@EXPORT); |
18
|
|
|
|
|
|
|
$VERSION = '3.74'; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
################################################################################ |
21
|
1
|
|
|
1
|
|
547
|
use if $] >= 5.027007, 'deprecate'; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
5
|
|
22
|
1
|
|
|
1
|
|
410
|
use Locale::Codes; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
23
|
1
|
|
|
1
|
|
5
|
use Locale::Codes::Constants; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
511
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
@EXPORT = qw( |
26
|
|
|
|
|
|
|
code2currency |
27
|
|
|
|
|
|
|
code2currencys |
28
|
|
|
|
|
|
|
currency2code |
29
|
|
|
|
|
|
|
all_currency_codes |
30
|
|
|
|
|
|
|
all_currency_names |
31
|
|
|
|
|
|
|
currency_code2code |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
push(@EXPORT,@Locale::Codes::Constants::CONSTANTS_CURRENCY); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
our $obj = new Locale::Codes('currency'); |
36
|
|
|
|
|
|
|
$obj->show_errors(0); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub show_errors { |
39
|
1
|
|
|
1
|
1
|
65
|
my($val) = @_; |
40
|
1
|
|
|
|
|
3
|
$obj->show_errors($val); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub code2currency { |
44
|
16
|
|
|
16
|
1
|
2123
|
return $obj->code2name(@_); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub code2currencys { |
48
|
0
|
|
|
0
|
1
|
0
|
return $obj->code2names(@_); |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub currency2code { |
52
|
5
|
|
|
5
|
1
|
18177
|
return $obj->name2code(@_); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub currency_code2code { |
56
|
1
|
|
|
1
|
1
|
148
|
return $obj->code2code(@_); |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub all_currency_codes { |
60
|
1
|
|
|
1
|
1
|
155
|
return $obj->all_codes(@_); |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub all_currency_names { |
64
|
1
|
|
|
1
|
1
|
182
|
return $obj->all_names(@_); |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub rename_currency { |
68
|
1
|
|
|
1
|
1
|
186
|
return $obj->rename_code(@_); |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub add_currency { |
72
|
1
|
|
|
1
|
1
|
171
|
return $obj->add_code(@_); |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub delete_currency { |
76
|
1
|
|
|
1
|
1
|
163
|
return $obj->delete_code(@_); |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
sub add_currency_alias { |
80
|
1
|
|
|
1
|
1
|
167
|
return $obj->add_alias(@_); |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
sub delete_currency_alias { |
84
|
1
|
|
|
1
|
1
|
142
|
return $obj->delete_alias(@_); |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
sub rename_currency_code { |
88
|
1
|
|
|
1
|
1
|
142
|
return $obj->replace_code(@_); |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub add_currency_code_alias { |
92
|
1
|
|
|
1
|
1
|
146
|
return $obj->add_code_alias(@_); |
93
|
|
|
|
|
|
|
} |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub delete_currency_code_alias { |
96
|
1
|
|
|
1
|
1
|
143
|
return $obj->delete_code_alias(@_); |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
1; |