line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MKDoc::Text::Structured::BQ; |
2
|
20
|
|
|
20
|
|
115
|
use base qw /MKDoc::Text::Structured::Base/; |
|
20
|
|
|
|
|
38
|
|
|
20
|
|
|
|
|
1606
|
|
3
|
20
|
|
|
20
|
|
110
|
use warnings; |
|
20
|
|
|
|
|
40
|
|
|
20
|
|
|
|
|
499
|
|
4
|
20
|
|
|
20
|
|
98
|
use strict; |
|
20
|
|
|
|
|
35
|
|
|
20
|
|
|
|
|
6431
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new |
7
|
|
|
|
|
|
|
{ |
8
|
261
|
|
|
261
|
0
|
346
|
my $class = shift; |
9
|
261
|
|
|
|
|
381
|
my $line = shift; |
10
|
|
|
|
|
|
|
|
11
|
261
|
|
|
|
|
533
|
my ($marker, $space) = $line =~ /^(\>)(\s*)/; |
12
|
261
|
100
|
|
|
|
2617
|
return unless ($marker); |
13
|
|
|
|
|
|
|
|
14
|
3
|
|
|
|
|
28
|
my $self = $class->SUPER::new(); |
15
|
3
|
|
50
|
|
|
28
|
$self->{space} = $space || ''; |
16
|
3
|
|
|
|
|
26
|
return $self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub is_ok |
21
|
|
|
|
|
|
|
{ |
22
|
13
|
|
|
13
|
0
|
15
|
my $self = shift; |
23
|
13
|
|
|
|
|
17
|
my $line = shift; |
24
|
13
|
100
|
|
|
|
54
|
$line =~ /^\s*$/ and return 1; |
25
|
9
|
|
|
|
|
37
|
return $line =~ /^\>/; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub process |
30
|
|
|
|
|
|
|
{ |
31
|
3
|
|
|
3
|
0
|
6
|
my $self = shift; |
32
|
3
|
|
|
|
|
5
|
my @lines = @{$self->{lines}}; |
|
3
|
|
|
|
|
11
|
|
33
|
3
|
|
|
|
|
6
|
my $space = $self->{space}; |
34
|
10
|
|
|
|
|
26
|
my $text = join "\n", map { |
35
|
3
|
|
|
|
|
7
|
s/^\>//; |
36
|
10
|
|
|
|
|
49
|
s/^$space//; |
37
|
10
|
|
|
|
|
24
|
$_; |
38
|
|
|
|
|
|
|
} @lines; |
39
|
|
|
|
|
|
|
|
40
|
3
|
|
|
|
|
37
|
$text = MKDoc::Text::Structured::process ($text); |
41
|
3
|
|
|
|
|
19
|
return "$text "; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |