line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Mining::Parser::Text; |
2
|
1
|
|
|
1
|
|
1322
|
use base qw(Text::Mining::Parser::Base); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
548
|
|
3
|
|
|
|
|
|
|
use Class::Std; |
4
|
|
|
|
|
|
|
use Class::Std::Utils; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use warnings; |
7
|
|
|
|
|
|
|
use strict; |
8
|
|
|
|
|
|
|
use Carp; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use version; our $VERSION = qv('0.0.8'); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
{ |
13
|
|
|
|
|
|
|
sub version { return "Text::Mining::Parser::Text Version $VERSION"; } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _get_all_text() { |
16
|
|
|
|
|
|
|
my ($self, $arg_ref) = @_; |
17
|
|
|
|
|
|
|
my $document = $self->get_document(); |
18
|
|
|
|
|
|
|
my $text = $self->_get_file_text( $document->get_file_name() ); |
19
|
|
|
|
|
|
|
return $text; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub _get_next_line() { |
23
|
|
|
|
|
|
|
my ($self, $arg_ref) = @_; |
24
|
|
|
|
|
|
|
return; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
31
|
|
|
|
|
|
|
__END__ |