File Coverage

blib/lib/Locale/CLDR/Locales/Ms/Latn/Bn.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::Ms::Latn::Bn - Package for language Malay
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Ms::Latn::Bn;
10             # This file auto generated from Data\common\main\ms_BN.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   3645 use strict;
  1         3  
  1         46  
14 1     1   7 use warnings;
  1         2  
  1         56  
15 1     1   7 use version;
  1         2  
  1         8  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   144 use v5.12.0;
  1         5  
20 1     1   7 use mro 'c3';
  1         16  
  1         18  
21 1     1   44 use utf8;
  1         2  
  1         20  
22 1     1   51 use feature 'unicode_strings';
  1         2  
  1         154  
23 1     1   8 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         8  
24 1     1   3080 use Moo;
  1         3  
  1         9  
25              
26             extends('Locale::CLDR::Locales::Ms::Latn');
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 'currencies' => (
57             is => 'ro',
58             isa => HashRef,
59             init_arg => undef,
60             default => sub { {
61             'BND' => {
62             symbol => '$',
63             },
64             } },
65             );
66              
67              
68             has 'day_period_data' => (
69             is => 'ro',
70             isa => CodeRef,
71             init_arg => undef,
72             default => sub { sub {
73             # Time in hhmm format
74             my ($self, $type, $time, $day_period_type) = @_;
75             $day_period_type //= 'default';
76             SWITCH:
77             for ($type) {
78             if ($_ eq 'buddhist') {
79             if($day_period_type eq 'default') {
80             return 'afternoon1' if $time >= 1200
81             && $time < 1400;
82             return 'evening1' if $time >= 1400
83             && $time < 1900;
84             return 'morning1' if $time >= 0
85             && $time < 100;
86             return 'morning2' if $time >= 100
87             && $time < 1200;
88             return 'night1' if $time >= 1900
89             && $time < 2400;
90             }
91             if($day_period_type eq 'selection') {
92             return 'afternoon1' if $time >= 1200
93             && $time < 1400;
94             return 'evening1' if $time >= 1400
95             && $time < 1900;
96             return 'morning1' if $time >= 0
97             && $time < 100;
98             return 'morning2' if $time >= 100
99             && $time < 1200;
100             return 'night1' if $time >= 1900
101             && $time < 2400;
102             }
103             last SWITCH;
104             }
105             if ($_ eq 'generic') {
106             if($day_period_type eq 'default') {
107             return 'afternoon1' if $time >= 1200
108             && $time < 1400;
109             return 'evening1' if $time >= 1400
110             && $time < 1900;
111             return 'morning1' if $time >= 0
112             && $time < 100;
113             return 'morning2' if $time >= 100
114             && $time < 1200;
115             return 'night1' if $time >= 1900
116             && $time < 2400;
117             }
118             if($day_period_type eq 'selection') {
119             return 'afternoon1' if $time >= 1200
120             && $time < 1400;
121             return 'evening1' if $time >= 1400
122             && $time < 1900;
123             return 'morning1' if $time >= 0
124             && $time < 100;
125             return 'morning2' if $time >= 100
126             && $time < 1200;
127             return 'night1' if $time >= 1900
128             && $time < 2400;
129             }
130             last SWITCH;
131             }
132             if ($_ eq 'gregorian') {
133             if($day_period_type eq 'default') {
134             return 'afternoon1' if $time >= 1200
135             && $time < 1400;
136             return 'evening1' if $time >= 1400
137             && $time < 1900;
138             return 'morning1' if $time >= 0
139             && $time < 100;
140             return 'morning2' if $time >= 100
141             && $time < 1200;
142             return 'night1' if $time >= 1900
143             && $time < 2400;
144             }
145             if($day_period_type eq 'selection') {
146             return 'afternoon1' if $time >= 1200
147             && $time < 1400;
148             return 'evening1' if $time >= 1400
149             && $time < 1900;
150             return 'morning1' if $time >= 0
151             && $time < 100;
152             return 'morning2' if $time >= 100
153             && $time < 1200;
154             return 'night1' if $time >= 1900
155             && $time < 2400;
156             }
157             last SWITCH;
158             }
159             if ($_ eq 'islamic') {
160             if($day_period_type eq 'default') {
161             return 'afternoon1' if $time >= 1200
162             && $time < 1400;
163             return 'evening1' if $time >= 1400
164             && $time < 1900;
165             return 'morning1' if $time >= 0
166             && $time < 100;
167             return 'morning2' if $time >= 100
168             && $time < 1200;
169             return 'night1' if $time >= 1900
170             && $time < 2400;
171             }
172             if($day_period_type eq 'selection') {
173             return 'afternoon1' if $time >= 1200
174             && $time < 1400;
175             return 'evening1' if $time >= 1400
176             && $time < 1900;
177             return 'morning1' if $time >= 0
178             && $time < 100;
179             return 'morning2' if $time >= 100
180             && $time < 1200;
181             return 'night1' if $time >= 1900
182             && $time < 2400;
183             }
184             last SWITCH;
185             }
186             }
187             } },
188             );
189              
190             around day_period_data => sub {
191             my ($orig, $self) = @_;
192             return $self->$orig;
193             };
194              
195             has 'eras' => (
196             is => 'ro',
197             isa => HashRef,
198             init_arg => undef,
199             default => sub { {
200             'buddhist' => {
201             },
202             'generic' => {
203             },
204             'gregorian' => {
205             },
206             'islamic' => {
207             },
208             } },
209             );
210              
211             has 'date_formats' => (
212             is => 'ro',
213             isa => HashRef,
214             init_arg => undef,
215             default => sub { {
216             'buddhist' => {
217             'full' => q{dd MMMM y G},
218             },
219             'generic' => {
220             'full' => q{dd MMMM y G},
221             },
222             'gregorian' => {
223             'full' => q{dd MMMM y},
224             },
225             'islamic' => {
226             'full' => q{dd MMMM y G},
227             },
228             } },
229             );
230              
231             has 'time_formats' => (
232             is => 'ro',
233             isa => HashRef,
234             init_arg => undef,
235             default => sub { {
236             'buddhist' => {
237             },
238             'generic' => {
239             },
240             'gregorian' => {
241             },
242             'islamic' => {
243             },
244             } },
245             );
246              
247             has 'datetime_formats' => (
248             is => 'ro',
249             isa => HashRef,
250             init_arg => undef,
251             default => sub { {
252             'buddhist' => {
253             },
254             'generic' => {
255             },
256             'gregorian' => {
257             },
258             'islamic' => {
259             },
260             } },
261             );
262              
263             has 'datetime_formats_available_formats' => (
264             is => 'ro',
265             isa => HashRef,
266             init_arg => undef,
267             default => sub { {
268             } },
269             );
270              
271             has 'datetime_formats_append_item' => (
272             is => 'ro',
273             isa => HashRef,
274             init_arg => undef,
275             default => sub { {
276             } },
277             );
278              
279             has 'datetime_formats_interval' => (
280             is => 'ro',
281             isa => HashRef,
282             init_arg => undef,
283             default => sub { {
284             } },
285             );
286              
287 1     1   2458 no Moo;
  1         2  
  1         6  
288              
289             1;
290              
291             # vim: tabstop=4