File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Be.pm
Criterion Covered Total %
statement 29 29 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 39 39 100.0


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