File Coverage

blib/lib/Locale/CLDR/Locales/Ar/Arab/Mr.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod n/a
total 43 43 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1 NAME
4              
5             Locale::CLDR::Locales::Ar::Arab::Mr - Package for language Arabic
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Ar::Arab::Mr;
10             # This file auto generated from Data\common\main\ar_MR.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1916 use strict;
  1         3  
  1         44  
14 1     1   6 use warnings;
  1         2  
  1         63  
15 1     1   7 use version;
  1         3  
  1         9  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   167 use v5.12.0;
  1         4  
20 1     1   7 use mro 'c3';
  1         2  
  1         8  
21 1     1   63 use utf8;
  1         23  
  1         10  
22 1     1   44 use feature 'unicode_strings';
  1         2  
  1         186  
23 1     1   9 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         13  
24 1     1   2998 use Moo;
  1         2  
  1         8  
25              
26             extends('Locale::CLDR::Locales::Ar::Arab');
27             has 'characters' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => $^V ge v5.18.0
32             ? eval <<'EOT'
33             sub {
34             no warnings 'experimental::regex_sets';
35             return {
36             numbers => qr{[‎ \- ‑ , . % ‰ + 0 1 2 3 4 5 6 7 8 9]},
37             };
38             },
39             EOT
40             : sub {
41             return {};
42             },
43 1     1   152 );
  1         2  
  1         120  
44              
45              
46             has 'default_numbering_system' => (
47             is => 'ro',
48             isa => Str,
49             init_arg => undef,
50             default => 'arab',
51             );
52              
53             has 'number_symbols' => (
54             is => 'ro',
55             isa => HashRef,
56             init_arg => undef,
57             default => sub { {
58             'latn' => {
59             'decimal' => q(,),
60             'group' => q(.),
61             },
62             } }
63             );
64              
65             has 'calendar_months' => (
66             is => 'ro',
67             isa => HashRef,
68             init_arg => undef,
69             default => sub { {
70             'gregorian' => {
71             'format' => {
72             wide => {
73             nonleap => [
74             'يناير',
75             'فبراير',
76             'مارس',
77             'إبريل',
78             'مايو',
79             'يونيو',
80             'يوليو',
81             'أغشت',
82             'شتمبر',
83             'أكتوبر',
84             'نوفمبر',
85             'دجمبر'
86             ],
87             leap => [
88            
89             ],
90             },
91             },
92             'stand-alone' => {
93             narrow => {
94             nonleap => [
95             'ي',
96             'ف',
97             'م',
98             'إ',
99             'و',
100             'ن',
101             'ل',
102             'غ',
103             'ش',
104             'ك',
105             'ب',
106             'د'
107             ],
108             leap => [
109            
110             ],
111             },
112             },
113             },
114             } },
115             );
116              
117             has 'day_period_data' => (
118             is => 'ro',
119             isa => CodeRef,
120             init_arg => undef,
121             default => sub { sub {
122             # Time in hhmm format
123             my ($self, $type, $time, $day_period_type) = @_;
124             $day_period_type //= 'default';
125             SWITCH:
126             for ($type) {
127             if ($_ eq 'gregorian') {
128             if($day_period_type eq 'default') {
129             return 'afternoon1' if $time >= 1200
130             && $time < 1300;
131             return 'afternoon2' if $time >= 1300
132             && $time < 1800;
133             return 'evening1' if $time >= 1800
134             && $time < 2400;
135             return 'morning1' if $time >= 300
136             && $time < 600;
137             return 'morning2' if $time >= 600
138             && $time < 1200;
139             return 'night1' if $time >= 0
140             && $time < 100;
141             return 'night2' if $time >= 100
142             && $time < 300;
143             }
144             if($day_period_type eq 'selection') {
145             return 'afternoon1' if $time >= 1200
146             && $time < 1300;
147             return 'afternoon2' if $time >= 1300
148             && $time < 1800;
149             return 'evening1' if $time >= 1800
150             && $time < 2400;
151             return 'morning1' if $time >= 300
152             && $time < 600;
153             return 'morning2' if $time >= 600
154             && $time < 1200;
155             return 'night1' if $time >= 0
156             && $time < 100;
157             return 'night2' if $time >= 100
158             && $time < 300;
159             }
160             last SWITCH;
161             }
162             }
163             } },
164             );
165              
166             around day_period_data => sub {
167             my ($orig, $self) = @_;
168             return $self->$orig;
169             };
170              
171             has 'eras' => (
172             is => 'ro',
173             isa => HashRef,
174             init_arg => undef,
175             default => sub { {
176             'gregorian' => {
177             },
178             } },
179             );
180              
181             has 'date_formats' => (
182             is => 'ro',
183             isa => HashRef,
184             init_arg => undef,
185             default => sub { {
186             'gregorian' => {
187             },
188             } },
189             );
190              
191             has 'time_formats' => (
192             is => 'ro',
193             isa => HashRef,
194             init_arg => undef,
195             default => sub { {
196             'gregorian' => {
197             },
198             } },
199             );
200              
201             has 'datetime_formats' => (
202             is => 'ro',
203             isa => HashRef,
204             init_arg => undef,
205             default => sub { {
206             'gregorian' => {
207             },
208             } },
209             );
210              
211             has 'datetime_formats_available_formats' => (
212             is => 'ro',
213             isa => HashRef,
214             init_arg => undef,
215             default => sub { {
216             } },
217             );
218              
219             has 'datetime_formats_append_item' => (
220             is => 'ro',
221             isa => HashRef,
222             init_arg => undef,
223             default => sub { {
224             } },
225             );
226              
227             has 'datetime_formats_interval' => (
228             is => 'ro',
229             isa => HashRef,
230             init_arg => undef,
231             default => sub { {
232             } },
233             );
234              
235 1     1   2113 no Moo;
  1         3  
  1         6  
236              
237             1;
238              
239             # vim: tabstop=4