File Coverage

blib/lib/Locale/CLDR/NumberingSystems.pm
Criterion Covered Total %
statement 40 40 100.0
branch 4 4 100.0
condition 1 2 50.0
subroutine 13 13 100.0
pod 0 1 0.0
total 58 60 96.6


line stmt bran cond sub pod time code
1             # This file auto generated from Data/common/supplemental/numberingSystems.xml
2             # on Mon 11 Apr 5:22:53 pm GMT
3              
4             use strict;
5 21     21   9692 use warnings;
  21         41  
  21         537  
6 21     21   86 use version;
  21         33  
  21         435  
7 21     21   77  
  21         37  
  21         107  
8             our $VERSION = version->declare('v0.34.1');
9              
10             use v5.10.1;
11 21     21   1725 use mro 'c3';
  21         61  
12 21     21   91 use utf8;
  21         35  
  21         113  
13 21     21   478 use if $^V ge v5.12.0, feature => 'unicode_strings';
  21         33  
  21         125  
14 21     21   693 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  21         54  
  21         257  
15 21     21   1975 use Moo::Role;
  21         44  
  21         213  
16 21     21   17394  
  21         37  
  21         146  
17             has 'numbering_system' => (
18             is => 'ro',
19             isa => HashRef,
20             init_arg => undef,
21             default => sub { return {
22             'adlm' => {
23             type => 'numeric',
24             data => [qw(𞥐 𞥑 𞥒 𞥓 𞥔 𞥕 𞥖 𞥗 𞥘 𞥙)],
25             },
26             'ahom' => {
27             type => 'numeric',
28             data => [qw(𑜰 𑜱 𑜲 𑜳 𑜴 𑜵 𑜶 𑜷 𑜸 𑜹)],
29             },
30             'arab' => {
31             type => 'numeric',
32             data => [qw(٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩)],
33             },
34             'arabext' => {
35             type => 'numeric',
36             data => [qw(۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹)],
37             },
38             'armn' => {
39             type => 'algorithmic',
40             data => 'armenian-upper',
41             },
42             'armnlow' => {
43             type => 'algorithmic',
44             data => 'armenian-lower',
45             },
46             'bali' => {
47             type => 'numeric',
48             data => [qw(᭐ ᭑ ᭒ ᭓ ᭔ ᭕ ᭖ ᭗ ᭘ ᭙)],
49             },
50             'beng' => {
51             type => 'numeric',
52             data => [qw(০ ১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯)],
53             },
54             'bhks' => {
55             type => 'numeric',
56             data => [qw(𑱐 𑱑 𑱒 𑱓 𑱔 𑱕 𑱖 𑱗 𑱘 𑱙)],
57             },
58             'brah' => {
59             type => 'numeric',
60             data => [qw(𑁦 𑁧 𑁨 𑁩 𑁪 𑁫 𑁬 𑁭 𑁮 𑁯)],
61             },
62             'cakm' => {
63             type => 'numeric',
64             data => [qw(𑄶 𑄷 𑄸 𑄹 𑄺 𑄻 𑄼 𑄽 𑄾 𑄿)],
65             },
66             'cham' => {
67             type => 'numeric',
68             data => [qw(꩐ ꩑ ꩒ ꩓ ꩔ ꩕ ꩖ ꩗ ꩘ ꩙)],
69             },
70             'cyrl' => {
71             type => 'algorithmic',
72             data => 'cyrillic-lower',
73             },
74             'deva' => {
75             type => 'numeric',
76             data => [qw(० १ २ ३ ४ ५ ६ ७ ८ ९)],
77             },
78             'ethi' => {
79             type => 'algorithmic',
80             data => 'ethiopic',
81             },
82             'fullwide' => {
83             type => 'numeric',
84             data => [qw(0 1 2 3 4 5 6 7 8 9)],
85             },
86             'geor' => {
87             type => 'algorithmic',
88             data => 'georgian',
89             },
90             'gong' => {
91             type => 'numeric',
92             data => [qw(𑶠 𑶡 𑶢 𑶣 𑶤 𑶥 𑶦 𑶧 𑶨 𑶩)],
93             },
94             'gonm' => {
95             type => 'numeric',
96             data => [qw(𑵐 𑵑 𑵒 𑵓 𑵔 𑵕 𑵖 𑵗 𑵘 𑵙)],
97             },
98             'grek' => {
99             type => 'algorithmic',
100             data => 'greek-upper',
101             },
102             'greklow' => {
103             type => 'algorithmic',
104             data => 'greek-lower',
105             },
106             'gujr' => {
107             type => 'numeric',
108             data => [qw(૦ ૧ ૨ ૩ ૪ ૫ ૬ ૭ ૮ ૯)],
109             },
110             'guru' => {
111             type => 'numeric',
112             data => [qw(੦ ੧ ੨ ੩ ੪ ੫ ੬ ੭ ੮ ੯)],
113             },
114             'hanidays' => {
115             type => 'algorithmic',
116             data => 'zh/SpelloutRules/spellout-numbering-days',
117             },
118             'hanidec' => {
119             type => 'numeric',
120             data => [qw(〇 一 二 三 四 五 六 七 八 九)],
121             },
122             'hans' => {
123             type => 'algorithmic',
124             data => 'zh/SpelloutRules/spellout-cardinal',
125             },
126             'hansfin' => {
127             type => 'algorithmic',
128             data => 'zh/SpelloutRules/spellout-cardinal-financial',
129             },
130             'hant' => {
131             type => 'algorithmic',
132             data => 'zh_Hant/SpelloutRules/spellout-cardinal',
133             },
134             'hantfin' => {
135             type => 'algorithmic',
136             data => 'zh_Hant/SpelloutRules/spellout-cardinal-financial',
137             },
138             'hebr' => {
139             type => 'algorithmic',
140             data => 'hebrew',
141             },
142             'hmng' => {
143             type => 'numeric',
144             data => [qw(𖭐 𖭑 𖭒 𖭓 𖭔 𖭕 𖭖 𖭗 𖭘 𖭙)],
145             },
146             'java' => {
147             type => 'numeric',
148             data => [qw(꧐ ꧑ ꧒ ꧓ ꧔ ꧕ ꧖ ꧗ ꧘ ꧙)],
149             },
150             'jpan' => {
151             type => 'algorithmic',
152             data => 'ja/SpelloutRules/spellout-cardinal',
153             },
154             'jpanfin' => {
155             type => 'algorithmic',
156             data => 'ja/SpelloutRules/spellout-cardinal-financial',
157             },
158             'kali' => {
159             type => 'numeric',
160             data => [qw(꤀ ꤁ ꤂ ꤃ ꤄ ꤅ ꤆ ꤇ ꤈ ꤉)],
161             },
162             'khmr' => {
163             type => 'numeric',
164             data => [qw(០ ១ ២ ៣ ៤ ៥ ៦ ៧ ៨ ៩)],
165             },
166             'knda' => {
167             type => 'numeric',
168             data => [qw(೦ ೧ ೨ ೩ ೪ ೫ ೬ ೭ ೮ ೯)],
169             },
170             'lana' => {
171             type => 'numeric',
172             data => [qw(᪀ ᪁ ᪂ ᪃ ᪄ ᪅ ᪆ ᪇ ᪈ ᪉)],
173             },
174             'lanatham' => {
175             type => 'numeric',
176             data => [qw(᪐ ᪑ ᪒ ᪓ ᪔ ᪕ ᪖ ᪗ ᪘ ᪙)],
177             },
178             'laoo' => {
179             type => 'numeric',
180             data => [qw(໐ ໑ ໒ ໓ ໔ ໕ ໖ ໗ ໘ ໙)],
181             },
182             'latn' => {
183             type => 'numeric',
184             data => [qw(0 1 2 3 4 5 6 7 8 9)],
185             },
186             'lepc' => {
187             type => 'numeric',
188             data => [qw(᱀ ᱁ ᱂ ᱃ ᱄ ᱅ ᱆ ᱇ ᱈ ᱉)],
189             },
190             'limb' => {
191             type => 'numeric',
192             data => [qw(᥆ ᥇ ᥈ ᥉ ᥊ ᥋ ᥌ ᥍ ᥎ ᥏)],
193             },
194             'mathbold' => {
195             type => 'numeric',
196             data => [qw(𝟎 𝟏 𝟐 𝟑 𝟒 𝟓 𝟔 𝟕 𝟖 𝟗)],
197             },
198             'mathdbl' => {
199             type => 'numeric',
200             data => [qw(𝟘 𝟙 𝟚 𝟛 𝟜 𝟝 𝟞 𝟟 𝟠 𝟡)],
201             },
202             'mathmono' => {
203             type => 'numeric',
204             data => [qw(𝟶 𝟷 𝟸 𝟹 𝟺 𝟻 𝟼 𝟽 𝟾 𝟿)],
205             },
206             'mathsanb' => {
207             type => 'numeric',
208             data => [qw(𝟬 𝟭 𝟮 𝟯 𝟰 𝟱 𝟲 𝟳 𝟴 𝟵)],
209             },
210             'mathsans' => {
211             type => 'numeric',
212             data => [qw(𝟢 𝟣 𝟤 𝟥 𝟦 𝟧 𝟨 𝟩 𝟪 𝟫)],
213             },
214             'mlym' => {
215             type => 'numeric',
216             data => [qw(൦ ൧ ൨ ൩ ൪ ൫ ൬ ൭ ൮ ൯)],
217             },
218             'modi' => {
219             type => 'numeric',
220             data => [qw(𑙐 𑙑 𑙒 𑙓 𑙔 𑙕 𑙖 𑙗 𑙘 𑙙)],
221             },
222             'mong' => {
223             type => 'numeric',
224             data => [qw(᠐ ᠑ ᠒ ᠓ ᠔ ᠕ ᠖ ᠗ ᠘ ᠙)],
225             },
226             'mroo' => {
227             type => 'numeric',
228             data => [qw(𖩠 𖩡 𖩢 𖩣 𖩤 𖩥 𖩦 𖩧 𖩨 𖩩)],
229             },
230             'mtei' => {
231             type => 'numeric',
232             data => [qw(꯰ ꯱ ꯲ ꯳ ꯴ ꯵ ꯶ ꯷ ꯸ ꯹)],
233             },
234             'mymr' => {
235             type => 'numeric',
236             data => [qw(၀ ၁ ၂ ၃ ၄ ၅ ၆ ၇ ၈ ၉)],
237             },
238             'mymrshan' => {
239             type => 'numeric',
240             data => [qw(႐ ႑ ႒ ႓ ႔ ႕ ႖ ႗ ႘ ႙)],
241             },
242             'mymrtlng' => {
243             type => 'numeric',
244             data => [qw(꧰ ꧱ ꧲ ꧳ ꧴ ꧵ ꧶ ꧷ ꧸ ꧹)],
245             },
246             'newa' => {
247             type => 'numeric',
248             data => [qw(𑑐 𑑑 𑑒 𑑓 𑑔 𑑕 𑑖 𑑗 𑑘 𑑙)],
249             },
250             'nkoo' => {
251             type => 'numeric',
252             data => [qw(߀ ߁ ߂ ߃ ߄ ߅ ߆ ߇ ߈ ߉)],
253             },
254             'olck' => {
255             type => 'numeric',
256             data => [qw(᱐ ᱑ ᱒ ᱓ ᱔ ᱕ ᱖ ᱗ ᱘ ᱙)],
257             },
258             'orya' => {
259             type => 'numeric',
260             data => [qw(୦ ୧ ୨ ୩ ୪ ୫ ୬ ୭ ୮ ୯)],
261             },
262             'osma' => {
263             type => 'numeric',
264             data => [qw(𐒠 𐒡 𐒢 𐒣 𐒤 𐒥 𐒦 𐒧 𐒨 𐒩)],
265             },
266             'rohg' => {
267             type => 'numeric',
268             data => [qw(𐴰 𐴱 𐴲 𐴳 𐴴 𐴵 𐴶 𐴷 𐴸 𐴹)],
269             },
270             'roman' => {
271             type => 'algorithmic',
272             data => 'roman-upper',
273             },
274             'romanlow' => {
275             type => 'algorithmic',
276             data => 'roman-lower',
277             },
278             'saur' => {
279             type => 'numeric',
280             data => [qw(꣐ ꣑ ꣒ ꣓ ꣔ ꣕ ꣖ ꣗ ꣘ ꣙)],
281             },
282             'shrd' => {
283             type => 'numeric',
284             data => [qw(𑇐 𑇑 𑇒 𑇓 𑇔 𑇕 𑇖 𑇗 𑇘 𑇙)],
285             },
286             'sind' => {
287             type => 'numeric',
288             data => [qw(𑋰 𑋱 𑋲 𑋳 𑋴 𑋵 𑋶 𑋷 𑋸 𑋹)],
289             },
290             'sinh' => {
291             type => 'numeric',
292             data => [qw(෦ ෧ ෨ ෩ ෪ ෫ ෬ ෭ ෮ ෯)],
293             },
294             'sora' => {
295             type => 'numeric',
296             data => [qw(𑃰 𑃱 𑃲 𑃳 𑃴 𑃵 𑃶 𑃷 𑃸 𑃹)],
297             },
298             'sund' => {
299             type => 'numeric',
300             data => [qw(᮰ ᮱ ᮲ ᮳ ᮴ ᮵ ᮶ ᮷ ᮸ ᮹)],
301             },
302             'takr' => {
303             type => 'numeric',
304             data => [qw(𑛀 𑛁 𑛂 𑛃 𑛄 𑛅 𑛆 𑛇 𑛈 𑛉)],
305             },
306             'talu' => {
307             type => 'numeric',
308             data => [qw(᧐ ᧑ ᧒ ᧓ ᧔ ᧕ ᧖ ᧗ ᧘ ᧙)],
309             },
310             'taml' => {
311             type => 'algorithmic',
312             data => 'tamil',
313             },
314             'tamldec' => {
315             type => 'numeric',
316             data => [qw(௦ ௧ ௨ ௩ ௪ ௫ ௬ ௭ ௮ ௯)],
317             },
318             'telu' => {
319             type => 'numeric',
320             data => [qw(౦ ౧ ౨ ౩ ౪ ౫ ౬ ౭ ౮ ౯)],
321             },
322             'thai' => {
323             type => 'numeric',
324             data => [qw(๐ ๑ ๒ ๓ ๔ ๕ ๖ ๗ ๘ ๙)],
325             },
326             'tibt' => {
327             type => 'numeric',
328             data => [qw(༠ ༡ ༢ ༣ ༤ ༥ ༦ ༧ ༨ ༩)],
329             },
330             'tirh' => {
331             type => 'numeric',
332             data => [qw(𑓐 𑓑 𑓒 𑓓 𑓔 𑓕 𑓖 𑓗 𑓘 𑓙)],
333             },
334             'vaii' => {
335             type => 'numeric',
336             data => [qw(꘠ ꘡ ꘢ ꘣ ꘤ ꘥ ꘦ ꘧ ꘨ ꘩)],
337             },
338             'wara' => {
339             type => 'numeric',
340             data => [qw(𑣠 𑣡 𑣢 𑣣 𑣤 𑣥 𑣦 𑣧 𑣨 𑣩)],
341             },
342             }},
343             );
344              
345             has '_default_numbering_system' => (
346             is => 'ro',
347             isa => Str,
348             init_arg => undef,
349             default => '',
350             clearer => '_clear_default_nu',
351             writer => '_set_default_numbering_system',
352             );
353              
354             my ($self, $system) = @_;
355             my $default = $self->_default_numbering_system // '';
356 10     10   31 $self->_set_default_numbering_system("$default$system");
357 10   50     59 }
358 10         172  
359             my $self = shift;
360             return length $self->_default_numbering_system ? 1 : 0;
361             }
362 2354     2354   2848  
363 2354 100       6130 my $self = shift;
364            
365             if($self->_test_default_nu) {
366             return $self->_default_numbering_system;
367 2354     2354 0 2811 }
368             else {
369 2354 100       3487 my $numbering_system = $self->_find_bundle('default_numbering_system')->default_numbering_system;
370 2344         5349 $self->_set_default_nu($numbering_system);
371             return $numbering_system
372             }
373 10         51 }
374 10         130  
375 10         322 no Moo::Role;
376              
377             1;
378              
379 21     21   24341 # vim: tabstop=4
  21         41  
  21         81