File Coverage

blib/lib/Locale/CLDR/Locales/Fr/Latn/Cm.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::Fr::Latn::Cm - Package for language French
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Fr::Latn::Cm;
10             # This file auto generated from Data\common\main\fr_CM.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1435 use strict;
  1         2  
  1         32  
14 1     1   3 use warnings;
  1         2  
  1         47  
15 1     1   8 use version;
  1         2  
  1         7  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   127 use v5.12.0;
  1         4  
20 1     1   3 use mro 'c3';
  1         2  
  1         4  
21 1     1   21 use utf8;
  1         2  
  1         4  
22 1     1   54 use feature 'unicode_strings';
  1         7  
  1         88  
23 1     1   5 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         6  
24 1     1   1850 use Moo;
  1         3  
  1         8  
25              
26             extends('Locale::CLDR::Locales::Fr::Latn');
27             has 'day_period_data' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub { sub {
32             # Time in hhmm format
33             my ($self, $type, $time, $day_period_type) = @_;
34             $day_period_type //= 'default';
35             SWITCH:
36             for ($type) {
37             if ($_ eq 'gregorian') {
38             if($day_period_type eq 'default') {
39             return 'midnight' if $time == 0;
40             return 'noon' if $time == 1200;
41             return 'afternoon1' if $time >= 1200
42             && $time < 1800;
43             return 'evening1' if $time >= 1800
44             && $time < 2400;
45             return 'morning1' if $time >= 400
46             && $time < 1200;
47             return 'night1' if $time >= 0
48             && $time < 400;
49             }
50             if($day_period_type eq 'selection') {
51             return 'afternoon1' if $time >= 1200
52             && $time < 1800;
53             return 'evening1' if $time >= 1800
54             && $time < 2400;
55             return 'morning1' if $time >= 400
56             && $time < 1200;
57             return 'night1' if $time >= 0
58             && $time < 400;
59             }
60             last SWITCH;
61             }
62             }
63             } },
64             );
65              
66             around day_period_data => sub {
67             my ($orig, $self) = @_;
68             return $self->$orig;
69             };
70              
71             has 'day_periods' => (
72             is => 'ro',
73             isa => HashRef,
74             init_arg => undef,
75             default => sub { {
76             'gregorian' => {
77             'format' => {
78             'abbreviated' => {
79             'am' => q{mat.},
80             'pm' => q{soir},
81             },
82             'wide' => {
83             'am' => q{matin},
84             'pm' => q{soir},
85             },
86             },
87             'stand-alone' => {
88             'wide' => {
89             'am' => q{matin},
90             'pm' => q{soir},
91             },
92             },
93             },
94             } },
95             );
96              
97             has 'eras' => (
98             is => 'ro',
99             isa => HashRef,
100             init_arg => undef,
101             default => sub { {
102             'gregorian' => {
103             },
104             } },
105             );
106              
107             has 'date_formats' => (
108             is => 'ro',
109             isa => HashRef,
110             init_arg => undef,
111             default => sub { {
112             'gregorian' => {
113             },
114             } },
115             );
116              
117             has 'time_formats' => (
118             is => 'ro',
119             isa => HashRef,
120             init_arg => undef,
121             default => sub { {
122             'gregorian' => {
123             },
124             } },
125             );
126              
127             has 'datetime_formats' => (
128             is => 'ro',
129             isa => HashRef,
130             init_arg => undef,
131             default => sub { {
132             'gregorian' => {
133             },
134             } },
135             );
136              
137             has 'datetime_formats_available_formats' => (
138             is => 'ro',
139             isa => HashRef,
140             init_arg => undef,
141             default => sub { {
142             'gregorian' => {
143             Ehm => q{E h:mm},
144             Ehms => q{E h:mm:ss},
145             h => q{h},
146             hm => q{h:mm},
147             hms => q{h:mm:ss},
148             hmsv => q{h:mm:ss v},
149             hmv => q{h:mm v},
150             },
151             } },
152             );
153              
154             has 'datetime_formats_append_item' => (
155             is => 'ro',
156             isa => HashRef,
157             init_arg => undef,
158             default => sub { {
159             } },
160             );
161              
162             has 'datetime_formats_interval' => (
163             is => 'ro',
164             isa => HashRef,
165             init_arg => undef,
166             default => sub { {
167             'gregorian' => {
168             h => {
169             a => q{h – h},
170             h => q{h – h},
171             },
172             hm => {
173             a => q{h:mm – h:mm},
174             h => q{h:mm – h:mm},
175             m => q{h:mm – h:mm},
176             },
177             hmv => {
178             a => q{h:mm – h:mm v},
179             h => q{h:mm – h:mm v},
180             m => q{h:mm – h:mm v},
181             },
182             hv => {
183             a => q{h – h v},
184             h => q{h – h v},
185             },
186             },
187             } },
188             );
189              
190 1     1   1388 no Moo;
  1         4  
  1         7  
191              
192             1;
193              
194             # vim: tabstop=4