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
|
|
16
|
use strict; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
111
|
|
8
|
4
|
|
|
4
|
|
13
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
126
|
|
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
|
16
|
use base qw( String::Tagged ); |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
2218
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub squash |
13
|
|
|
|
|
|
|
{ |
14
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
my @output; |
17
|
|
|
|
|
|
|
$self->iter_substr_nooverlap( sub { |
18
|
0
|
|
|
0
|
|
|
my ( $str, %format ) = @_; |
19
|
0
|
0
|
|
|
|
|
push @output, %format ? [ $str, %format ] : $str; |
20
|
0
|
|
|
|
|
|
} ); |
21
|
|
|
|
|
|
|
|
22
|
0
|
0
|
0
|
|
|
|
return $output[0] if @output == 1 and !ref $output[0]; |
23
|
0
|
|
|
|
|
|
return \@output; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
0x55AA; |