File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/150.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


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