File Coverage

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