Any-URI-Escape-0.01/000755 000765 000765 00000000000 11374553564 014311 5ustar00phredphred000000 000000 Any-URI-Escape-0.01/Changes000644 000765 000765 00000000240 11374546566 015604 0ustar00phredphred000000 000000 Revision history for Perl extension Any-URI-Escape. 0.01 Tue May 18 10:25:10 2010 - original version; created by h2xs 1.23 with options -X Any-URI-Escape Any-URI-Escape-0.01/lib/000755 000765 000765 00000000000 11374553564 015057 5ustar00phredphred000000 000000 Any-URI-Escape-0.01/Makefile.PL000644 000765 000765 00000000512 11374547764 016266 0ustar00phredphred000000 000000 #!/usr/bin/env perl use strict; use warnings; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Any::URI::Escape', VERSION_FROM => 'lib/Any/URI/Escape.pm', PREREQ_PM => { 'URI::Escape' => 0 }, ABSTRACT_FROM => 'lib/Any/URI/Escape.pm', AUTHOR => 'Fred Moyer ', ); Any-URI-Escape-0.01/MANIFEST000644 000765 000765 00000000234 11374553564 015441 0ustar00phredphred000000 000000 Changes Makefile.PL MANIFEST README t/Any-URI-Escape.t lib/Any/URI/Escape.pm META.yml Module meta-data (added by MakeMaker) Any-URI-Escape-0.01/META.yml000644 000765 000765 00000001101 11374553564 015553 0ustar00phredphred000000 000000 --- #YAML:1.0 name: Any-URI-Escape version: 0.01 abstract: Load URI::Escape::XS preferentially over URI::Escape author: - Fred Moyer license: unknown distribution_type: module configure_requires: ExtUtils::MakeMaker: 0 build_requires: ExtUtils::MakeMaker: 0 requires: URI::Escape: 0 no_index: directory: - t - inc generated_by: ExtUtils::MakeMaker version 6.56 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 Any-URI-Escape-0.01/README000644 000765 000765 00000001557 11374553544 015177 0ustar00phredphred000000 000000 NAME Any::URI::Escape - Load URI::Escape::XS preferentially over URI::Escape SYNOPSIS use Any::URI::Escape; $escaped_url = uri_escape($url); # URI::Escape::XS will be used instead of URI::Escape if it is installed. DESCRIPTION URI::Escape is great, but URI::Escape::XS is faster. This module loads URI::Escape::XS and imports the two most common methods if XS is installed. The insides of this module aren't completely shaken out yet, so patches welcome. SEE ALSO URI::Escape URI::Escape::XS AUTHOR Fred Moyer, COPYRIGHT AND LICENSE Copyright (C) 2010 by Fred Moyer This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.0 or, at your option, any later version of Perl 5 you may have available. Any-URI-Escape-0.01/t/000755 000765 000765 00000000000 11374553564 014554 5ustar00phredphred000000 000000 Any-URI-Escape-0.01/t/Any-URI-Escape.t000644 000765 000765 00000000470 11374553066 017321 0ustar00phredphred000000 000000 #!/usr/bin/env perl use strict; use warnings; use Test::More tests => 4; BEGIN { use_ok('Any::URI::Escape') } can_ok('Any::URI::Escape', qw( uri_escape uri_unescape )); cmp_ok(uri_escape("http://foo.com"), 'eq', 'http%3A%2F%2Ffoo.com'); cmp_ok(uri_unescape("http%3A%2F%2Ffoo.com"), 'eq', 'http://foo.com'); Any-URI-Escape-0.01/lib/Any/000755 000765 000765 00000000000 11374553564 015606 5ustar00phredphred000000 000000 Any-URI-Escape-0.01/lib/Any/URI/000755 000765 000765 00000000000 11374553564 016245 5ustar00phredphred000000 000000 Any-URI-Escape-0.01/lib/Any/URI/Escape.pm000644 000765 000765 00000002652 11374553540 020002 0ustar00phredphred000000 000000 package Any::URI::Escape; use strict; use warnings; our $VERSION = 0.01; =head1 NAME Any::URI::Escape - Load URI::Escape::XS preferentially over URI::Escape =cut use base 'Exporter'; our @EXPORT = qw( uri_escape uri_unescape ); BEGIN { eval 'require URI::Escape::XS'; my $pkg; if ($@) { # xs version not installed, use URI::Escape require URI::Escape; $pkg = 'URI::Escape'; } else { $pkg = 'URI::Escape::XS'; } no strict 'refs'; my $class = __PACKAGE__; *{"$class\::uri_escape"} = *{"$pkg\::uri_escape"}; *{"$class\::uri_unescape"} = *{"$pkg\::uri_unescape"}; } 1; =head1 SYNOPSIS use Any::URI::Escape; $escaped_url = uri_escape($url); # URI::Escape::XS will be used instead of URI::Escape if it is installed. =head1 DESCRIPTION URI::Escape is great, but URI::Escape::XS is faster. This module loads URI::Escape::XS and imports the two most common methods if XS is installed. The insides of this module aren't completely shaken out yet, so patches welcome. =head1 SEE ALSO L L =head1 AUTHOR Fred Moyer, Efred@redhotpenguin.comE =head1 COPYRIGHT AND LICENSE Copyright (C) 2010 by Fred Moyer This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.0 or, at your option, any later version of Perl 5 you may have available. =cut