line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Fr::Any::Re - Package for language French |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/fr_RE.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:28:40 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
746
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
21
|
|
14
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
15
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
73
|
use mro 'c3'; |
|
1
|
|
|
|
|
4
|
|
20
|
1
|
|
|
1
|
|
5
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
20
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
22
|
1
|
|
|
1
|
|
38
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
23
|
1
|
|
|
1
|
|
99
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
24
|
1
|
|
|
1
|
|
774
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Fr::Any'); |
26
|
|
|
|
|
|
|
has 'day_period_data' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => CodeRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { sub { |
31
|
|
|
|
|
|
|
# Time in hhmm format |
32
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
33
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
34
|
|
|
|
|
|
|
SWITCH: |
35
|
|
|
|
|
|
|
for ($type) { |
36
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
37
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
38
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
39
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
40
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
41
|
|
|
|
|
|
|
&& $time < 1800; |
42
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
43
|
|
|
|
|
|
|
&& $time < 2400; |
44
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
45
|
|
|
|
|
|
|
&& $time < 1200; |
46
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
47
|
|
|
|
|
|
|
&& $time < 400; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
50
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
51
|
|
|
|
|
|
|
&& $time < 1800; |
52
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
53
|
|
|
|
|
|
|
&& $time < 2400; |
54
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
55
|
|
|
|
|
|
|
&& $time < 1200; |
56
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
57
|
|
|
|
|
|
|
&& $time < 400; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
last SWITCH; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
} }, |
63
|
|
|
|
|
|
|
); |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
around day_period_data => sub { |
66
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
67
|
|
|
|
|
|
|
return $self->$orig; |
68
|
|
|
|
|
|
|
}; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
has 'day_periods' => ( |
71
|
|
|
|
|
|
|
is => 'ro', |
72
|
|
|
|
|
|
|
isa => HashRef, |
73
|
|
|
|
|
|
|
init_arg => undef, |
74
|
|
|
|
|
|
|
default => sub { { |
75
|
|
|
|
|
|
|
'gregorian' => { |
76
|
|
|
|
|
|
|
'format' => { |
77
|
|
|
|
|
|
|
'abbreviated' => { |
78
|
|
|
|
|
|
|
'afternoon1' => q{ap.m.}, |
79
|
|
|
|
|
|
|
'evening1' => q{soir}, |
80
|
|
|
|
|
|
|
'midnight' => q{min.}, |
81
|
|
|
|
|
|
|
'morning1' => q{mat.}, |
82
|
|
|
|
|
|
|
'night1' => q{nuit}, |
83
|
|
|
|
|
|
|
'noon' => q{midi}, |
84
|
|
|
|
|
|
|
}, |
85
|
|
|
|
|
|
|
}, |
86
|
|
|
|
|
|
|
'stand-alone' => { |
87
|
|
|
|
|
|
|
'abbreviated' => { |
88
|
|
|
|
|
|
|
'midnight' => q{min.}, |
89
|
|
|
|
|
|
|
}, |
90
|
|
|
|
|
|
|
'narrow' => { |
91
|
|
|
|
|
|
|
'midnight' => q{min.}, |
92
|
|
|
|
|
|
|
}, |
93
|
|
|
|
|
|
|
}, |
94
|
|
|
|
|
|
|
}, |
95
|
|
|
|
|
|
|
} }, |
96
|
|
|
|
|
|
|
); |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
has 'eras' => ( |
99
|
|
|
|
|
|
|
is => 'ro', |
100
|
|
|
|
|
|
|
isa => HashRef, |
101
|
|
|
|
|
|
|
init_arg => undef, |
102
|
|
|
|
|
|
|
default => sub { { |
103
|
|
|
|
|
|
|
'gregorian' => { |
104
|
|
|
|
|
|
|
}, |
105
|
|
|
|
|
|
|
} }, |
106
|
|
|
|
|
|
|
); |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
has 'date_formats' => ( |
109
|
|
|
|
|
|
|
is => 'ro', |
110
|
|
|
|
|
|
|
isa => HashRef, |
111
|
|
|
|
|
|
|
init_arg => undef, |
112
|
|
|
|
|
|
|
default => sub { { |
113
|
|
|
|
|
|
|
'gregorian' => { |
114
|
|
|
|
|
|
|
}, |
115
|
|
|
|
|
|
|
} }, |
116
|
|
|
|
|
|
|
); |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
has 'time_formats' => ( |
119
|
|
|
|
|
|
|
is => 'ro', |
120
|
|
|
|
|
|
|
isa => HashRef, |
121
|
|
|
|
|
|
|
init_arg => undef, |
122
|
|
|
|
|
|
|
default => sub { { |
123
|
|
|
|
|
|
|
'gregorian' => { |
124
|
|
|
|
|
|
|
}, |
125
|
|
|
|
|
|
|
} }, |
126
|
|
|
|
|
|
|
); |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
129
|
|
|
|
|
|
|
is => 'ro', |
130
|
|
|
|
|
|
|
isa => HashRef, |
131
|
|
|
|
|
|
|
init_arg => undef, |
132
|
|
|
|
|
|
|
default => sub { { |
133
|
|
|
|
|
|
|
'gregorian' => { |
134
|
|
|
|
|
|
|
}, |
135
|
|
|
|
|
|
|
} }, |
136
|
|
|
|
|
|
|
); |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
139
|
|
|
|
|
|
|
is => 'ro', |
140
|
|
|
|
|
|
|
isa => HashRef, |
141
|
|
|
|
|
|
|
init_arg => undef, |
142
|
|
|
|
|
|
|
default => sub { { |
143
|
|
|
|
|
|
|
} }, |
144
|
|
|
|
|
|
|
); |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
147
|
|
|
|
|
|
|
is => 'ro', |
148
|
|
|
|
|
|
|
isa => HashRef, |
149
|
|
|
|
|
|
|
init_arg => undef, |
150
|
|
|
|
|
|
|
default => sub { { |
151
|
|
|
|
|
|
|
} }, |
152
|
|
|
|
|
|
|
); |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
155
|
|
|
|
|
|
|
is => 'ro', |
156
|
|
|
|
|
|
|
isa => HashRef, |
157
|
|
|
|
|
|
|
init_arg => undef, |
158
|
|
|
|
|
|
|
default => sub { { |
159
|
|
|
|
|
|
|
} }, |
160
|
|
|
|
|
|
|
); |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
no Moo; |
163
|
1
|
|
|
1
|
|
769
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
164
|
|
|
|
|
|
|
1; |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# vim: tabstop=4 |