File Coverage

blib/lib/Locale/CLDR/Locales/De/Any/At.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod n/a
total 35 35 100.0


line stmt bran cond sub pod time code
1             =head1
2              
3             Locale::CLDR::Locales::De::Any::At - Package for language German
4              
5             =cut
6              
7             package Locale::CLDR::Locales::De::Any::At;
8             # This file auto generated from Data\common\main\de_AT.xml
9             # on Sun 24 Apr 8:22:38 am GMT
10              
11 1     1   1437 use version;
  1         2  
  1         13  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   97 use v5.10.1;
  1         4  
16 1     1   4 use mro 'c3';
  1         1  
  1         9  
17 1     1   33 use utf8;
  1         1  
  1         8  
18 1     1   30 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         1  
  1         15  
19              
20 1     1   116 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         12  
21 1     1   778 use Moo;
  1         2  
  1         7  
22              
23             extends('Locale::CLDR::Locales::De::Any');
24             has 'display_name_measurement_system' => (
25             is => 'ro',
26             isa => HashRef[Str],
27             init_arg => undef,
28             default => sub {
29             {
30             'metric' => q{Internationales Maßsystem (SI)},
31             'UK' => q{Englisches Maßsystem},
32             'US' => q{Angloamerikanisches Maßsystem},
33              
34             }
35             },
36             );
37              
38             has 'characters' => (
39             is => 'ro',
40             isa => HashRef,
41             init_arg => undef,
42             default => $^V ge v5.18.0
43             ? eval <<'EOT'
44             sub {
45             no warnings 'experimental::regex_sets';
46             return {
47             index => ['A', 'Ä', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'Ö', 'P', 'Q', 'R', 'S', 'T', 'U', 'Ãœ', 'V', 'W', 'X', 'Y', 'Z'],
48             };
49             },
50             EOT
51             : sub {
52             return { index => ['A', 'Ä', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'Ö', 'P', 'Q', 'R', 'S', 'T', 'U', 'Ãœ', 'V', 'W', 'X', 'Y', 'Z'], };
53             },
54 1     1   92 );
  1         1  
  1         80  
55              
56              
57             has 'number_symbols' => (
58             is => 'ro',
59             isa => HashRef,
60             init_arg => undef,
61             default => sub { {
62             'latn' => {
63             'group' => q( ),
64             },
65             } }
66             );
67              
68             has 'number_currency_formats' => (
69             is => 'ro',
70             isa => HashRef,
71             init_arg => undef,
72             default => sub { {
73             'latn' => {
74             'pattern' => {
75             'default' => {
76             'standard' => {
77             'positive' => '¤ #,##0.00',
78             },
79             },
80             },
81             },
82             } },
83             );
84              
85             has 'calendar_months' => (
86             is => 'ro',
87             isa => HashRef,
88             init_arg => undef,
89             default => sub { {
90             'gregorian' => {
91             'format' => {
92             abbreviated => {
93             nonleap => [
94             'Jän.',
95             'Feb.',
96             'März',
97             'Apr.',
98             'Mai',
99             'Juni',
100             'Juli',
101             'Aug.',
102             'Sep.',
103             'Okt.',
104             'Nov.',
105             'Dez.'
106             ],
107             leap => [
108            
109             ],
110             },
111             wide => {
112             nonleap => [
113             'Jänner',
114             'Februar',
115             'März',
116             'April',
117             'Mai',
118             'Juni',
119             'Juli',
120             'August',
121             'September',
122             'Oktober',
123             'November',
124             'Dezember'
125             ],
126             leap => [
127            
128             ],
129             },
130             },
131             'stand-alone' => {
132             abbreviated => {
133             nonleap => [
134             'Jän',
135             'Feb',
136             'Mär',
137             'Apr',
138             'Mai',
139             'Jun',
140             'Jul',
141             'Aug',
142             'Sep',
143             'Okt',
144             'Nov',
145             'Dez'
146             ],
147             leap => [
148            
149             ],
150             },
151             wide => {
152             nonleap => [
153             'Jänner',
154             'Februar',
155             'März',
156             'April',
157             'Mai',
158             'Juni',
159             'Juli',
160             'August',
161             'September',
162             'Oktober',
163             'November',
164             'Dezember'
165             ],
166             leap => [
167            
168             ],
169             },
170             },
171             },
172             } },
173             );
174              
175             has 'day_period_data' => (
176             is => 'ro',
177             isa => CodeRef,
178             init_arg => undef,
179             default => sub { sub {
180             # Time in hhmm format
181             my ($self, $type, $time, $day_period_type) = @_;
182             $day_period_type //= 'default';
183             SWITCH:
184             for ($type) {
185             if ($_ eq 'gregorian') {
186             if($day_period_type eq 'selection') {
187             return 'evening1' if $time >= 1800
188             && $time < 2400;
189             return 'morning2' if $time >= 1000
190             && $time < 1200;
191             return 'night1' if $time >= 0
192             && $time < 500;
193             return 'afternoon2' if $time >= 1300
194             && $time < 1800;
195             return 'morning1' if $time >= 500
196             && $time < 1000;
197             return 'afternoon1' if $time >= 1200
198             && $time < 1300;
199             }
200             if($day_period_type eq 'default') {
201             return 'midnight' if $time == 0;
202             return 'afternoon2' if $time >= 1300
203             && $time < 1800;
204             return 'morning1' if $time >= 500
205             && $time < 1000;
206             return 'afternoon1' if $time >= 1200
207             && $time < 1300;
208             return 'night1' if $time >= 0
209             && $time < 500;
210             return 'morning2' if $time >= 1000
211             && $time < 1200;
212             return 'evening1' if $time >= 1800
213             && $time < 2400;
214             }
215             last SWITCH;
216             }
217             }
218             } },
219             );
220              
221             around day_period_data => sub {
222             my ($orig, $self) = @_;
223             return $self->$orig;
224             };
225              
226             has 'eras' => (
227             is => 'ro',
228             isa => HashRef,
229             init_arg => undef,
230             default => sub { {
231             'gregorian' => {
232             },
233             } },
234             );
235              
236             has 'date_formats' => (
237             is => 'ro',
238             isa => HashRef,
239             init_arg => undef,
240             default => sub { {
241             'gregorian' => {
242             },
243             } },
244             );
245              
246             has 'time_formats' => (
247             is => 'ro',
248             isa => HashRef,
249             init_arg => undef,
250             default => sub { {
251             'gregorian' => {
252             },
253             } },
254             );
255              
256             has 'datetime_formats' => (
257             is => 'ro',
258             isa => HashRef,
259             init_arg => undef,
260             default => sub { {
261             'gregorian' => {
262             },
263             } },
264             );
265              
266             has 'datetime_formats_available_formats' => (
267             is => 'ro',
268             isa => HashRef,
269             init_arg => undef,
270             default => sub { {
271             } },
272             );
273              
274             has 'datetime_formats_append_item' => (
275             is => 'ro',
276             isa => HashRef,
277             init_arg => undef,
278             default => sub { {
279             } },
280             );
281              
282             has 'datetime_formats_interval' => (
283             is => 'ro',
284             isa => HashRef,
285             init_arg => undef,
286             default => sub { {
287             } },
288             );
289              
290 1     1   2807 no Moo;
  1         2  
  1         5  
291              
292             1;
293              
294             # vim: tabstop=4