File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Gb.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
4              
5             Locale::CLDR::Locales::En::Any::Gb - Package for language English
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/en_GB.xml
10             # on Mon 11 Apr 5:27:03 pm GMT
11              
12             use strict;
13 17     17   511746 use warnings;
  17         36  
  17         463  
14 17     17   79 use version;
  17         38  
  17         382  
15 17     17   267  
  17         26  
  17         112  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 17     17   1548 use mro 'c3';
  17         47  
20 17     17   68 use utf8;
  17         32  
  17         102  
21 17     17   336 use if $^V ge v5.12.0, feature => 'unicode_strings';
  17         21  
  17         97  
22 17     17   450 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  17         30  
  17         212  
23 17     17   1814 use Moo;
  17         29  
  17         251  
24 17     17   15487  
  17         31  
  17         154  
25             extends('Locale::CLDR::Locales::En::Any::001');
26             has 'display_name_language' => (
27             is => 'ro',
28             isa => CodeRef,
29             init_arg => undef,
30             default => sub {
31             sub {
32             my %languages = (
33             'nds_NL' => 'West Low German',
34              
35             );
36             if (@_) {
37             return $languages{$_[0]};
38             }
39             return \%languages;
40             }
41             },
42             );
43              
44             has 'display_name_region' => (
45             is => 'ro',
46             isa => HashRef[Str],
47             init_arg => undef,
48             default => sub {
49             {
50             'BL' => 'St Barthélemy',
51             'KN' => 'St Kitts & Nevis',
52             'LC' => 'St Lucia',
53             'MF' => 'St Martin',
54             'PM' => 'St Pierre & Miquelon',
55             'SH' => 'St Helena',
56             'UM' => 'US Outlying Islands',
57             'US@alt=short' => 'US',
58             'VC' => 'St Vincent & Grenadines',
59             'VI' => 'US Virgin Islands',
60              
61             }
62             },
63             );
64              
65             has 'units' => (
66             is => 'ro',
67             isa => HashRef[HashRef[HashRef[Str]]],
68             init_arg => undef,
69             default => sub { {
70             'long' => {
71             'percent' => {
72             'name' => q(per cent),
73             'one' => q({0} per cent),
74             'other' => q({0} per cent),
75             },
76             'permille' => {
77             'name' => q(per mille),
78             'one' => q({0} per mille),
79             'other' => q({0} per mille),
80             },
81             },
82             'short' => {
83             'percent' => {
84             'name' => q(per cent),
85             },
86             'permille' => {
87             'name' => q(per mille),
88             },
89             },
90             } }
91             );
92              
93             has 'listPatterns' => (
94             is => 'ro',
95             isa => HashRef,
96             init_arg => undef,
97             default => sub { {
98             end => q({0} and {1}),
99             } }
100             );
101              
102             has 'currencies' => (
103             is => 'ro',
104             isa => HashRef,
105             init_arg => undef,
106             default => sub { {
107             'SHP' => {
108             display_name => {
109             'currency' => q(St Helena Pound),
110             'one' => q(St Helena pound),
111             'other' => q(St Helena pounds),
112             },
113             },
114             } },
115             );
116              
117              
118             has 'day_period_data' => (
119             is => 'ro',
120             isa => CodeRef,
121             init_arg => undef,
122             default => sub { sub {
123             # Time in hhmm format
124             my ($self, $type, $time, $day_period_type) = @_;
125             $day_period_type //= 'default';
126             SWITCH:
127             for ($type) {
128             if ($_ eq 'generic') {
129             if($day_period_type eq 'default') {
130             return 'midnight' if $time == 0;
131             return 'noon' if $time == 1200;
132             return 'afternoon1' if $time >= 1200
133             && $time < 1800;
134             return 'evening1' if $time >= 1800
135             && $time < 2100;
136             return 'morning1' if $time >= 600
137             && $time < 1200;
138             return 'night1' if $time >= 2100;
139             return 'night1' if $time < 600;
140             }
141             if($day_period_type eq 'selection') {
142             return 'afternoon1' if $time >= 1200
143             && $time < 1800;
144             return 'evening1' if $time >= 1800
145             && $time < 2100;
146             return 'morning1' if $time >= 600
147             && $time < 1200;
148             return 'night1' if $time >= 2100;
149             return 'night1' if $time < 600;
150             }
151             last SWITCH;
152             }
153             if ($_ eq 'gregorian') {
154             if($day_period_type eq 'default') {
155             return 'midnight' if $time == 0;
156             return 'noon' if $time == 1200;
157             return 'afternoon1' if $time >= 1200
158             && $time < 1800;
159             return 'evening1' if $time >= 1800
160             && $time < 2100;
161             return 'morning1' if $time >= 600
162             && $time < 1200;
163             return 'night1' if $time >= 2100;
164             return 'night1' if $time < 600;
165             }
166             if($day_period_type eq 'selection') {
167             return 'afternoon1' if $time >= 1200
168             && $time < 1800;
169             return 'evening1' if $time >= 1800
170             && $time < 2100;
171             return 'morning1' if $time >= 600
172             && $time < 1200;
173             return 'night1' if $time >= 2100;
174             return 'night1' if $time < 600;
175             }
176             last SWITCH;
177             }
178             if ($_ eq 'islamic') {
179             if($day_period_type eq 'default') {
180             return 'midnight' if $time == 0;
181             return 'noon' if $time == 1200;
182             return 'afternoon1' if $time >= 1200
183             && $time < 1800;
184             return 'evening1' if $time >= 1800
185             && $time < 2100;
186             return 'morning1' if $time >= 600
187             && $time < 1200;
188             return 'night1' if $time >= 2100;
189             return 'night1' if $time < 600;
190             }
191             if($day_period_type eq 'selection') {
192             return 'afternoon1' if $time >= 1200
193             && $time < 1800;
194             return 'evening1' if $time >= 1800
195             && $time < 2100;
196             return 'morning1' if $time >= 600
197             && $time < 1200;
198             return 'night1' if $time >= 2100;
199             return 'night1' if $time < 600;
200             }
201             last SWITCH;
202             }
203             }
204             } },
205             );
206              
207             around day_period_data => sub {
208             my ($orig, $self) = @_;
209             return $self->$orig;
210             };
211              
212             has 'eras' => (
213             is => 'ro',
214             isa => HashRef,
215             init_arg => undef,
216             default => sub { {
217             'generic' => {
218             },
219             'gregorian' => {
220             },
221             'islamic' => {
222             },
223             } },
224             );
225              
226             has 'date_formats' => (
227             is => 'ro',
228             isa => HashRef,
229             init_arg => undef,
230             default => sub { {
231             'generic' => {
232             },
233             'gregorian' => {
234             },
235             'islamic' => {
236             },
237             } },
238             );
239              
240             has 'time_formats' => (
241             is => 'ro',
242             isa => HashRef,
243             init_arg => undef,
244             default => sub { {
245             'generic' => {
246             },
247             'gregorian' => {
248             'full' => q{HH:mm:ss zzzz},
249             'long' => q{HH:mm:ss z},
250             'medium' => q{HH:mm:ss},
251             'short' => q{HH:mm},
252             },
253             'islamic' => {
254             },
255             } },
256             );
257              
258             has 'datetime_formats' => (
259             is => 'ro',
260             isa => HashRef,
261             init_arg => undef,
262             default => sub { {
263             'generic' => {
264             },
265             'gregorian' => {
266             },
267             'islamic' => {
268             },
269             } },
270             );
271              
272             has 'datetime_formats_available_formats' => (
273             is => 'ro',
274             isa => HashRef,
275             init_arg => undef,
276             default => sub { {
277             'generic' => {
278             MEd => q{E dd/MM},
279             MMMEd => q{E d MMM},
280             },
281             'islamic' => {
282             MEd => q{E dd/MM},
283             MMMEd => q{E d MMM},
284             },
285             } },
286             );
287              
288             has 'datetime_formats_append_item' => (
289             is => 'ro',
290             isa => HashRef,
291             init_arg => undef,
292             default => sub { {
293             } },
294             );
295              
296             has 'datetime_formats_interval' => (
297             is => 'ro',
298             isa => HashRef,
299             init_arg => undef,
300             default => sub { {
301             'generic' => {
302             M => {
303             M => q{M–M},
304             },
305             MMMd => {
306             d => q{d–d MMM},
307             },
308             Md => {
309             M => q{dd/MM–dd/MM},
310             d => q{dd/MM–dd/MM},
311             },
312             d => {
313             d => q{d–d},
314             },
315             y => {
316             y => q{y–y G},
317             },
318             yMMMd => {
319             d => q{d–d MMM y G},
320             },
321             },
322             'gregorian' => {
323             H => {
324             H => q{HH–HH},
325             },
326             Hm => {
327             H => q{HH:mm–HH:mm},
328             m => q{HH:mm–HH:mm},
329             },
330             Hmv => {
331             H => q{HH:mm–HH:mm v},
332             m => q{HH:mm–HH:mm v},
333             },
334             Hv => {
335             H => q{HH–HH v},
336             },
337             M => {
338             M => q{M–M},
339             },
340             MMMd => {
341             d => q{d–d MMM},
342             },
343             d => {
344             d => q{d–d},
345             },
346             h => {
347             h => q{h–h a},
348             },
349             hv => {
350             h => q{h–h a v},
351             },
352             y => {
353             y => q{y–y},
354             },
355             yMMMd => {
356             d => q{d–d MMM y},
357             },
358             },
359             } },
360             );
361              
362             has 'time_zone_names' => (
363             is => 'ro',
364             isa => HashRef,
365             init_arg => undef,
366             default => sub { {
367             'America/St_Barthelemy' => {
368             exemplarCity => q#St Barthélemy#,
369             },
370             'America/St_Johns' => {
371             exemplarCity => q#St John’s#,
372             },
373             'America/St_Kitts' => {
374             exemplarCity => q#St Kitts#,
375             },
376             'America/St_Lucia' => {
377             exemplarCity => q#St Lucia#,
378             },
379             'America/St_Thomas' => {
380             exemplarCity => q#St Thomas#,
381             },
382             'America/St_Vincent' => {
383             exemplarCity => q#St Vincent#,
384             },
385             'Atlantic/St_Helena' => {
386             exemplarCity => q#St Helena#,
387             },
388             'Europe/London' => {
389             short => {
390             'daylight' => q#BST#,
391             },
392             },
393             'Europe_Central' => {
394             short => {
395             'daylight' => q#CEST#,
396             'generic' => q#CET#,
397             'standard' => q#CET#,
398             },
399             },
400             'Europe_Eastern' => {
401             short => {
402             'daylight' => q#EEST#,
403             'generic' => q#EET#,
404             'standard' => q#EET#,
405             },
406             },
407             'Europe_Western' => {
408             short => {
409             'daylight' => q#WEST#,
410             'generic' => q#WET#,
411             'standard' => q#WET#,
412             },
413             },
414             'Pierre_Miquelon' => {
415             long => {
416             'daylight' => q#St Pierre & Miquelon Daylight Time#,
417             'generic' => q#St Pierre & Miquelon Time#,
418             'standard' => q#St Pierre & Miquelon Standard Time#,
419             },
420             },
421             } }
422             );
423             no Moo;
424 17     17   23367  
  17         35  
  17         73  
425             1;
426              
427             # vim: tabstop=4