File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Be.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::Be - Package for language English
4              
5             =cut
6              
7             package Locale::CLDR::Locales::En::Any::Be;
8             # This file auto generated from Data\common\main\en_BE.xml
9             # on Sun 24 Apr 8:24:32 am GMT
10              
11 1     1   969 use version;
  1         1  
  1         7  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   85 use v5.10.1;
  1         3  
16 1     1   4 use mro 'c3';
  1         1  
  1         6  
17 1     1   31 use utf8;
  1         2  
  1         5  
18 1     1   27 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         17  
19              
20 1     1   106 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         8  
21 1     1   845 use Moo;
  1         1  
  1         5  
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             'standard' => {
45             'positive' => '#,##0.00 ¤',
46             },
47             },
48             },
49             },
50             } },
51             );
52              
53             has 'day_period_data' => (
54             is => 'ro',
55             isa => CodeRef,
56             init_arg => undef,
57             default => sub { sub {
58             # Time in hhmm format
59             my ($self, $type, $time, $day_period_type) = @_;
60             $day_period_type //= 'default';
61             SWITCH:
62             for ($type) {
63             if ($_ eq 'generic') {
64             if($day_period_type eq 'default') {
65             return 'noon' if $time == 1200;
66             return 'midnight' if $time == 0;
67             return 'evening1' if $time >= 1800
68             && $time < 2100;
69             return 'night1' if $time >= 2100;
70             return 'night1' if $time < 600;
71             return 'afternoon1' if $time >= 1200
72             && $time < 1800;
73             return 'morning1' if $time >= 600
74             && $time < 1200;
75             }
76             if($day_period_type eq 'selection') {
77             return 'afternoon1' if $time >= 1200
78             && $time < 1800;
79             return 'morning1' if $time >= 600
80             && $time < 1200;
81             return 'night1' if $time >= 2100;
82             return 'night1' if $time < 600;
83             return 'evening1' if $time >= 1800
84             && $time < 2100;
85             }
86             last SWITCH;
87             }
88             if ($_ eq 'gregorian') {
89             if($day_period_type eq 'default') {
90             return 'noon' if $time == 1200;
91             return 'midnight' if $time == 0;
92             return 'evening1' if $time >= 1800
93             && $time < 2100;
94             return 'night1' if $time >= 2100;
95             return 'night1' if $time < 600;
96             return 'afternoon1' if $time >= 1200
97             && $time < 1800;
98             return 'morning1' if $time >= 600
99             && $time < 1200;
100             }
101             if($day_period_type eq 'selection') {
102             return 'afternoon1' if $time >= 1200
103             && $time < 1800;
104             return 'morning1' if $time >= 600
105             && $time < 1200;
106             return 'night1' if $time >= 2100;
107             return 'night1' if $time < 600;
108             return 'evening1' if $time >= 1800
109             && $time < 2100;
110             }
111             last SWITCH;
112             }
113             }
114             } },
115             );
116              
117             around day_period_data => sub {
118             my ($orig, $self) = @_;
119             return $self->$orig;
120             };
121              
122             has 'eras' => (
123             is => 'ro',
124             isa => HashRef,
125             init_arg => undef,
126             default => sub { {
127             'generic' => {
128             },
129             'gregorian' => {
130             },
131             } },
132             );
133              
134             has 'date_formats' => (
135             is => 'ro',
136             isa => HashRef,
137             init_arg => undef,
138             default => sub { {
139             'generic' => {
140             'medium' => q{dd MMM y G},
141             },
142             'gregorian' => {
143             'medium' => q{dd MMM y},
144             'short' => q{dd/MM/yy},
145             },
146             } },
147             );
148              
149             has 'time_formats' => (
150             is => 'ro',
151             isa => HashRef,
152             init_arg => undef,
153             default => sub { {
154             'generic' => {
155             },
156             'gregorian' => {
157             'full' => q{HH:mm:ss zzzz},
158             'long' => q{HH:mm:ss z},
159             'medium' => q{HH:mm:ss},
160             'short' => q{HH:mm},
161             },
162             } },
163             );
164              
165             has 'datetime_formats' => (
166             is => 'ro',
167             isa => HashRef,
168             init_arg => undef,
169             default => sub { {
170             'generic' => {
171             },
172             'gregorian' => {
173             },
174             } },
175             );
176              
177             has 'datetime_formats_available_formats' => (
178             is => 'ro',
179             isa => HashRef,
180             init_arg => undef,
181             default => sub { {
182             'generic' => {
183             MEd => q{E, d/M},
184             Md => q{d/M},
185             yyyyMEd => q{E, d/M/y G},
186             yyyyMd => q{d/M/y G},
187             },
188             'gregorian' => {
189             MEd => q{E, d/M},
190             Md => q{d/M},
191             yMEd => q{E, d/M/y},
192             yMd => q{d/M/y},
193             },
194             } },
195             );
196              
197             has 'datetime_formats_append_item' => (
198             is => 'ro',
199             isa => HashRef,
200             init_arg => undef,
201             default => sub { {
202             } },
203             );
204              
205             has 'datetime_formats_interval' => (
206             is => 'ro',
207             isa => HashRef,
208             init_arg => undef,
209             default => sub { {
210             'generic' => {
211             yM => {
212             M => q{MM/y – MM/y G},
213             y => q{MM/y – MM/y G},
214             },
215             yMEd => {
216             M => q{E dd/MM/y – E dd/MM/y G},
217             d => q{E dd/MM/y – E dd/MM/y G},
218             y => q{E dd/MM/y – E dd/MM/y G},
219             },
220             yMd => {
221             M => q{dd/MM/y – dd/MM/y G},
222             d => q{dd/MM/y – dd/MM/y G},
223             y => q{dd/MM/y – dd/MM/y G},
224             },
225             },
226             'gregorian' => {
227             yMEd => {
228             M => q{E dd/MM/y – E dd/MM/y},
229             d => q{E dd/MM/y – E dd/MM/y},
230             y => q{E dd/MM/y – E dd/MM/y},
231             },
232             },
233             } },
234             );
235              
236 1     1   2814 no Moo;
  1         2  
  1         5  
237              
238             1;
239              
240             # vim: tabstop=4