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