line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# You may distribute under the terms of the GNU General Public License |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# (C) Paul Evans, 2008-2010 -- leonerd@leonerd.org.uk |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Circle::TaggedString; |
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
22
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
154
|
|
8
|
4
|
|
|
4
|
|
21
|
use warnings; |
|
4
|
|
|
|
|
33
|
|
|
4
|
|
|
|
|
134
|
|
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
|
20
|
use base qw( String::Tagged ); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
4187
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub squash |
13
|
|
|
|
|
|
|
{ |
14
|
3
|
|
|
3
|
0
|
7
|
my $self = shift; |
15
|
|
|
|
|
|
|
|
16
|
3
|
|
|
|
|
6
|
my @output; |
17
|
|
|
|
|
|
|
$self->iter_substr_nooverlap( sub { |
18
|
3
|
|
|
3
|
|
349
|
my ( $str, %format ) = @_; |
19
|
3
|
50
|
|
|
|
26
|
push @output, %format ? [ $str, %format ] : $str; |
20
|
3
|
|
|
|
|
74
|
} ); |
21
|
|
|
|
|
|
|
|
22
|
3
|
50
|
33
|
|
|
84
|
return $output[0] if @output == 1 and !ref $output[0]; |
23
|
0
|
|
|
|
|
|
return \@output; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
0x55AA; |