Badger::Codec::URI

NAME

Top Close Open

Badger::Codec::URI - URI encode/decode

SYNOPSIS

Top Close Open
use Badger::Codec::URI;
my $codec   = Badger::Codec::URI->new();
my $encoded = $codec->encode("Hello World!");
my $decoded = $codec->decode($encoded);

DESCRIPTION

Top Close Open

This module implements a subclass of Badger::Codec for URI encoding and decoding.

FUNCTIONS

Top Close Open

encode_uri($data)

Top Close Open

This function URI-encodes the $data passed as an argument.

decode_uri($data)

Top Close Open

This function URI-decodes the $data passed as an argument.

METHODS

Top Close Open

encode($data)

Top Close Open

This method URI-encodes the data referenced by the first argument. It delegates to the encode_uri() function.

$encoded = Badger::Codec::URI->encode($data);

decode($data)

Top Close Open

This method decodes the encoded data passed as the first argument. It delegates to the decode_uri() function.

$decoded = Badger::Codec::URI->decode($encoded);

encoder()

Top Close Open

This method returns a reference to the encode_uri() function.

decoder()

Top Close Open

This method returns a reference to the decode_uri() function.

AUTHOR

Top Close Open

Andy Wardley http://wardley.org/

COPYRIGHT

Top Close Open

Copyright (C) 2008-2009 Andy Wardley. All rights reserved.

Fork Me on Github