line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Regexp::Profanity::US; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
34471
|
$Regexp::Profanity::US::VERSION = '4.112150'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
11
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
8
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
9
|
1
|
|
|
1
|
|
9
|
use Carp qw(croak confess); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
80
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
1063
|
use Regexp::Common qw/profanity_us/; |
|
1
|
|
|
|
|
6314
|
|
|
1
|
|
|
|
|
6
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
require Exporter; |
14
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
15
|
|
|
|
|
|
|
our @EXPORT = qw(profane profane_list); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my $RE = $RE{profanity}{us}{normal}{label}{-keep}; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub profane { |
21
|
1
|
50
|
|
1
|
1
|
909
|
my $word = shift or confess 'must supply word to match'; |
22
|
1
|
50
|
|
|
|
4
|
( $word =~ /$RE/i )[0] || '0'; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub profane_list { |
26
|
1
|
50
|
|
1
|
1
|
433
|
my $word = shift or confess 'must supply word to match'; |
27
|
1
|
|
|
|
|
47
|
( $word =~ /$RE/ig ) |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |