line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# automatically generated file, don't edit |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# Copyright 2023 David Cantrell, derived from data from libphonenumber |
6
|
|
|
|
|
|
|
# http://code.google.com/p/libphonenumber/ |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
9
|
|
|
|
|
|
|
# you may not use this file except in compliance with the License. |
10
|
|
|
|
|
|
|
# You may obtain a copy of the License at |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0 |
13
|
|
|
|
|
|
|
# |
14
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software |
15
|
|
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, |
16
|
|
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17
|
|
|
|
|
|
|
# See the License for the specific language governing permissions and |
18
|
|
|
|
|
|
|
# limitations under the License. |
19
|
|
|
|
|
|
|
package Number::Phone::StubCountry::FM; |
20
|
2
|
|
|
2
|
|
1165
|
use base qw(Number::Phone::StubCountry); |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
251
|
|
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
|
21
|
use strict; |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
64
|
|
23
|
2
|
|
|
2
|
|
30
|
use warnings; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
83
|
|
24
|
2
|
|
|
2
|
|
16
|
use utf8; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
11
|
|
25
|
|
|
|
|
|
|
our $VERSION = 1.20230614174403; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $formatters = [ |
28
|
|
|
|
|
|
|
{ |
29
|
|
|
|
|
|
|
'format' => '$1 $2', |
30
|
|
|
|
|
|
|
'leading_digits' => '[389]', |
31
|
|
|
|
|
|
|
'pattern' => '(\\d{3})(\\d{4})' |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
]; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
my $validators = { |
36
|
|
|
|
|
|
|
'fixed_line' => ' |
37
|
|
|
|
|
|
|
31(?: |
38
|
|
|
|
|
|
|
00[67]| |
39
|
|
|
|
|
|
|
208| |
40
|
|
|
|
|
|
|
309 |
41
|
|
|
|
|
|
|
)\\d\\d| |
42
|
|
|
|
|
|
|
(?: |
43
|
|
|
|
|
|
|
3(?: |
44
|
|
|
|
|
|
|
[2357]0[1-9]| |
45
|
|
|
|
|
|
|
602| |
46
|
|
|
|
|
|
|
804| |
47
|
|
|
|
|
|
|
905 |
48
|
|
|
|
|
|
|
)| |
49
|
|
|
|
|
|
|
(?: |
50
|
|
|
|
|
|
|
820| |
51
|
|
|
|
|
|
|
9[2-6]\\d |
52
|
|
|
|
|
|
|
)\\d |
53
|
|
|
|
|
|
|
)\\d{3} |
54
|
|
|
|
|
|
|
', |
55
|
|
|
|
|
|
|
'geographic' => ' |
56
|
|
|
|
|
|
|
31(?: |
57
|
|
|
|
|
|
|
00[67]| |
58
|
|
|
|
|
|
|
208| |
59
|
|
|
|
|
|
|
309 |
60
|
|
|
|
|
|
|
)\\d\\d| |
61
|
|
|
|
|
|
|
(?: |
62
|
|
|
|
|
|
|
3(?: |
63
|
|
|
|
|
|
|
[2357]0[1-9]| |
64
|
|
|
|
|
|
|
602| |
65
|
|
|
|
|
|
|
804| |
66
|
|
|
|
|
|
|
905 |
67
|
|
|
|
|
|
|
)| |
68
|
|
|
|
|
|
|
(?: |
69
|
|
|
|
|
|
|
820| |
70
|
|
|
|
|
|
|
9[2-6]\\d |
71
|
|
|
|
|
|
|
)\\d |
72
|
|
|
|
|
|
|
)\\d{3} |
73
|
|
|
|
|
|
|
', |
74
|
|
|
|
|
|
|
'mobile' => ' |
75
|
|
|
|
|
|
|
31(?: |
76
|
|
|
|
|
|
|
00[67]| |
77
|
|
|
|
|
|
|
208| |
78
|
|
|
|
|
|
|
309 |
79
|
|
|
|
|
|
|
)\\d\\d| |
80
|
|
|
|
|
|
|
(?: |
81
|
|
|
|
|
|
|
3(?: |
82
|
|
|
|
|
|
|
[2357]0[1-9]| |
83
|
|
|
|
|
|
|
602| |
84
|
|
|
|
|
|
|
804| |
85
|
|
|
|
|
|
|
905 |
86
|
|
|
|
|
|
|
)| |
87
|
|
|
|
|
|
|
(?: |
88
|
|
|
|
|
|
|
820| |
89
|
|
|
|
|
|
|
9[2-7]\\d |
90
|
|
|
|
|
|
|
)\\d |
91
|
|
|
|
|
|
|
)\\d{3} |
92
|
|
|
|
|
|
|
', |
93
|
|
|
|
|
|
|
'pager' => '', |
94
|
|
|
|
|
|
|
'personal_number' => '', |
95
|
|
|
|
|
|
|
'specialrate' => '', |
96
|
|
|
|
|
|
|
'toll_free' => '', |
97
|
|
|
|
|
|
|
'voip' => '' |
98
|
|
|
|
|
|
|
}; |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
sub new { |
101
|
7
|
|
|
7
|
1
|
26
|
my $class = shift; |
102
|
7
|
|
|
|
|
29
|
my $number = shift; |
103
|
7
|
|
|
|
|
45
|
$number =~ s/(^\+691|\D)//g; |
104
|
7
|
|
|
|
|
43
|
my $self = bless({ country_code => '691', number => $number, formatters => $formatters, validators => $validators, }, $class); |
105
|
7
|
100
|
|
|
|
46
|
return $self->is_valid() ? $self : undef; |
106
|
|
|
|
|
|
|
} |
107
|
|
|
|
|
|
|
1; |