| 1 | =encoding utf8 | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | =head1 NAME | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | Locale::CLDR::Locales::Yue::Hant::Cn - Package for language Cantonese | ||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | =cut | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | package Locale::CLDR::Locales::Yue::Hant::Cn; | ||||||||||||||||||||||||||||
| 10 | # This file auto generated from Data\common\main\yue_Hant_CN.xml | ||||||||||||||||||||||||||||
| 11 | # on Fri 17 Jan 12:03:31 pm GMT | ||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 14 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 15 | 1 | ▶ | use version; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 1 | our $VERSION = version->declare('v0.46.0'); | |||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 1 | ▶ | use v5.12.0; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 20 | 1 | ▶ | use mro 'c3'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 21 | 1 | ▶ | use utf8; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 22 | 1 | ▶ | use feature 'unicode_strings'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 23 | 1 | ▶ | use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 24 | 1 | ▶ | use Moo; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | 1 | extends('Locale::CLDR::Locales::Yue::Hant'); | |||||||||||||||||||||||||||
| 27 | has 'day_period_data' => ( | ||||||||||||||||||||||||||||
| 28 | is => 'ro', | ||||||||||||||||||||||||||||
| 29 | isa => CodeRef, | ||||||||||||||||||||||||||||
| 30 | init_arg => undef, | ||||||||||||||||||||||||||||
| 31 | 0 | ▶ | default => sub { sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
Subroutine
__ANON__: not called CC=31 SCAR=69.0
| |||||||||||||||||||||||||||||
| 32 | # Time in hhmm format | ||||||||||||||||||||||||||||
| 33 | 0 | my ($self, $type, $time, $day_period_type) = @_; | |||||||||||||||||||||||||||
| 34 | 0 | ▶ | $day_period_type //= 'default'; | ||||||||||||||||||||||||||
|
Condition0%0/2
$day_period_type //= "default"
MC/DC0%0/1
$day_period_type //= "default"
$day_period_type
Truth table0%0/2
A
A= $day_period_type
| |||||||||||||||||||||||||||||
| 35 | SWITCH: | ||||||||||||||||||||||||||||
| 36 | 0 | for ($type) { | |||||||||||||||||||||||||||
| 37 | 0 | ▶ | if ($_ eq 'gregorian') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 38 | 0 | ▶ | if($day_period_type eq 'default') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 39 | 0 | ▶ | return 'midnight' if $time == 0; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 40 | 0 | ▶ | return 'afternoon1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 1300
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200
$time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
| |||||||||||||||||||||||||||||
| 41 | && $time < 1300; | ||||||||||||||||||||||||||||
| 42 | 0 | ▶ | return 'afternoon2' if $time >= 1300 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1300 and $time < 1900
MC/DC0%0/2
$time >= 1300 and $time < 1900
$time >= 1300
$time < 1900
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1900
| |||||||||||||||||||||||||||||
| 43 | && $time < 1900; | ||||||||||||||||||||||||||||
| 44 | 0 | ▶ | return 'evening1' if $time >= 1900 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1900 and $time < 2400
MC/DC0%0/2
$time >= 1900 and $time < 2400
$time >= 1900
$time < 2400
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2400
| |||||||||||||||||||||||||||||
| 45 | && $time < 2400; | ||||||||||||||||||||||||||||
| 46 | 0 | ▶ | return 'morning1' if $time >= 500 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 500 and $time < 800
MC/DC0%0/2
$time >= 500 and $time < 800
$time >= 500
$time < 800
Truth table0%0/3
A and B
A= $time >= 500B= $time < 800
| |||||||||||||||||||||||||||||
| 47 | && $time < 800; | ||||||||||||||||||||||||||||
| 48 | 0 | ▶ | return 'morning2' if $time >= 800 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 800 and $time < 1200
MC/DC0%0/2
$time >= 800 and $time < 1200
$time >= 800
$time < 1200
Truth table0%0/3
A and B
A= $time >= 800B= $time < 1200
| |||||||||||||||||||||||||||||
| 49 | && $time < 1200; | ||||||||||||||||||||||||||||
| 50 | 0 | ▶ | return 'night1' if $time >= 0 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 0 and $time < 500
MC/DC0%0/2
$time >= 0 and $time < 500
$time >= 0
$time < 500
Truth table0%0/3
A and B
A= $time >= 0B= $time < 500
| |||||||||||||||||||||||||||||
| 51 | && $time < 500; | ||||||||||||||||||||||||||||
| 52 | } | ||||||||||||||||||||||||||||
| 53 | 0 | ▶ | if($day_period_type eq 'selection') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 54 | 0 | ▶ | return 'afternoon1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 1300
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200
$time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
| |||||||||||||||||||||||||||||
| 55 | && $time < 1300; | ||||||||||||||||||||||||||||
| 56 | 0 | ▶ | return 'afternoon2' if $time >= 1300 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1300 and $time < 1900
MC/DC0%0/2
$time >= 1300 and $time < 1900
$time >= 1300
$time < 1900
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1900
| |||||||||||||||||||||||||||||
| 57 | && $time < 1900; | ||||||||||||||||||||||||||||
| 58 | 0 | ▶ | return 'evening1' if $time >= 1900 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1900 and $time < 2400
MC/DC0%0/2
$time >= 1900 and $time < 2400
$time >= 1900
$time < 2400
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2400
| |||||||||||||||||||||||||||||
| 59 | && $time < 2400; | ||||||||||||||||||||||||||||
| 60 | 0 | ▶ | return 'morning1' if $time >= 500 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 500 and $time < 800
MC/DC0%0/2
$time >= 500 and $time < 800
$time >= 500
$time < 800
Truth table0%0/3
A and B
A= $time >= 500B= $time < 800
| |||||||||||||||||||||||||||||
| 61 | && $time < 800; | ||||||||||||||||||||||||||||
| 62 | 0 | ▶ | return 'morning2' if $time >= 800 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 800 and $time < 1200
MC/DC0%0/2
$time >= 800 and $time < 1200
$time >= 800
$time < 1200
Truth table0%0/3
A and B
A= $time >= 800B= $time < 1200
| |||||||||||||||||||||||||||||
| 63 | && $time < 1200; | ||||||||||||||||||||||||||||
| 64 | 0 | ▶ | return 'night1' if $time >= 0 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 0 and $time < 500
MC/DC0%0/2
$time >= 0 and $time < 500
$time >= 0
$time < 500
Truth table0%0/3
A and B
A= $time >= 0B= $time < 500
| |||||||||||||||||||||||||||||
| 65 | && $time < 500; | ||||||||||||||||||||||||||||
| 66 | } | ||||||||||||||||||||||||||||
| 67 | 0 | last SWITCH; | |||||||||||||||||||||||||||
| 68 | } | ||||||||||||||||||||||||||||
| 69 | } | ||||||||||||||||||||||||||||
| 70 | 0 | } }, | |||||||||||||||||||||||||||
| 71 | 1 | ); | |||||||||||||||||||||||||||
| 72 | |||||||||||||||||||||||||||||
| 73 | 0 | ▶ | around day_period_data => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 74 | 0 | my ($orig, $self) = @_; | |||||||||||||||||||||||||||
| 75 | 0 | return $self->$orig; | |||||||||||||||||||||||||||
| 76 | 1 | }; | |||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||
| 78 | has 'eras' => ( | ||||||||||||||||||||||||||||
| 79 | is => 'ro', | ||||||||||||||||||||||||||||
| 80 | isa => HashRef, | ||||||||||||||||||||||||||||
| 81 | init_arg => undef, | ||||||||||||||||||||||||||||
| 82 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 83 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 84 | }, | ||||||||||||||||||||||||||||
| 85 | } }, | ||||||||||||||||||||||||||||
| 86 | 1 | ); | |||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||
| 88 | has 'date_formats' => ( | ||||||||||||||||||||||||||||
| 89 | is => 'ro', | ||||||||||||||||||||||||||||
| 90 | isa => HashRef, | ||||||||||||||||||||||||||||
| 91 | init_arg => undef, | ||||||||||||||||||||||||||||
| 92 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 93 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 94 | }, | ||||||||||||||||||||||||||||
| 95 | } }, | ||||||||||||||||||||||||||||
| 96 | 1 | ); | |||||||||||||||||||||||||||
| 97 | |||||||||||||||||||||||||||||
| 98 | has 'time_formats' => ( | ||||||||||||||||||||||||||||
| 99 | is => 'ro', | ||||||||||||||||||||||||||||
| 100 | isa => HashRef, | ||||||||||||||||||||||||||||
| 101 | init_arg => undef, | ||||||||||||||||||||||||||||
| 102 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 103 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 104 | 'full' => q{HH:mm:ss [zzzz]}, | ||||||||||||||||||||||||||||
| 105 | 'long' => q{HH:mm:ss [z]}, | ||||||||||||||||||||||||||||
| 106 | 'medium' => q{HH:mm:ss}, | ||||||||||||||||||||||||||||
| 107 | 'short' => q{HH:mm}, | ||||||||||||||||||||||||||||
| 108 | }, | ||||||||||||||||||||||||||||
| 109 | } }, | ||||||||||||||||||||||||||||
| 110 | 1 | ); | |||||||||||||||||||||||||||
| 111 | |||||||||||||||||||||||||||||
| 112 | has 'datetime_formats' => ( | ||||||||||||||||||||||||||||
| 113 | is => 'ro', | ||||||||||||||||||||||||||||
| 114 | isa => HashRef, | ||||||||||||||||||||||||||||
| 115 | init_arg => undef, | ||||||||||||||||||||||||||||
| 116 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 117 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 118 | }, | ||||||||||||||||||||||||||||
| 119 | } }, | ||||||||||||||||||||||||||||
| 120 | 1 | ); | |||||||||||||||||||||||||||
| 121 | |||||||||||||||||||||||||||||
| 122 | has 'datetime_formats_available_formats' => ( | ||||||||||||||||||||||||||||
| 123 | is => 'ro', | ||||||||||||||||||||||||||||
| 124 | isa => HashRef, | ||||||||||||||||||||||||||||
| 125 | init_arg => undef, | ||||||||||||||||||||||||||||
| 126 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 127 | 0 | } }, | |||||||||||||||||||||||||||
| 128 | 1 | ); | |||||||||||||||||||||||||||
| 129 | |||||||||||||||||||||||||||||
| 130 | has 'datetime_formats_append_item' => ( | ||||||||||||||||||||||||||||
| 131 | is => 'ro', | ||||||||||||||||||||||||||||
| 132 | isa => HashRef, | ||||||||||||||||||||||||||||
| 133 | init_arg => undef, | ||||||||||||||||||||||||||||
| 134 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 135 | 0 | } }, | |||||||||||||||||||||||||||
| 136 | 1 | ); | |||||||||||||||||||||||||||
| 137 | |||||||||||||||||||||||||||||
| 138 | has 'datetime_formats_interval' => ( | ||||||||||||||||||||||||||||
| 139 | is => 'ro', | ||||||||||||||||||||||||||||
| 140 | isa => HashRef, | ||||||||||||||||||||||||||||
| 141 | init_arg => undef, | ||||||||||||||||||||||||||||
| 142 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 143 | 0 | } }, | |||||||||||||||||||||||||||
| 144 | 1 | ); | |||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||
| 146 | 1 | ▶ | no Moo; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 147 | |||||||||||||||||||||||||||||
| 148 | 1 | 1; | |||||||||||||||||||||||||||
| 149 | |||||||||||||||||||||||||||||
| 150 | # vim: tabstop=4 | ||||||||||||||||||||||||||||