line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Catmandu::Sane; |
3
|
2
|
|
|
2
|
|
172350
|
|
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.2019'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Moo; |
7
|
2
|
|
|
2
|
|
14
|
use Catmandu::Util::Path qw(as_path); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
7
|
|
8
|
2
|
|
|
2
|
|
1295
|
use URI::Escape qw(uri_escape_utf8); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
91
|
|
9
|
2
|
|
|
2
|
|
703
|
use namespace::clean; |
|
2
|
|
|
|
|
2474
|
|
|
2
|
|
|
|
|
93
|
|
10
|
2
|
|
|
2
|
|
13
|
use Catmandu::Fix::Has; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
10
|
|
11
|
2
|
|
|
2
|
|
1309
|
|
|
2
|
|
|
|
|
5
|
|
|
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
|
|
24
|
} |
19
|
3
|
|
|
4
|
|
15
|
|
|
4
|
|
|
|
|
17
|
|
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
|
|
|
|
|
|
|
|