line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Number::Phone::Lib; |
2
|
|
|
|
|
|
|
|
3
|
12
|
|
|
12
|
|
17097
|
use strict; |
|
12
|
|
|
|
|
55
|
|
|
12
|
|
|
|
|
375
|
|
4
|
12
|
|
|
12
|
|
61
|
use base 'Number::Phone'; |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
1727
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.0'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
3793
|
|
|
3793
|
1
|
1975088
|
my $class = shift; |
10
|
3793
|
|
|
|
|
17040
|
my($country, $number) = $class->_new_args(@_); |
11
|
3793
|
100
|
|
|
|
8725
|
return undef unless $country; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# libphonenumber erroneously treats non-geographic numbers such |
14
|
|
|
|
|
|
|
# as 1-800 numbers as being in the US |
15
|
3789
|
100
|
|
|
|
8612
|
$country = 'US' if($country eq 'NANP'); |
16
|
3789
|
100
|
|
|
|
7351
|
$country = 'GB' if($country eq 'UK'); |
17
|
|
|
|
|
|
|
|
18
|
3789
|
|
|
|
|
16765
|
return $class->_make_stub_object($number, $country); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
__END__ |