line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::ToSentences; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
23899
|
use 5.008008; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
49
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
51
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
1
|
|
|
1
|
|
995
|
use AutoLoader qw(AUTOLOAD); |
|
1
|
|
|
|
|
1552
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# Items to export into callers namespace by default. Note: do not export |
13
|
|
|
|
|
|
|
# names by default without a very good reason. Use EXPORT_OK instead. |
14
|
|
|
|
|
|
|
# Do not simply export all your public functions/methods/constants. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# This allows declaration use Text::ToSentences ':all'; |
17
|
|
|
|
|
|
|
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK |
18
|
|
|
|
|
|
|
# will save memory. |
19
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( 'test' => [ qw( |
20
|
|
|
|
|
|
|
convert |
21
|
|
|
|
|
|
|
_isNotSentenceStart |
22
|
|
|
|
|
|
|
_correctSpacesAndFormat |
23
|
|
|
|
|
|
|
_isAcronym |
24
|
|
|
|
|
|
|
_isSentenceEnd |
25
|
|
|
|
|
|
|
_isBlockOpening |
26
|
|
|
|
|
|
|
_removeBlockDelimiters |
27
|
|
|
|
|
|
|
) ] ); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'test'} } ); |
30
|
|
|
|
|
|
|
# our @EXPORT_OK = ( ); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# our @EXPORT = qw( |
33
|
|
|
|
|
|
|
# convert |
34
|
|
|
|
|
|
|
# _isNotSentenceStart |
35
|
|
|
|
|
|
|
# _correctDotsAndSpaces |
36
|
|
|
|
|
|
|
# ); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our $VERSION = '0.91'; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our %blockDelimiters = ("(" => ")", |
41
|
|
|
|
|
|
|
"[" => "]"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# Preloaded methods go here. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
# Autoload methods go after =cut, and are processed by the autosplit program. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
__END__ |