File Coverage

blib/lib/Locale/CLDR/Locales/En/Latn/Se.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::Se - Package for language English
6              
7             =cut
8              
9             package Locale::CLDR::Locales::En::Latn::Se;
10             # This file auto generated from Data\common\main\en_SE.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1585 use strict;
  1         3  
  1         39  
14 1     1   5 use warnings;
  1         3  
  1         49  
15 1     1   6 use version;
  1         2  
  1         7  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   122 use v5.12.0;
  1         3  
20 1     1   5 use mro 'c3';
  1         2  
  1         10  
21 1     1   38 use utf8;
  1         3  
  1         9  
22 1     1   31 use feature 'unicode_strings';
  1         1  
  1         142  
23 1     1   5 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         3  
  1         7  
24 1     1   2463 use Moo;
  1         2  
  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   146 );
  1         2  
  1         140  
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             'exponential' => q(×10^),
54             'group' => 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 'currencies' => (
75             is => 'ro',
76             isa => HashRef,
77             init_arg => undef,
78             default => sub { {
79             'SEK' => {
80             symbol => 'kr',
81             },
82             } },
83             );
84              
85              
86             has 'day_period_data' => (
87             is => 'ro',
88             isa => CodeRef,
89             init_arg => undef,
90             default => sub { sub {
91             # Time in hhmm format
92             my ($self, $type, $time, $day_period_type) = @_;
93             $day_period_type //= 'default';
94             SWITCH:
95             for ($type) {
96             if ($_ eq 'generic') {
97             if($day_period_type eq 'default') {
98             return 'midnight' if $time == 0;
99             return 'noon' if $time == 1200;
100             return 'afternoon1' if $time >= 1200
101             && $time < 1800;
102             return 'evening1' if $time >= 1800
103             && $time < 2100;
104             return 'morning1' if $time >= 600
105             && $time < 1200;
106             return 'night1' if $time >= 2100;
107             return 'night1' if $time < 600;
108             }
109             if($day_period_type eq 'selection') {
110             return 'afternoon1' if $time >= 1200
111             && $time < 1800;
112             return 'evening1' if $time >= 1800
113             && $time < 2100;
114             return 'morning1' if $time >= 600
115             && $time < 1200;
116             return 'night1' if $time >= 2100;
117             return 'night1' if $time < 600;
118             }
119             last SWITCH;
120             }
121             if ($_ eq 'gregorian') {
122             if($day_period_type eq 'default') {
123             return 'midnight' if $time == 0;
124             return 'noon' if $time == 1200;
125             return 'afternoon1' if $time >= 1200
126             && $time < 1800;
127             return 'evening1' if $time >= 1800
128             && $time < 2100;
129             return 'morning1' if $time >= 600
130             && $time < 1200;
131             return 'night1' if $time >= 2100;
132             return 'night1' if $time < 600;
133             }
134             if($day_period_type eq 'selection') {
135             return 'afternoon1' if $time >= 1200
136             && $time < 1800;
137             return 'evening1' if $time >= 1800
138             && $time < 2100;
139             return 'morning1' if $time >= 600
140             && $time < 1200;
141             return 'night1' if $time >= 2100;
142             return 'night1' if $time < 600;
143             }
144             last SWITCH;
145             }
146             }
147             } },
148             );
149              
150             around day_period_data => sub {
151             my ($orig, $self) = @_;
152             return $self->$orig;
153             };
154              
155             has 'eras' => (
156             is => 'ro',
157             isa => HashRef,
158             init_arg => undef,
159             default => sub { {
160             'generic' => {
161             },
162             'gregorian' => {
163             },
164             } },
165             );
166              
167             has 'date_formats' => (
168             is => 'ro',
169             isa => HashRef,
170             init_arg => undef,
171             default => sub { {
172             'generic' => {
173             'short' => q{G y-MM-dd},
174             },
175             'gregorian' => {
176             'short' => q{y-MM-dd},
177             },
178             } },
179             );
180              
181             has 'time_formats' => (
182             is => 'ro',
183             isa => HashRef,
184             init_arg => undef,
185             default => sub { {
186             'generic' => {
187             },
188             'gregorian' => {
189             },
190             } },
191             );
192              
193             has 'datetime_formats' => (
194             is => 'ro',
195             isa => HashRef,
196             init_arg => undef,
197             default => sub { {
198             'generic' => {
199             },
200             'gregorian' => {
201             },
202             } },
203             );
204              
205             has 'datetime_formats_available_formats' => (
206             is => 'ro',
207             isa => HashRef,
208             init_arg => undef,
209             default => sub { {
210             'generic' => {
211             yyyyM => q{y-MM G},
212             yyyyMEd => q{E y-MM-dd G},
213             yyyyMd => q{y-MM-dd G},
214             },
215             'gregorian' => {
216             yM => q{y-MM},
217             yMEd => q{E, y-MM-dd},
218             yMd => q{y-MM-dd},
219             },
220             } },
221             );
222              
223             has 'datetime_formats_append_item' => (
224             is => 'ro',
225             isa => HashRef,
226             init_arg => undef,
227             default => sub { {
228             } },
229             );
230              
231             has 'datetime_formats_interval' => (
232             is => 'ro',
233             isa => HashRef,
234             init_arg => undef,
235             default => sub { {
236             } },
237             );
238              
239 1     1   2805 no Moo;
  1         2  
  1         7  
240              
241             1;
242              
243             # vim: tabstop=4