Findgrep/I18N.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Findgrep/I18N/i_default.pm ↑ Summary Findgrep/I18N/en.pm »
1  
2 package File::Findgrep::I18N;
3 # This is the project base class for "findgrep", an example application
4 # using Locale::Maketext;
5  
6 2 ▶use Locale::Maketext 1.01;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use base ('Locale::Maketext');
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # I decree that this project's first language is English.
10  
11 2 %Lexicon = (
12 '_AUTO' => 1,
13 # That means that lookup failures can't happen -- if we get as far
14 # as looking for something in this lexicon, and we don't find it,
15 # then automagically set $Lexicon{$key} = $key, before possibly
16 # compiling it.
17
18 # The exception is keys that start with "_" -- they aren't auto-makeable.
19  
20  
21  
22 '_USAGE_MESSAGE' =>
23 # an example of a phrase whose key isn't meant to ever double
24 # as a lexicon value
25 \q{
26 Usage:
27 findgrep [switches] line-pattern [filename-pattern [dirnames...]]
28 Switches:
29 -R recurse
30 -m123 minimum filesize in bytes (default: 0)
31 -m123K minimum filesize in kilobytes
32 -m123M minimum filesize in megabytes
33 -m123G minimum filesize in gigabytes
34 -M123 maximum filesize in bytes (default: 10 million)
35 -M123K maximum filesize in kilobytes
36 -M123M maximum filesize in megabytes
37 -M123G maximum filesize in gigabytes
38 -h exit, displaying this message
39 -- signal end of switches
40
41 Line-pattern should be a regexp that matches lines.
42 Filename-pattern should be a regexp that matches basenames.
43 If not specified, uses all filenames not starting with a dot.
44 Dirnames should be list of directories to search in.
45 If not specified, uses current directory.
46 Example:
47 findgrep -R '\bgr[ea]y\b' '\.txt$' ~/stuff
48 },
49  
50  
51 # Any further entries...
52  
53 );
54 # End of lexicon.
55  
56  
57  
58 2 1; # End of module.
59  
« Findgrep/I18N/i_default.pm ↑ Summary Findgrep/I18N/en.pm »