File Coverage

blib/lib/Locale/CLDR/Locales/De/Latn/Lu.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::De::Latn::Lu - Package for language German
6              
7             =cut
8              
9             package Locale::CLDR::Locales::De::Latn::Lu;
10             # This file auto generated from Data\common\main\de_LU.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1608 use strict;
  1         2  
  1         34  
14 1     1   4 use warnings;
  1         2  
  1         73  
15 1     1   5 use version;
  1         2  
  1         7  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   119 use v5.12.0;
  1         2  
20 1     1   3 use mro 'c3';
  1         2  
  1         7  
21 1     1   35 use utf8;
  1         1  
  1         16  
22 1     1   51 use feature 'unicode_strings';
  1         1  
  1         159  
23 1     1   8 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         14  
24 1     1   3579 use Moo;
  1         2  
  1         8  
25              
26             extends('Locale::CLDR::Locales::De::Latn');
27             has 'currencies' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => sub { {
32             'LUF' => {
33             symbol => 'F',
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 'midnight' if $time == 0;
52             return 'afternoon1' if $time >= 1200
53             && $time < 1300;
54             return 'afternoon2' if $time >= 1300
55             && $time < 1800;
56             return 'evening1' if $time >= 1800
57             && $time < 2400;
58             return 'morning1' if $time >= 500
59             && $time < 1000;
60             return 'morning2' if $time >= 1000
61             && $time < 1200;
62             return 'night1' if $time >= 0
63             && $time < 500;
64             }
65             if($day_period_type eq 'selection') {
66             return 'afternoon1' if $time >= 1200
67             && $time < 1300;
68             return 'afternoon2' if $time >= 1300
69             && $time < 1800;
70             return 'evening1' if $time >= 1800
71             && $time < 2400;
72             return 'morning1' if $time >= 500
73             && $time < 1000;
74             return 'morning2' if $time >= 1000
75             && $time < 1200;
76             return 'night1' if $time >= 0
77             && $time < 500;
78             }
79             last SWITCH;
80             }
81             }
82             } },
83             );
84              
85             around day_period_data => sub {
86             my ($orig, $self) = @_;
87             return $self->$orig;
88             };
89              
90             has 'day_periods' => (
91             is => 'ro',
92             isa => HashRef,
93             init_arg => undef,
94             default => sub { {
95             'gregorian' => {
96             'format' => {
97             'narrow' => {
98             'am' => q{vorm.},
99             'pm' => q{nachm.},
100             },
101             },
102             },
103             } },
104             );
105              
106             has 'eras' => (
107             is => 'ro',
108             isa => HashRef,
109             init_arg => undef,
110             default => sub { {
111             'gregorian' => {
112             },
113             } },
114             );
115              
116             has 'date_formats' => (
117             is => 'ro',
118             isa => HashRef,
119             init_arg => undef,
120             default => sub { {
121             'gregorian' => {
122             },
123             } },
124             );
125              
126             has 'time_formats' => (
127             is => 'ro',
128             isa => HashRef,
129             init_arg => undef,
130             default => sub { {
131             'gregorian' => {
132             },
133             } },
134             );
135              
136             has 'datetime_formats' => (
137             is => 'ro',
138             isa => HashRef,
139             init_arg => undef,
140             default => sub { {
141             'gregorian' => {
142             },
143             } },
144             );
145              
146             has 'datetime_formats_available_formats' => (
147             is => 'ro',
148             isa => HashRef,
149             init_arg => undef,
150             default => sub { {
151             'gregorian' => {
152             h => q{h a},
153             },
154             } },
155             );
156              
157             has 'datetime_formats_append_item' => (
158             is => 'ro',
159             isa => HashRef,
160             init_arg => undef,
161             default => sub { {
162             } },
163             );
164              
165             has 'datetime_formats_interval' => (
166             is => 'ro',
167             isa => HashRef,
168             init_arg => undef,
169             default => sub { {
170             } },
171             );
172              
173 1     1   2564 no Moo;
  1         2  
  1         5  
174              
175             1;
176              
177             # vim: tabstop=4