File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Fi.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod n/a
total 43 43 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1
4              
5             Locale::CLDR::Locales::En::Any::Fi - Package for language English
6              
7             =cut
8              
9             package Locale::CLDR::Locales::En::Any::Fi;
10             # This file auto generated from Data\common\main\en_FI.xml
11             # on Sun 16 Dec 4:13:10 pm GMT
12              
13 1     1   1097 use strict;
  1         3  
  1         25  
14 1     1   4 use warnings;
  1         2  
  1         22  
15 1     1   4 use version;
  1         3  
  1         5  
16              
17             our $VERSION = version->declare('v0.34.0');
18              
19 1     1   90 use v5.10.1;
  1         4  
20 1     1   5 use mro 'c3';
  1         2  
  1         5  
21 1     1   31 use utf8;
  1         1  
  1         5  
22 1     1   29 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         3  
  1         11  
23 1     1   102 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         6  
24 1     1   897 use Moo;
  1         2  
  1         6  
25              
26             extends('Locale::CLDR::Locales::En::Any::150');
27             has 'characters' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => $^V ge v5.18.0
32             ? eval <<'EOT'
33             sub {
34             no warnings 'experimental::regex_sets';
35             return {
36             numbers => qr{[  \- , % ‰ + 0 1 2 3 4 5 6 7 8 9]},
37             };
38             },
39             EOT
40             : sub {
41             return {};
42             },
43 1     1   87 );
  1         3  
  1         96  
44              
45              
46             has 'number_symbols' => (
47             is => 'ro',
48             isa => HashRef,
49             init_arg => undef,
50             default => sub { {
51             'latn' => {
52             'group' => q( ),
53             'timeSeparator' => q(.),
54             },
55             } }
56             );
57              
58             has 'number_formats' => (
59             is => 'ro',
60             isa => HashRef,
61             init_arg => undef,
62             default => sub { {
63             percentFormat => {
64             'default' => {
65             'standard' => {
66             'default' => '#,##0 %',
67             },
68             },
69             },
70             } },
71             );
72              
73             has 'day_period_data' => (
74             is => 'ro',
75             isa => CodeRef,
76             init_arg => undef,
77             default => sub { sub {
78             # Time in hhmm format
79             my ($self, $type, $time, $day_period_type) = @_;
80             $day_period_type //= 'default';
81             SWITCH:
82             for ($type) {
83             if ($_ eq 'gregorian') {
84             if($day_period_type eq 'default') {
85             return 'noon' if $time == 1200;
86             return 'midnight' if $time == 0;
87             return 'afternoon1' if $time >= 1200
88             && $time < 1800;
89             return 'morning1' if $time >= 600
90             && $time < 1200;
91             return 'evening1' if $time >= 1800
92             && $time < 2100;
93             return 'night1' if $time >= 2100;
94             return 'night1' if $time < 600;
95             }
96             if($day_period_type eq 'selection') {
97             return 'afternoon1' if $time >= 1200
98             && $time < 1800;
99             return 'morning1' if $time >= 600
100             && $time < 1200;
101             return 'night1' if $time >= 2100;
102             return 'night1' if $time < 600;
103             return 'evening1' if $time >= 1800
104             && $time < 2100;
105             }
106             last SWITCH;
107             }
108             if ($_ eq 'generic') {
109             if($day_period_type eq 'default') {
110             return 'noon' if $time == 1200;
111             return 'midnight' if $time == 0;
112             return 'afternoon1' if $time >= 1200
113             && $time < 1800;
114             return 'morning1' if $time >= 600
115             && $time < 1200;
116             return 'evening1' if $time >= 1800
117             && $time < 2100;
118             return 'night1' if $time >= 2100;
119             return 'night1' if $time < 600;
120             }
121             if($day_period_type eq 'selection') {
122             return 'afternoon1' if $time >= 1200
123             && $time < 1800;
124             return 'morning1' if $time >= 600
125             && $time < 1200;
126             return 'night1' if $time >= 2100;
127             return 'night1' if $time < 600;
128             return 'evening1' if $time >= 1800
129             && $time < 2100;
130             }
131             last SWITCH;
132             }
133             }
134             } },
135             );
136              
137             around day_period_data => sub {
138             my ($orig, $self) = @_;
139             return $self->$orig;
140             };
141              
142             has 'eras' => (
143             is => 'ro',
144             isa => HashRef,
145             init_arg => undef,
146             default => sub { {
147             'generic' => {
148             },
149             'gregorian' => {
150             },
151             } },
152             );
153              
154             has 'date_formats' => (
155             is => 'ro',
156             isa => HashRef,
157             init_arg => undef,
158             default => sub { {
159             'generic' => {
160             },
161             'gregorian' => {
162             },
163             } },
164             );
165              
166             has 'time_formats' => (
167             is => 'ro',
168             isa => HashRef,
169             init_arg => undef,
170             default => sub { {
171             'generic' => {
172             },
173             'gregorian' => {
174             'full' => q{H.mm.ss zzzz},
175             'long' => q{H.mm.ss z},
176             'medium' => q{H.mm.ss},
177             'short' => q{H.mm},
178             },
179             } },
180             );
181              
182             has 'datetime_formats' => (
183             is => 'ro',
184             isa => HashRef,
185             init_arg => undef,
186             default => sub { {
187             'generic' => {
188             },
189             'gregorian' => {
190             },
191             } },
192             );
193              
194             has 'datetime_formats_available_formats' => (
195             is => 'ro',
196             isa => HashRef,
197             init_arg => undef,
198             default => sub { {
199             'gregorian' => {
200             EHm => q{E H.mm},
201             EHms => q{E H.mm.ss},
202             Ehm => q{E h.mm a},
203             Ehms => q{E h.mm.ss a},
204             Hm => q{H.mm},
205             Hms => q{H.mm.ss},
206             Hmsv => q{H.mm.ss v},
207             Hmv => q{H.mm v},
208             hm => q{h.mm a},
209             hms => q{h.mm.ss a},
210             hmsv => q{h.mm.ss a v},
211             hmv => q{h.mm a v},
212             ms => q{mm.ss},
213             },
214             'generic' => {
215             EHm => q{E H.mm},
216             EHms => q{E H.mm.ss},
217             Ehm => q{E h.mm a},
218             Ehms => q{E h.mm.ss a},
219             Hm => q{H.mm},
220             Hms => q{H.mm.ss},
221             Hmsv => q{H.mm.ss v},
222             Hmv => q{H.mm v},
223             hm => q{h.mm a},
224             hms => q{h.mm.ss a},
225             hmsv => q{h.mm.ss a v},
226             hmv => q{h.mm a v},
227             ms => q{mm.ss},
228             },
229             } },
230             );
231              
232             has 'datetime_formats_append_item' => (
233             is => 'ro',
234             isa => HashRef,
235             init_arg => undef,
236             default => sub { {
237             } },
238             );
239              
240             has 'datetime_formats_interval' => (
241             is => 'ro',
242             isa => HashRef,
243             init_arg => undef,
244             default => sub { {
245             } },
246             );
247              
248 1     1   1169 no Moo;
  1         3  
  1         5  
249              
250             1;
251              
252             # vim: tabstop=4