line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Fr::Any::Cm - Package for language French |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Fr::Any::Cm; |
10
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\fr_CM.xml |
11
|
|
|
|
|
|
|
# on Sun 16 Dec 4:16:38 pm GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
915
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
14
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
15
|
1
|
|
|
1
|
|
5
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.0'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
84
|
use v5.10.1; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
5
|
use mro 'c3'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
21
|
1
|
|
|
1
|
|
21
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
22
|
1
|
|
|
1
|
|
41
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
81
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
24
|
1
|
|
|
1
|
|
886
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Fr::Any'); |
27
|
|
|
|
|
|
|
has 'day_period_data' => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => CodeRef, |
30
|
|
|
|
|
|
|
init_arg => undef, |
31
|
|
|
|
|
|
|
default => sub { sub { |
32
|
|
|
|
|
|
|
# Time in hhmm format |
33
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
34
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
35
|
|
|
|
|
|
|
SWITCH: |
36
|
|
|
|
|
|
|
for ($type) { |
37
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
38
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
39
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
40
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
41
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
42
|
|
|
|
|
|
|
&& $time < 400; |
43
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
44
|
|
|
|
|
|
|
&& $time < 2400; |
45
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
46
|
|
|
|
|
|
|
&& $time < 1800; |
47
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
48
|
|
|
|
|
|
|
&& $time < 1200; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
51
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
52
|
|
|
|
|
|
|
&& $time < 1200; |
53
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
54
|
|
|
|
|
|
|
&& $time < 1800; |
55
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
56
|
|
|
|
|
|
|
&& $time < 2400; |
57
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
58
|
|
|
|
|
|
|
&& $time < 400; |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
last SWITCH; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
} }, |
64
|
|
|
|
|
|
|
); |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
around day_period_data => sub { |
67
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
68
|
|
|
|
|
|
|
return $self->$orig; |
69
|
|
|
|
|
|
|
}; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
has 'day_periods' => ( |
72
|
|
|
|
|
|
|
is => 'ro', |
73
|
|
|
|
|
|
|
isa => HashRef, |
74
|
|
|
|
|
|
|
init_arg => undef, |
75
|
|
|
|
|
|
|
default => sub { { |
76
|
|
|
|
|
|
|
'gregorian' => { |
77
|
|
|
|
|
|
|
'format' => { |
78
|
|
|
|
|
|
|
'narrow' => { |
79
|
|
|
|
|
|
|
'am' => q{mat.}, |
80
|
|
|
|
|
|
|
'pm' => q{soir}, |
81
|
|
|
|
|
|
|
}, |
82
|
|
|
|
|
|
|
'wide' => { |
83
|
|
|
|
|
|
|
'am' => q{matin}, |
84
|
|
|
|
|
|
|
'pm' => q{soir}, |
85
|
|
|
|
|
|
|
}, |
86
|
|
|
|
|
|
|
'abbreviated' => { |
87
|
|
|
|
|
|
|
'pm' => q{soir}, |
88
|
|
|
|
|
|
|
'am' => q{mat.}, |
89
|
|
|
|
|
|
|
}, |
90
|
|
|
|
|
|
|
}, |
91
|
|
|
|
|
|
|
'stand-alone' => { |
92
|
|
|
|
|
|
|
'narrow' => { |
93
|
|
|
|
|
|
|
'pm' => q{soir}, |
94
|
|
|
|
|
|
|
'am' => q{mat.}, |
95
|
|
|
|
|
|
|
}, |
96
|
|
|
|
|
|
|
'wide' => { |
97
|
|
|
|
|
|
|
'am' => q{matin}, |
98
|
|
|
|
|
|
|
'pm' => q{soir}, |
99
|
|
|
|
|
|
|
}, |
100
|
|
|
|
|
|
|
'abbreviated' => { |
101
|
|
|
|
|
|
|
'am' => q{mat.}, |
102
|
|
|
|
|
|
|
'pm' => q{soir}, |
103
|
|
|
|
|
|
|
}, |
104
|
|
|
|
|
|
|
}, |
105
|
|
|
|
|
|
|
}, |
106
|
|
|
|
|
|
|
} }, |
107
|
|
|
|
|
|
|
); |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
has 'eras' => ( |
110
|
|
|
|
|
|
|
is => 'ro', |
111
|
|
|
|
|
|
|
isa => HashRef, |
112
|
|
|
|
|
|
|
init_arg => undef, |
113
|
|
|
|
|
|
|
default => sub { { |
114
|
|
|
|
|
|
|
'gregorian' => { |
115
|
|
|
|
|
|
|
}, |
116
|
|
|
|
|
|
|
} }, |
117
|
|
|
|
|
|
|
); |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
has 'date_formats' => ( |
120
|
|
|
|
|
|
|
is => 'ro', |
121
|
|
|
|
|
|
|
isa => HashRef, |
122
|
|
|
|
|
|
|
init_arg => undef, |
123
|
|
|
|
|
|
|
default => sub { { |
124
|
|
|
|
|
|
|
'gregorian' => { |
125
|
|
|
|
|
|
|
}, |
126
|
|
|
|
|
|
|
} }, |
127
|
|
|
|
|
|
|
); |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
has 'time_formats' => ( |
130
|
|
|
|
|
|
|
is => 'ro', |
131
|
|
|
|
|
|
|
isa => HashRef, |
132
|
|
|
|
|
|
|
init_arg => undef, |
133
|
|
|
|
|
|
|
default => sub { { |
134
|
|
|
|
|
|
|
'gregorian' => { |
135
|
|
|
|
|
|
|
}, |
136
|
|
|
|
|
|
|
} }, |
137
|
|
|
|
|
|
|
); |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
140
|
|
|
|
|
|
|
is => 'ro', |
141
|
|
|
|
|
|
|
isa => HashRef, |
142
|
|
|
|
|
|
|
init_arg => undef, |
143
|
|
|
|
|
|
|
default => sub { { |
144
|
|
|
|
|
|
|
'gregorian' => { |
145
|
|
|
|
|
|
|
}, |
146
|
|
|
|
|
|
|
} }, |
147
|
|
|
|
|
|
|
); |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
150
|
|
|
|
|
|
|
is => 'ro', |
151
|
|
|
|
|
|
|
isa => HashRef, |
152
|
|
|
|
|
|
|
init_arg => undef, |
153
|
|
|
|
|
|
|
default => sub { { |
154
|
|
|
|
|
|
|
'gregorian' => { |
155
|
|
|
|
|
|
|
Ehm => q{E h:mm}, |
156
|
|
|
|
|
|
|
Ehms => q{E h:mm:ss}, |
157
|
|
|
|
|
|
|
h => q{h}, |
158
|
|
|
|
|
|
|
hm => q{h:mm}, |
159
|
|
|
|
|
|
|
hms => q{h:mm:ss}, |
160
|
|
|
|
|
|
|
hmsv => q{h:mm:ss v}, |
161
|
|
|
|
|
|
|
hmv => q{h:mm v}, |
162
|
|
|
|
|
|
|
}, |
163
|
|
|
|
|
|
|
} }, |
164
|
|
|
|
|
|
|
); |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
167
|
|
|
|
|
|
|
is => 'ro', |
168
|
|
|
|
|
|
|
isa => HashRef, |
169
|
|
|
|
|
|
|
init_arg => undef, |
170
|
|
|
|
|
|
|
default => sub { { |
171
|
|
|
|
|
|
|
} }, |
172
|
|
|
|
|
|
|
); |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
175
|
|
|
|
|
|
|
is => 'ro', |
176
|
|
|
|
|
|
|
isa => HashRef, |
177
|
|
|
|
|
|
|
init_arg => undef, |
178
|
|
|
|
|
|
|
default => sub { { |
179
|
|
|
|
|
|
|
'gregorian' => { |
180
|
|
|
|
|
|
|
h => { |
181
|
|
|
|
|
|
|
a => q{h â h}, |
182
|
|
|
|
|
|
|
h => q{h â h}, |
183
|
|
|
|
|
|
|
}, |
184
|
|
|
|
|
|
|
hm => { |
185
|
|
|
|
|
|
|
a => q{h:mm â h:mm}, |
186
|
|
|
|
|
|
|
h => q{h:mm â h:mm}, |
187
|
|
|
|
|
|
|
m => q{h:mm â h:mm}, |
188
|
|
|
|
|
|
|
}, |
189
|
|
|
|
|
|
|
hmv => { |
190
|
|
|
|
|
|
|
a => q{h:mm â h:mm v}, |
191
|
|
|
|
|
|
|
h => q{h:mm â h:mm v}, |
192
|
|
|
|
|
|
|
m => q{h:mm â h:mm v}, |
193
|
|
|
|
|
|
|
}, |
194
|
|
|
|
|
|
|
hv => { |
195
|
|
|
|
|
|
|
a => q{h â h v}, |
196
|
|
|
|
|
|
|
h => q{h â h v}, |
197
|
|
|
|
|
|
|
}, |
198
|
|
|
|
|
|
|
}, |
199
|
|
|
|
|
|
|
} }, |
200
|
|
|
|
|
|
|
); |
201
|
|
|
|
|
|
|
|
202
|
1
|
|
|
1
|
|
911
|
no Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
1; |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
# vim: tabstop=4 |