|
Apache/2.2.15 (CentOS) Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64 uid=48(apache) gid=48(apache) groups=48(apache) server ip : 172.67.192.52 | your ip : 10.244.126.0 safemode OFF > / usr / share / perl5 / Pod / Simple / |
| Filename | /usr/share/perl5/Pod/Simple/TranscodeDumb.pm |
| Size | 1.16 kb |
| Permission | rw-r--r-- |
| Owner | apache |
| Create time | 23-Dec-2025 17:41 |
| Last modified | 22-Mar-2017 16:32 |
| Last accessed | 22-Apr-2026 02:19 |
| Actions | edit | rename | delete | download (gzip) |
| View | text | code | image |
require 5;
## This module is to be use()'d only by Pod::Simple::Transcode
package Pod::Simple::TranscodeDumb;
use strict;
use vars qw($VERSION %Supported);
$VERSION = '3.13';
# This module basically pretends it knows how to transcode, except
# only for null-transcodings! We use this when Encode isn't
# available.
%Supported = (
'ascii' => 1,
'ascii-ctrl' => 1,
'iso-8859-1' => 1,
'null' => 1,
'latin1' => 1,
'latin-1' => 1,
%Supported,
);
sub is_dumb {1}
sub is_smart {0}
sub all_encodings {
return sort keys %Supported;
}
sub encoding_is_available {
return exists $Supported{lc $_[1]};
}
sub encmodver {
return __PACKAGE__ . " v" .($VERSION || '?');
}
sub make_transcoder {
my($e) = $_[1];
die "WHAT ENCODING!?!?" unless $e;
my $x;
return sub {;
#foreach $x (@_) {
# if(Pod::Simple::ASCII and !Pod::Simple::UNICODE and $] > 5.005) {
# # We're in horrible gimp territory, so we need to knock out
# # all the highbit things
# $x =
# pack 'C*',
# map {; ($_ < 128) ? $_ : 0x7e }
# unpack "C*",
# $x
# ;
# }
#}
#
#return;
};
}
1;