File Coverage

blib/lib/Locale/CLDR/Locales/En/Latn/Id.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::Id - Package for language English
6              
7             =cut
8              
9             package Locale::CLDR::Locales::En::Latn::Id;
10             # This file auto generated from Data\common\main\en_ID.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1652 use strict;
  1         4  
  1         47  
14 1     1   7 use warnings;
  1         3  
  1         126  
15 1     1   10 use version;
  1         2  
  1         7  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   138 use v5.12.0;
  1         4  
20 1     1   5 use mro 'c3';
  1         3  
  1         8  
21 1     1   47 use utf8;
  1         2  
  1         9  
22 1     1   33 use feature 'unicode_strings';
  1         3  
  1         179  
23 1     1   8 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         8  
24 1     1   3022 use Moo;
  1         3  
  1         8  
25              
26             extends('Locale::CLDR::Locales::En::Latn::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 'currencies' => (
40             is => 'ro',
41             isa => HashRef,
42             init_arg => undef,
43             default => sub { {
44             'IDR' => {
45             symbol => 'Rp',
46             },
47             } },
48             );
49              
50              
51             has 'day_period_data' => (
52             is => 'ro',
53             isa => CodeRef,
54             init_arg => undef,
55             default => sub { sub {
56             # Time in hhmm format
57             my ($self, $type, $time, $day_period_type) = @_;
58             $day_period_type //= 'default';
59             SWITCH:
60             for ($type) {
61             if ($_ eq 'generic') {
62             if($day_period_type eq 'default') {
63             return 'midnight' if $time == 0;
64             return 'noon' if $time == 1200;
65             return 'afternoon1' if $time >= 1200
66             && $time < 1800;
67             return 'evening1' if $time >= 1800
68             && $time < 2100;
69             return 'morning1' if $time >= 600
70             && $time < 1200;
71             return 'night1' if $time >= 2100;
72             return 'night1' if $time < 600;
73             }
74             if($day_period_type eq 'selection') {
75             return 'afternoon1' if $time >= 1200
76             && $time < 1800;
77             return 'evening1' if $time >= 1800
78             && $time < 2100;
79             return 'morning1' if $time >= 600
80             && $time < 1200;
81             return 'night1' if $time >= 2100;
82             return 'night1' if $time < 600;
83             }
84             last SWITCH;
85             }
86             if ($_ eq 'gregorian') {
87             if($day_period_type eq 'default') {
88             return 'midnight' if $time == 0;
89             return 'noon' if $time == 1200;
90             return 'afternoon1' if $time >= 1200
91             && $time < 1800;
92             return 'evening1' if $time >= 1800
93             && $time < 2100;
94             return 'morning1' if $time >= 600
95             && $time < 1200;
96             return 'night1' if $time >= 2100;
97             return 'night1' if $time < 600;
98             }
99             if($day_period_type eq 'selection') {
100             return 'afternoon1' if $time >= 1200
101             && $time < 1800;
102             return 'evening1' if $time >= 1800
103             && $time < 2100;
104             return 'morning1' if $time >= 600
105             && $time < 1200;
106             return 'night1' if $time >= 2100;
107             return 'night1' if $time < 600;
108             }
109             last SWITCH;
110             }
111             }
112             } },
113             );
114              
115             around day_period_data => sub {
116             my ($orig, $self) = @_;
117             return $self->$orig;
118             };
119              
120             has 'eras' => (
121             is => 'ro',
122             isa => HashRef,
123             init_arg => undef,
124             default => sub { {
125             'generic' => {
126             },
127             'gregorian' => {
128             },
129             } },
130             );
131              
132             has 'date_formats' => (
133             is => 'ro',
134             isa => HashRef,
135             init_arg => undef,
136             default => sub { {
137             'generic' => {
138             },
139             'gregorian' => {
140             },
141             } },
142             );
143              
144             has 'time_formats' => (
145             is => 'ro',
146             isa => HashRef,
147             init_arg => undef,
148             default => sub { {
149             'generic' => {
150             },
151             'gregorian' => {
152             'full' => q{HH.mm.ss zzzz},
153             'long' => q{HH.mm.ss z},
154             'medium' => q{HH.mm.ss},
155             'short' => q{HH.mm},
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             'generic' => {
178             Bhm => q{h.mm B},
179             Bhms => q{h.mm.ss B},
180             EBhm => q{E h.mm B},
181             EBhms => q{E h.mm.ss B},
182             EHm => q{E HH.mm},
183             EHms => q{E HH.mm.ss},
184             Ehm => q{E h.mm a},
185             Ehms => q{E h.mm.ss a},
186             Hm => q{HH.mm},
187             Hms => q{HH.mm.ss},
188             Hmsv => q{HH.mm.ss v},
189             Hmv => q{HH.mm v},
190             hm => q{h.mm a},
191             hms => q{h.mm.ss a},
192             hmsv => q{h.mm.ss. a v},
193             hmv => q{h.mm a v},
194             ms => q{mm.ss},
195             },
196             'gregorian' => {
197             Bhm => q{h.mm B},
198             Bhms => q{h.mm.ss B},
199             EBhm => q{E h.mm B},
200             EBhms => q{E h.mm.ss B},
201             EHm => q{E HH.mm},
202             EHms => q{E HH.mm.ss},
203             Ehm => q{E h.mm a},
204             Ehms => q{E h.mm.ss a},
205             Hm => q{HH.mm},
206             Hms => q{HH.mm.ss},
207             Hmsv => q{HH.mm.ss v},
208             Hmv => q{HH.mm v},
209             hm => q{h.mm a},
210             hms => q{h.mm.ss a},
211             hmsv => q{h.mm.ss. a v},
212             hmv => q{h.mm a v},
213             ms => q{mm.ss},
214             },
215             } },
216             );
217              
218             has 'datetime_formats_append_item' => (
219             is => 'ro',
220             isa => HashRef,
221             init_arg => undef,
222             default => sub { {
223             } },
224             );
225              
226             has 'datetime_formats_interval' => (
227             is => 'ro',
228             isa => HashRef,
229             init_arg => undef,
230             default => sub { {
231             'gregorian' => {
232             Bhm => {
233             B => q{h.mm B – h.mm B},
234             h => q{h.mm – h.mm B},
235             m => q{h.mm – h.mm B},
236             },
237             Hm => {
238             H => q{HH.mm–HH.mm},
239             m => q{HH.mm–HH.mm},
240             },
241             Hmv => {
242             H => q{HH.mm–HH.mm v},
243             m => q{HH.mm–HH.mm v},
244             },
245             hm => {
246             a => q{h.mm a – h.mm a},
247             h => q{h.mm–h.mm a},
248             m => q{h.mm–h.mm a},
249             },
250             hmv => {
251             a => q{h.mm a – h.mm a v},
252             h => q{h.mm–h.mm a v},
253             m => q{h.mm–h.mm a v},
254             },
255             },
256             } },
257             );
258              
259             has 'time_zone_names' => (
260             is => 'ro',
261             isa => HashRef,
262             init_arg => undef,
263             default => sub { {
264             'Indonesia_Central' => {
265             short => {
266             'standard' => q#WITA#,
267             },
268             },
269             'Indonesia_Eastern' => {
270             short => {
271             'standard' => q#WIT#,
272             },
273             },
274             'Indonesia_Western' => {
275             short => {
276             'standard' => q#WIB#,
277             },
278             },
279             } }
280             );
281 1     1   2117 no Moo;
  1         4  
  1         7  
282              
283             1;
284              
285             # vim: tabstop=4