File Coverage

blib/lib/Locale/CLDR/Locales/Nl/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::Nl::Any::Be - Package for language Dutch
4              
5             =cut
6              
7             package Locale::CLDR::Locales::Nl::Any::Be;
8             # This file auto generated from Data\common\main\nl_BE.xml
9             # on Sun 24 Apr 8:45:13 am GMT
10              
11 1     1   1268 use version;
  1         2  
  1         6  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   89 use v5.10.1;
  1         3  
16 1     1   4 use mro 'c3';
  1         1  
  1         6  
17 1     1   33 use utf8;
  1         1  
  1         7  
18 1     1   29 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         1  
  1         14  
19              
20 1     1   108 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         11  
21 1     1   806 use Moo;
  1         1  
  1         9  
22              
23             extends('Locale::CLDR::Locales::Nl::Any');
24             has 'display_name_region' => (
25             is => 'ro',
26             isa => HashRef[Str],
27             init_arg => undef,
28             default => sub {
29             {
30             '013' => 'Centraal-Amerika',
31             'MV' => 'Malediven',
32             'SB' => 'Salomoneilanden',
33              
34             }
35             },
36             );
37              
38             has 'number_currency_formats' => (
39             is => 'ro',
40             isa => HashRef,
41             init_arg => undef,
42             default => sub { {
43             'latn' => {
44             'pattern' => {
45             'default' => {
46             'standard' => {
47             'positive' => '#,##0.00 ¤',
48             },
49             },
50             },
51             },
52             } },
53             );
54              
55             has 'day_period_data' => (
56             is => 'ro',
57             isa => CodeRef,
58             init_arg => undef,
59             default => sub { sub {
60             # Time in hhmm format
61             my ($self, $type, $time, $day_period_type) = @_;
62             $day_period_type //= 'default';
63             SWITCH:
64             for ($type) {
65             if ($_ eq 'generic') {
66             if($day_period_type eq 'selection') {
67             return 'morning1' if $time >= 600
68             && $time < 1200;
69             return 'afternoon1' if $time >= 1200
70             && $time < 1800;
71             return 'night1' if $time >= 0
72             && $time < 600;
73             return 'evening1' if $time >= 1800
74             && $time < 2400;
75             }
76             if($day_period_type eq 'default') {
77             return 'midnight' if $time == 0;
78             return 'evening1' if $time >= 1800
79             && $time < 2400;
80             return 'night1' if $time >= 0
81             && $time < 600;
82             return 'afternoon1' if $time >= 1200
83             && $time < 1800;
84             return 'morning1' if $time >= 600
85             && $time < 1200;
86             }
87             last SWITCH;
88             }
89             if ($_ eq 'gregorian') {
90             if($day_period_type eq 'selection') {
91             return 'morning1' if $time >= 600
92             && $time < 1200;
93             return 'afternoon1' if $time >= 1200
94             && $time < 1800;
95             return 'night1' if $time >= 0
96             && $time < 600;
97             return 'evening1' if $time >= 1800
98             && $time < 2400;
99             }
100             if($day_period_type eq 'default') {
101             return 'midnight' if $time == 0;
102             return 'evening1' if $time >= 1800
103             && $time < 2400;
104             return 'night1' if $time >= 0
105             && $time < 600;
106             return 'afternoon1' if $time >= 1200
107             && $time < 1800;
108             return 'morning1' if $time >= 600
109             && $time < 1200;
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             'short' => q{d/MM/yy GGGGG},
141             },
142             'gregorian' => {
143             'short' => q{d/MM/yy},
144             },
145             } },
146             );
147              
148             has 'time_formats' => (
149             is => 'ro',
150             isa => HashRef,
151             init_arg => undef,
152             default => sub { {
153             'generic' => {
154             },
155             'gregorian' => {
156             },
157             } },
158             );
159              
160             has 'datetime_formats' => (
161             is => 'ro',
162             isa => HashRef,
163             init_arg => undef,
164             default => sub { {
165             'generic' => {
166             },
167             'gregorian' => {
168             },
169             } },
170             );
171              
172             has 'datetime_formats_available_formats' => (
173             is => 'ro',
174             isa => HashRef,
175             init_arg => undef,
176             default => sub { {
177             } },
178             );
179              
180             has 'datetime_formats_append_item' => (
181             is => 'ro',
182             isa => HashRef,
183             init_arg => undef,
184             default => sub { {
185             } },
186             );
187              
188             has 'datetime_formats_interval' => (
189             is => 'ro',
190             isa => HashRef,
191             init_arg => undef,
192             default => sub { {
193             'generic' => {
194             MEd => {
195             M => q{E d/MM – E d/MM},
196             d => q{E d/MM – E d/MM},
197             },
198             Md => {
199             M => q{d/MM – d/MM},
200             d => q{d/MM – d/MM},
201             },
202             yM => {
203             M => q{MM/y – MM/y G},
204             y => q{MM/y – MM/y G},
205             },
206             yMEd => {
207             M => q{E d/MM/y – E d/MM/y G},
208             d => q{E d/MM/y – E d/MM/y G},
209             y => q{E d/MM/y – E d/MM/y G},
210             },
211             yMd => {
212             M => q{d/MM/y – d/MM/y G},
213             d => q{d/MM/y – d/MM/y G},
214             y => q{d/MM/y – d/MM/y G},
215             },
216             },
217             'gregorian' => {
218             MEd => {
219             M => q{E d/MM – E d/MM},
220             d => q{E d/MM – E d/MM},
221             },
222             Md => {
223             M => q{d/MM – d/MM},
224             d => q{d/MM – d/MM},
225             },
226             yM => {
227             M => q{MM/y – MM/y},
228             y => q{MM/y – MM/y},
229             },
230             yMEd => {
231             M => q{E d/MM/y – E d/MM/y},
232             d => q{E d/MM/y – E d/MM/y},
233             y => q{E d/MM/y – E d/MM/y},
234             },
235             yMd => {
236             M => q{d/MM/y – d/MM/y},
237             d => q{d/MM/y – d/MM/y},
238             y => q{d/MM/y – d/MM/y},
239             },
240             },
241             } },
242             );
243              
244 1     1   2618 no Moo;
  1         2  
  1         4  
245              
246             1;
247              
248             # vim: tabstop=4