line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Catmandu::Sane; |
3
|
2
|
|
|
2
|
|
173772
|
|
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
13
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.2018'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Moo; |
7
|
2
|
|
|
2
|
|
16
|
use Catmandu::Util::Path qw(as_path); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
8
|
|
8
|
2
|
|
|
2
|
|
1339
|
use URI::Escape qw(uri_escape_utf8); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
91
|
|
9
|
2
|
|
|
2
|
|
716
|
use namespace::clean; |
|
2
|
|
|
|
|
2434
|
|
|
2
|
|
|
|
|
92
|
|
10
|
2
|
|
|
2
|
|
14
|
use Catmandu::Fix::Has; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
10
|
|
11
|
2
|
|
|
2
|
|
1298
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
10
|
|
12
|
|
|
|
|
|
|
with 'Catmandu::Fix::Builder'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has path => (fix_arg => 1); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my ($self) = @_; |
17
|
|
|
|
|
|
|
as_path($self->path)->updater(if_string => sub {uri_escape_utf8($_[0])}); |
18
|
3
|
|
|
3
|
|
27
|
} |
19
|
3
|
|
|
4
|
|
18
|
|
|
4
|
|
|
|
|
18
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=encoding utf8 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Catmandu::Fix::uri_encode - percent encode a URI |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SYNOPSIS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# 'café' => '3%A9' |
34
|
|
|
|
|
|
|
uri_encode(place) |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# 'ὁ τῶν Πέρσων βασιλεύς' => '%E1%BD%81+%CF%84%E1%BF%B6%CE%BD+%CE%A0%CE%AD%CF%81%CF%83%CF%89%CE%BD+%CE%B2%CE%B1%CF%83%CE%B9%CE%BB%CE%B5%CF%8D%CF%82' |
37
|
|
|
|
|
|
|
uri_encode(title) |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 SEE ALSO |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
L<Catmandu::Fix>, L<Catmandu::Fix::uri_decode>, L<URI::Escape> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |
44
|
|
|
|
|
|
|
|