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
|
|
1033
|
use base qw(Number::Phone::StubCountry); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
264
|
|
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
|
15
|
use strict; |
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
50
|
|
23
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
52
|
|
24
|
2
|
|
|
2
|
|
13
|
use utf8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
25
|
|
|
|
|
|
|
our $VERSION = 1.20230307181420; |
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
|
25
|
my $class = shift; |
102
|
7
|
|
|
|
|
21
|
my $number = shift; |
103
|
7
|
|
|
|
|
47
|
$number =~ s/(^\+691|\D)//g; |
104
|
7
|
|
|
|
|
52
|
my $self = bless({ country_code => '691', number => $number, formatters => $formatters, validators => $validators, }, $class); |
105
|
7
|
100
|
|
|
|
39
|
return $self->is_valid() ? $self : undef; |
106
|
|
|
|
|
|
|
} |
107
|
|
|
|
|
|
|
1; |