line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use 5.010; |
3
|
1
|
|
|
1
|
|
16
|
use strict; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
5
|
1
|
|
|
1
|
|
4
|
#use Log::Any '$log'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Mo qw(build default); |
8
|
1
|
|
|
1
|
|
4
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
9
|
1
|
|
|
1
|
|
253
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
154
|
|
10
|
|
|
|
|
|
|
extends 'Data::Sah::Compiler::human::TH::str'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
13
|
|
|
|
|
|
|
our $DATE = '2022-08-20'; # DATE |
14
|
|
|
|
|
|
|
our $DIST = 'Data-Sah'; # DIST |
15
|
|
|
|
|
|
|
our $VERSION = '0.912'; # VERSION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
520
|
|
|
520
|
0
|
2242
|
my ($self, $cd) = @_; |
19
|
|
|
|
|
|
|
my $c = $self->compiler; |
20
|
|
|
|
|
|
|
|
21
|
521
|
|
|
521
|
0
|
1123
|
$c->add_ccl($cd, { |
22
|
521
|
|
|
|
|
1946
|
fmt => ["buffer", "buffers"], |
23
|
|
|
|
|
|
|
type => 'noun', |
24
|
521
|
|
|
|
|
4278
|
}); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
# ABSTRACT: perl's type handler for type "buf" |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=pod |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=encoding UTF-8 |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Data::Sah::Compiler::human::TH::buf - perl's type handler for type "buf" |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This document describes version 0.912 of Data::Sah::Compiler::human::TH::buf (from Perl distribution Data-Sah), released on 2022-08-20. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=for Pod::Coverage ^(name|clause_.+|superclause_.+|before_.+|after_.+)$ |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 HOMEPAGE |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Please visit the project's homepage at L<https://metacpan.org/release/Data-Sah>. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 SOURCE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Source repository is at L<https://github.com/perlancar/perl-Data-Sah>. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 AUTHOR |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
perlancar <perlancar@cpan.org> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 CONTRIBUTING |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
To contribute, you can send patches by email/via RT, or send pull requests on |
61
|
|
|
|
|
|
|
GitHub. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Most of the time, you don't need to build the distribution yourself. You can |
64
|
|
|
|
|
|
|
simply modify the code, then test via: |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
% prove -l |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
If you want to build the distribution (e.g. to try to install it locally on your |
69
|
|
|
|
|
|
|
system), you can install L<Dist::Zilla>, |
70
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, |
71
|
|
|
|
|
|
|
L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other |
72
|
|
|
|
|
|
|
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond |
73
|
|
|
|
|
|
|
that are considered a bug and can be reported to me. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This software is copyright (c) 2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012 by perlancar <perlancar@cpan.org>. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
80
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 BUGS |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah> |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
87
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
88
|
|
|
|
|
|
|
feature. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |