| 1 | package Pod::Simple::TextContent; | ||||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 2 | ▶ | use Carp (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 2 | ▶ | use Pod::Simple (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 2 | our $VERSION = '3.48'; | |||||||||||
| 7 | 2 | our @ISA = ('Pod::Simple'); | |||||||||||
| 8 | |||||||||||||
| 9 | 5 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||
| 10 | 5 | my $self = shift; | |||||||||||
| 11 | 5 | my $new = $self->SUPER::new(@_); | |||||||||||
| 12 | 5 | ▶ | $new->{'output_fh'} ||= *STDOUT{IO}; | ||||||||||
|
Condition50%1/2
$new->{"output_fh"} ||= *STDOUT{"IO"}
MC/DC0%0/1
$new->{"output_fh"} ||= *STDOUT{"IO"}
$new->{"output_fh"}
Truth table50%1/2
A
A= $new->{"output_fh"}
| |||||||||||||
| 13 | 5 | $new->nix_X_codes(1); | |||||||||||
| 14 | 5 | return $new; | |||||||||||
| 15 | } | ||||||||||||
| 16 | |||||||||||||
| 17 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||||||||||
| 18 | |||||||||||||
| 19 | 1316 | ▶ | sub _handle_element_start { | ||||||||||
|
Subroutine
_handle_element_start: called CC=2 SCAR=6.9
| |||||||||||||
| 20 | 1316 | ▶ | print {$_[0]{'output_fh'}} "\n" unless $_[1] =~ m/^[A-Z]$/s; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 21 | 1316 | return; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 1774 | ▶ | sub _handle_text { | ||||||||||
|
Subroutine
_handle_text: called CC=1 SCAR=0.0
| |||||||||||||
| 25 | 1774 | $_[1] =~ s/$Pod::Simple::shy//g; | |||||||||||
| 26 | 1774 | $_[1] =~ s/$Pod::Simple::nbsp/ /g; | |||||||||||
| 27 | 1774 | print {$_[0]{'output_fh'}} $_[1]; | |||||||||||
| 28 | 1774 | return; | |||||||||||
| 29 | } | ||||||||||||
| 30 | |||||||||||||
| 31 | 1316 | ▶ | sub _handle_element_end { | ||||||||||
|
Subroutine
_handle_element_end: called CC=2 SCAR=6.9
| |||||||||||||
| 32 | 1316 | ▶ | print {$_[0]{'output_fh'}} "\n" unless $_[1] =~ m/^[A-Z]$/s; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 33 | 1316 | return; | |||||||||||
| 34 | } | ||||||||||||
| 35 | |||||||||||||
| 36 | #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||||||||||||
| 37 | 2 | 1; | |||||||||||
| 38 | |||||||||||||
| 39 | |||||||||||||
| 40 | __END__ | ||||||||||||