){3}
24
|
|
|
|
|
|
|
\s* |
\s*(?>(.*?) | )
25
|
|
|
|
|
|
|
\s* |
\s*(?>(.*?) | )|oixs;
26
|
0
|
|
|
|
|
|
push @tables, $1, $2; |
27
|
0
|
|
|
|
|
|
$this->cache->{tables} = \@tables; |
28
|
0
|
|
|
|
|
|
$this->cache->{indecies}->{title} = 0; |
29
|
0
|
|
|
|
|
|
$this->cache->{indecies}->{info} = 1; |
30
|
0
|
|
|
|
|
|
$this->cache->{indecies}->{count} = 2; |
31
|
0
|
|
|
|
|
|
$this->cache->{indecies}->{body} = 3; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub parse_count { |
35
|
0
|
|
|
0
|
0
|
|
my $this = shift; |
36
|
0
|
|
|
|
|
|
my $part = $this->parse_table_item('count'); |
37
|
0
|
0
|
|
|
|
|
return () unless defined $part; |
38
|
0
|
0
|
|
|
|
|
return () unless $part =~ m|(\d+)|io; |
39
|
0
|
|
|
|
|
|
return $1; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub _parse_body { |
43
|
0
|
|
|
0
|
|
|
my $this = shift; |
44
|
0
|
|
|
|
|
|
my $part = $this->parse_table_item('body'); |
45
|
0
|
0
|
|
|
|
|
return () unless defined $part; |
46
|
0
|
|
|
|
|
|
my $maybe_attrs_regex = $this->regex_parts->{html_maybe_attrs}; |
47
|
0
|
|
|
|
|
|
my $regex = qr|^(.*)\s+(.*?) |oisx; |
48
|
0
|
|
|
|
|
|
my ($date, $anchor, $name); |
49
|
|
|
|
|
|
|
return [map { |
50
|
0
|
0
|
|
|
|
|
if (($date, $anchor, $name) = /$regex/) { |
|
0
|
|
|
|
|
|
|
51
|
0
|
|
|
|
|
|
$anchor = $this->html_anchor_to_uri($anchor); |
52
|
0
|
|
|
|
|
|
my $data = { |
53
|
|
|
|
|
|
|
date => $this->convert_time($date), |
54
|
|
|
|
|
|
|
time => $this->convert_time($date), |
55
|
|
|
|
|
|
|
name => $this->rewrite($name), |
56
|
|
|
|
|
|
|
link => $anchor, |
57
|
|
|
|
|
|
|
$this->analyze_uri($anchor), |
58
|
|
|
|
|
|
|
}; |
59
|
0
|
|
|
|
|
|
$data; |
60
|
|
|
|
|
|
|
} else { |
61
|
0
|
|
|
|
|
|
(); |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
} $part =~ m|\s*(.*? )|oisg]; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |