File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Fk.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::En::Any::Fk - Package for language English
4              
5             =cut
6              
7             package Locale::CLDR::Locales::En::Any::Fk;
8             # This file auto generated from Data\common\main\en_FK.xml
9             # on Sun 24 Apr 8:24:39 am GMT
10              
11 1     1   706 use version;
  1         2  
  1         4  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   108 use v5.10.1;
  1         3  
16 1     1   3 use mro 'c3';
  1         2  
  1         4  
17 1     1   29 use utf8;
  1         1  
  1         4  
18 1     1   29 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         1  
  1         10  
19              
20 1     1   77 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         4  
21 1     1   909 use Moo;
  1         1  
  1         5  
22              
23             extends('Locale::CLDR::Locales::En::Any::001');
24             has 'currencies' => (
25             is => 'ro',
26             isa => HashRef,
27             init_arg => undef,
28             default => sub { {
29             'FKP' => {
30             symbol => '£',
31             },
32             'GBP' => {
33             symbol => 'GB£',
34             },
35             } },
36             );
37              
38              
39             has 'day_period_data' => (
40             is => 'ro',
41             isa => CodeRef,
42             init_arg => undef,
43             default => sub { sub {
44             # Time in hhmm format
45             my ($self, $type, $time, $day_period_type) = @_;
46             $day_period_type //= 'default';
47             SWITCH:
48             for ($type) {
49             if ($_ eq 'gregorian') {
50             if($day_period_type eq 'default') {
51             return 'noon' if $time == 1200;
52             return 'midnight' if $time == 0;
53             return 'evening1' if $time >= 1800
54             && $time < 2100;
55             return 'night1' if $time >= 2100;
56             return 'night1' if $time < 600;
57             return 'afternoon1' if $time >= 1200
58             && $time < 1800;
59             return 'morning1' if $time >= 600
60             && $time < 1200;
61             }
62             if($day_period_type eq 'selection') {
63             return 'afternoon1' if $time >= 1200
64             && $time < 1800;
65             return 'morning1' if $time >= 600
66             && $time < 1200;
67             return 'night1' if $time >= 2100;
68             return 'night1' if $time < 600;
69             return 'evening1' if $time >= 1800
70             && $time < 2100;
71             }
72             last SWITCH;
73             }
74             }
75             } },
76             );
77              
78             around day_period_data => sub {
79             my ($orig, $self) = @_;
80             return $self->$orig;
81             };
82              
83             has 'eras' => (
84             is => 'ro',
85             isa => HashRef,
86             init_arg => undef,
87             default => sub { {
88             'gregorian' => {
89             },
90             } },
91             );
92              
93             has 'date_formats' => (
94             is => 'ro',
95             isa => HashRef,
96             init_arg => undef,
97             default => sub { {
98             'gregorian' => {
99             },
100             } },
101             );
102              
103             has 'time_formats' => (
104             is => 'ro',
105             isa => HashRef,
106             init_arg => undef,
107             default => sub { {
108             'gregorian' => {
109             'full' => q{HH:mm:ss zzzz},
110             'long' => q{HH:mm:ss z},
111             'medium' => q{HH:mm:ss},
112             'short' => q{HH:mm},
113             },
114             } },
115             );
116              
117             has 'datetime_formats' => (
118             is => 'ro',
119             isa => HashRef,
120             init_arg => undef,
121             default => sub { {
122             'gregorian' => {
123             },
124             } },
125             );
126              
127             has 'datetime_formats_available_formats' => (
128             is => 'ro',
129             isa => HashRef,
130             init_arg => undef,
131             default => sub { {
132             } },
133             );
134              
135             has 'datetime_formats_append_item' => (
136             is => 'ro',
137             isa => HashRef,
138             init_arg => undef,
139             default => sub { {
140             } },
141             );
142              
143             has 'datetime_formats_interval' => (
144             is => 'ro',
145             isa => HashRef,
146             init_arg => undef,
147             default => sub { {
148             } },
149             );
150              
151 1     1   2096 no Moo;
  1         1  
  1         4  
152              
153             1;
154              
155             # vim: tabstop=4