line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Getopt::Long::Negate::ID; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $DATE = '2016-08-07'; # DATE |
4
|
|
|
|
|
|
|
our $VERSION = '0.001'; # VERSION |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
465
|
use 5.010001; |
|
1
|
|
|
|
|
3
|
|
7
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
8
|
1
|
|
|
1
|
|
2
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
19
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
3
|
use Exporter qw(import); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
394
|
|
11
|
|
|
|
|
|
|
our @EXPORT_OK = qw(negations_for_option); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub negations_for_option { |
14
|
17
|
|
|
17
|
1
|
27
|
my $word = shift; |
15
|
|
|
|
|
|
|
|
16
|
17
|
100
|
|
|
|
132
|
if ($word =~ /\Atak[_-](.+)/ ) { return ("$1") } |
|
1
|
100
|
|
|
|
10
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
17
|
1
|
|
|
|
|
6
|
elsif ($word =~ /\Atidak[_-](.+)/) { return ("$1") } |
18
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Abukan[_-](.+)/) { return ("$1") } |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
6
|
elsif ($word =~ /\Adengan([_-].+)/) { return ("tanpa$1") } |
21
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Atanpa([_-].+)/) { return ("dengan$1") } |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
|
|
6
|
elsif ($word =~ /\Aadalah([_-].+)/) { return ("bukan$1") } |
24
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Aialah([_-].+)/) { return ("bukan$1") } |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Amatikan([_-].+)/) { return ("hidupkan$1") } |
27
|
1
|
|
|
|
|
6
|
elsif ($word =~ /\Apadamkan([_-].+)/) { return ("nyalakan$1") } |
28
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Ahidupkan([_-].+)/) { return ("matikan$1") } |
29
|
1
|
|
|
|
|
4
|
elsif ($word =~ /\Anyalakan([_-].+)/) { return ("padamkan$1") } |
30
|
|
|
|
|
|
|
|
31
|
1
|
|
|
|
|
6
|
elsif ($word =~ /\Aizinkan([_-].+)/) { return ("larang$1") } |
32
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Aijinkan([_-].+)/) { return ("larang$1") } |
33
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Abolehkan([_-].+)/) { return ("larang$1") } |
34
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Aperbolehkan([_-].+)/) { return ("larang$1") } |
35
|
1
|
|
|
|
|
5
|
elsif ($word =~ /\Alarang([_-].+)/) { return ("izinkan$1") } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
else { |
38
|
|
|
|
|
|
|
# default |
39
|
1
|
|
|
|
|
4
|
return ("tak-$word"); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
# ABSTRACT: Better negation of boolean option names (Indonesian) |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |