File Coverage

blib/lib/Geo/Direction/Name/Locale/en.pm
Criterion Covered Total %
statement 17 17 100.0
branch 1 2 50.0
condition n/a
subroutine 7 7 100.0
pod 2 2 100.0
total 27 28 96.4


line stmt bran cond sub pod time code
1             package Geo::Direction::Name::Locale::en;
2              
3 3     3   19 use warnings;
  3         7  
  3         102  
4 3     3   16 use strict;
  3         5  
  3         108  
5 3     3   16 use Carp;
  3         15  
  3         236  
6              
7 3     3   17 use base qw/Geo::Direction::Name::Locale/;
  3         6  
  3         26  
8              
9             BEGIN
10             {
11 3 50   3   27 if ( $] >= 5.006 )
12             {
13 3         25 require utf8; import utf8;
  3         19  
14             }
15             }
16              
17             sub dir_string {
18             [
19 165     165 1 1200 'North',
20             'North by east',
21             'North-northeast',
22             'Northeast by north',
23             'Northeast',
24             'Northeast by east',
25             'East-northeast',
26             'East by north',
27             'East',
28             'East by south',
29             'East-southeast',
30             'Southeast by east',
31             'Southeast',
32             'Southeast by south',
33             'South-southeast',
34             'South by east',
35             'South',
36             'South by west',
37             'South-southwest',
38             'Southwest by south',
39             'Southwest',
40             'Southwest by west',
41             'West-southwest',
42             'West by south',
43             'West',
44             'West by north',
45             'West-northwest',
46             'Northwest by west',
47             'Northwest',
48             'Northwest by north',
49             'North-northwest',
50             'North by west',
51             ]
52             }
53              
54             sub abbr_string {
55             [
56 165     165 1 1099 'N',
57             'NbE',
58             'NNE',
59             'NEbN',
60             'NE',
61             'NEbE',
62             'ENE',
63             'EbN',
64             'E',
65             'EbS',
66             'ESE',
67             'SEbE',
68             'SE',
69             'SEbS',
70             'SSE',
71             'SbE',
72             'S',
73             'SbW',
74             'SSW',
75             'SWbS',
76             'SW',
77             'SWbW',
78             'WSW',
79             'WbS',
80             'W',
81             'WbN',
82             'WNW',
83             'NWbW',
84             'NW',
85             'NWbN',
86             'NNW',
87             'NbW',
88             ]
89             }
90              
91              
92             1;
93              
94             =head1 NAME
95              
96             Geo::Direction::Name::Locale::en - Locale 'en' class of Geo::Direction::Name's locale class.
97              
98              
99             =head1 OVERRIDE METHODS
100              
101             =over 4
102              
103             =item * dir_string
104              
105             =item * abbr_string
106              
107             =back
108              
109              
110             =head1 AUTHOR
111              
112             OHTSUKA Ko-hei C<< >>
113              
114              
115             =head1 LICENCE AND COPYRIGHT
116              
117             Copyright (c) 2008, OHTSUKA Ko-hei C<< >>. All rights reserved.
118              
119             This module is free software; you can redistribute it and/or
120             modify it under the same terms as Perl itself. See L.
121              
122              
123             =head1 DISCLAIMER OF WARRANTY
124              
125             BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
126             FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
127             OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
128             PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
129             EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
130             WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
131             ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
132             YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
133             NECESSARY SERVICING, REPAIR, OR CORRECTION.
134              
135             IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
136             WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
137             REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
138             LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
139             OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
140             THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
141             RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
142             FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
143             SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
144             SUCH DAMAGES.
145