SchemaR/language/code/alpha2.pm

filter: Statementstmt 100% 4 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 4 / 4 SCAR 0
CC
0
Cov
0%
CRAP 0
« SchemaR/language/code.pm ↑ Summary SchemaR/language/code/alpha3.pm »
1 package Sah::SchemaR::language::code::alpha2;
2  
3 1 our $DATE = '2020-05-27'; # DATE
4 1 our $VERSION = '0.004'; # VERSION
5  
6 1 our $rschema = ["str",[{description=>"\nAccept only current (not retired) codes. Only alpha-2 codes are accepted.\n\n",examples=>[{valid=>0,value=>""},{summary=>"Indonesian (2 letter)",valid=>1,validated_value=>"id",value=>"ID"},{summary=>"Indonesian (3 letter, rejected)",valid=>0,value=>"IND"},{summary=>"Unknown language code",valid=>0,value=>"qq"}],in=>["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"],match=>"\\A[a-z]{2}\\z",summary=>"Language code (alpha-2)","x.perl.coerce_rules"=>["From_str::to_lower"]}],["str"]];
7  
8 1 1;
9 # ABSTRACT: Language code (alpha-2)
10  
11 __END__
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 Sah::SchemaR::language::code::alpha2 - Language code (alpha-2)
20  
21 =head1 VERSION
22  
23 This document describes version 0.004 of Sah::SchemaR::language::code::alpha2 (from Perl distribution Sah-Schemas-Language), released on 2020-05-27.
24  
25 =head1 DESCRIPTION
26  
27 This module is automatically generated by Dist::Zilla::Plugin::Sah::Schemas during distribution build.
28  
29 A Sah::SchemaR::* module is useful if a client wants to quickly lookup the base type of a schema without having to do any extra resolving. With Sah::Schema::*, one might need to do several lookups if a schema is based on another schema, and so on. Compare for example L<Sah::Schema::poseven> vs L<Sah::SchemaR::poseven>, where in Sah::SchemaR::poseven one can immediately get that the base type is C<int>. Currently L<Perinci::Sub::Complete> uses Sah::SchemaR::* instead of Sah::Schema::* for reduced startup overhead when doing tab completion.
30  
31 =head1 HOMEPAGE
32  
33 Please visit the project's homepage at L<https://metacpan.org/release/Sah-Schemas-Language>.
34  
35 =head1 SOURCE
36  
37 Source repository is at L<https://github.com/perlancar/perl-Sah-Schemas-Language>.
38  
39 =head1 BUGS
40  
41 Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Sah-Schemas-Language>
42  
43 When submitting a bug or request, please include a test-file or a
44 patch to an existing test-file that illustrates the bug or desired
45 feature.
46  
47 =head1 AUTHOR
48  
49 perlancar <perlancar@cpan.org>
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2020, 2019, 2018 by perlancar@cpan.org.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut
« SchemaR/language/code.pm ↑ Summary SchemaR/language/code/alpha3.pm »