Upgrade to Test::Simple 0.64_03
[p5sagit/p5-mst-13.2.git] / lib / Pod / Simple / TranscodeSmart.pm
CommitLineData
351625bd 1
2require 5;
3use 5.008;
4## Anything before 5.8.0 is GIMPY!
5## This module is to be use()'d only by Pod::Simple::Transcode
6
7package Pod::Simple::TranscodeSmart;
8use strict;
9use Pod::Simple;
10require Encode;
11
12sub is_dumb {0}
13sub is_smart {1}
14
15sub all_encodings {
16 return Encode::->encodings(':all');
17}
18
19sub encoding_is_available {
20 return Encode::resolve_alias($_[1]);
21}
22
23sub encmodver {
24 return "Encode.pm v" .($Encode::VERSION || '?');
25}
26
27sub make_transcoder {
28 my($e) = $_[1];
29 die "WHAT ENCODING!?!?" unless $e;
30 my $x;
31 return sub {
32 foreach $x (@_) {
33 $x = Encode::decode($e, $x);
34 }
35 return;
36 };
37}
38
39
401;
41
42