File Coverage

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