| 1 | 15 | ▶ | use 5.008; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 2 | ## Anything before 5.8.0 is GIMPY! | ||||||||||||
| 3 | ## This module is to be use()'d only by Pod::Simple::Transcode | ||||||||||||
| 4 | |||||||||||||
| 5 | package Pod::Simple::TranscodeSmart; | ||||||||||||
| 6 | 15 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 15 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 15 | ▶ | use Pod::Simple; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 15 | ▶ | use Encode; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 15 | our $VERSION = '3.48'; | |||||||||||
| 11 | |||||||||||||
| 12 | 0 | ▶ | sub is_dumb {0} | ||||||||||
|
Subroutine
is_dumb: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 13 | 0 | ▶ | sub is_smart {1} | ||||||||||
|
Subroutine
is_smart: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 14 | |||||||||||||
| 15 | 2 | ▶ | sub all_encodings { | ||||||||||
|
Subroutine
all_encodings: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 16 | 2 | return Encode::->encodings(':all'); | |||||||||||
| 17 | } | ||||||||||||
| 18 | |||||||||||||
| 19 | 62 | ▶ | sub encoding_is_available { | ||||||||||
|
Subroutine
encoding_is_available: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 20 | 62 | return Encode::resolve_alias($_[1]); | |||||||||||
| 21 | } | ||||||||||||
| 22 | |||||||||||||
| 23 | 2 | ▶ | sub encmodver { | ||||||||||
|
Subroutine
encmodver: called CC=2 SCAR=7.6
Pod
undocumented
| |||||||||||||
| 24 | 2 | ▶ | return "Encode.pm v" .($Encode::VERSION || '?'); | ||||||||||
|
Condition50%1/2
$Encode::VERSION || '?'
MC/DC0%0/1
$Encode::VERSION || '?'
$Encode::VERSION
Truth table50%1/2
A
A= $Encode::VERSION
| |||||||||||||
| 25 | } | ||||||||||||
| 26 | |||||||||||||
| 27 | 60 | ▶ | sub make_transcoder { | ||||||||||
|
Subroutine
make_transcoder: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 28 | 60 | my $e = Encode::find_encoding($_[1]); | |||||||||||
| 29 | 60 | ▶ | die "WHAT ENCODING!?!?" unless $e; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 30 | 60 | my $x; | |||||||||||
| 31 | 1902 | ▶ | return sub { | ||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.0
| |||||||||||||
| 32 | 1902 | foreach $x (@_) { | |||||||||||
| 33 | 2022 | ▶ | $x = $e->decode($x) unless Encode::is_utf8($x); | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 34 | } | ||||||||||||
| 35 | 1902 | return; | |||||||||||
| 36 | 60 | }; | |||||||||||
| 37 | } | ||||||||||||
| 38 | |||||||||||||
| 39 | |||||||||||||
| 40 | 15 | 1; | |||||||||||
| 41 | |||||||||||||
| 42 | |||||||||||||