/usr/share/perl5/Regexp/Common/URI/RFC2806.pm is in libregexp-common-perl 2016060801-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | package Regexp::Common::URI::RFC2806;
use Regexp::Common::URI::RFC1035 qw /$domain/;
use Regexp::Common::URI::RFC2396 qw /$unreserved $escaped $hex/;
use strict;
use warnings;
use vars qw /$VERSION/;
$VERSION = '2016060801';
use vars qw /@EXPORT @EXPORT_OK %EXPORT_TAGS @ISA/;
use Exporter ();
@ISA = qw /Exporter/;
my %vars;
BEGIN {
$vars {low} = [qw /$dtmf_digit $wait_for_dial_tone $one_second_pause
$pause_character $visual_separator $phonedigit
$escaped_no_dquote $quoted_string $token_char
$token_chars/];
$vars {parts} = [qw /$future_extension/];
$vars {connect} = [qw /$provider_hostname $provider_tag $service_provider
$private_prefix $local_network_prefix
$global_network_prefix $network_prefix/];
$vars {phone} = [qw /$phone_context_ident $phone_context_tag
$area_specifier $post_dial $isdn_subaddress
$t33_subaddress $local_phone_number
$local_phone_number_no_future
$base_phone_number $global_phone_number
$global_phone_number_no_future $telephone_subscriber
$telephone_subscriber_no_future/];
$vars {fax} = [qw /$fax_local_phone $fax_local_phone_no_future
$fax_global_phone $fax_global_phone_no_future
$fax_subscriber $fax_subscriber_no_future/];
$vars {modem} = [qw //];
}
use vars map {@$_} values %vars;
@EXPORT = ();
@EXPORT_OK = map {@$_} values %vars;
%EXPORT_TAGS = (%vars, ALL => [@EXPORT_OK]);
# RFC 2806, URIs for tel, fax & modem.
$dtmf_digit = "(?:[*#ABCD])";
$wait_for_dial_tone= "(?:w)";
$one_second_pause = "(?:p)";
$pause_character = "(?:[wp])"; # wait_for_dial_tone | one_second_pause.
$visual_separator = "(?:[\\-.()])";
$phonedigit = "(?:[0-9\\-.()])"; # DIGIT | visual_separator
$escaped_no_dquote = "(?:%(?:[01]$hex)|2[013-9A-Fa-f]|[3-9A-Fa-f]$hex)";
$quoted_string = "(?:%22(?:(?:%5C(?:$unreserved|$escaped))|" .
"$unreserved+|$escaped_no_dquote)*%22)";
# It is unclear wether we can allow only unreserved
# characters to unescaped, or can we also use uric
# characters that are unescaped? Or pchars?
$token_char = "(?:[!'*\\-.0-9A-Z_a-z~]|" .
"%(?:2[13-7ABDEabde]|3[0-9]|4[1-9A-Fa-f]|" .
"5[AEFaef]|6[0-9A-Fa-f]|7[0-9ACEace]))";
# Only allowing unreserved chars to be unescaped.
$token_chars = "(?:(?:[!'*\\-.0-9A-Z_a-z~]+|" .
"%(?:2[13-7ABDEabde]|3[0-9]|4[1-9A-Fa-f]|" .
"5[AEFaef]|6[0-9A-Fa-f]|7[0-9ACEace]))*)";
$future_extension = "(?:;$token_chars" .
"(?:=(?:(?:$token_chars(?:[?]$token_chars)?)|" .
"$quoted_string))?)";
$provider_hostname = $domain;
$provider_tag = "(?:tsp)";
$service_provider = "(?:;$provider_tag=$provider_hostname)";
$private_prefix = "(?:(?:[!'E-OQ-VX-Z_e-oq-vx-z~]|" .
"(?:%(?:2[124-7CFcf]|3[AC-Fac-f]|4[05-9A-Fa-f]|" .
"5[1-689A-Fa-f]|6[05-9A-Fa-f]|" .
"7[1-689A-Ea-e])))" .
"(?:[!'()*\\-.0-9A-Z_a-z~]+|" .
"(?:%(?:2[1-9A-Fa-f]|3[AC-Fac-f]|" .
"[4-6][0-9A-Fa-f]|7[0-9A-Ea-e])))*)";
$local_network_prefix
= "(?:[0-9\\-.()*#ABCDwp]+)";
$global_network_prefix
= "(?:[+][0-9\\-.()]+)";
$network_prefix = "(?:$global_network_prefix|$local_network_prefix)";
$phone_context_ident
= "(?:$network_prefix|$private_prefix)";
$phone_context_tag = "(?:phone-context)";
$area_specifier = "(?:;$phone_context_tag=$phone_context_ident)";
$post_dial = "(?:;postd=[0-9\\-.()*#ABCDwp]+)";
$isdn_subaddress = "(?:;isub=[0-9\\-.()]+)";
$t33_subaddress = "(?:;tsub=[0-9\\-.()]+)";
$local_phone_number= "(?:[0-9\\-.()*#ABCDwp]+$isdn_subaddress?" .
"$post_dial?$area_specifier" .
"(?:$area_specifier|$service_provider|" .
"$future_extension)*)";
$local_phone_number_no_future
= "(?:[0-9\\-.()*#ABCDwp]+$isdn_subaddress?" .
"$post_dial?$area_specifier" .
"(?:$area_specifier|$service_provider)*)";
$fax_local_phone = "(?:[0-9\\-.()*#ABCDwp]+$isdn_subaddress?" .
"$t33_subaddress?$post_dial?$area_specifier" .
"(?:$area_specifier|$service_provider|" .
"$future_extension)*)";
$fax_local_phone_no_future
= "(?:[0-9\\-.()*#ABCDwp]+$isdn_subaddress?" .
"$t33_subaddress?$post_dial?$area_specifier" .
"(?:$area_specifier|$service_provider)*)";
$base_phone_number = "(?:[0-9\\-.()]+)";
$global_phone_number
= "(?:[+]$base_phone_number$isdn_subaddress?" .
"$post_dial?" .
"(?:$area_specifier|$service_provider|" .
"$future_extension)*)";
$global_phone_number_no_future
= "(?:[+]$base_phone_number$isdn_subaddress?" .
"$post_dial?" .
"(?:$area_specifier|$service_provider)*)";
$fax_global_phone = "(?:[+]$base_phone_number$isdn_subaddress?" .
"$t33_subaddress?$post_dial?" .
"(?:$area_specifier|$service_provider|" .
"$future_extension)*)";
$fax_global_phone_no_future
= "(?:[+]$base_phone_number$isdn_subaddress?" .
"$t33_subaddress?$post_dial?" .
"(?:$area_specifier|$service_provider)*)";
$telephone_subscriber
= "(?:$global_phone_number|$local_phone_number)";
$telephone_subscriber_no_future
= "(?:$global_phone_number_no_future|" .
"$local_phone_number_no_future)";
$fax_subscriber = "(?:$fax_global_phone|$fax_local_phone)";
$fax_subscriber_no_future
= "(?:$fax_global_phone_no_future|" .
"$fax_local_phone_no_future)";
1;
__END__
=pod
=head1 NAME
Regexp::Common::URI::RFC2806 -- Definitions from RFC2806;
=head1 SYNOPSIS
use Regexp::Common::URI::RFC2806 qw /:ALL/;
=head1 DESCRIPTION
This package exports definitions from RFC2806. It's intended
usage is for Regexp::Common::URI submodules only. Its interface
might change without notice.
=head1 REFERENCES
=over 4
=item B<[RFC 2616]>
Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L.,
Leach, P. and Berners-Lee, Tim: I<Hypertext Transfer Protocol -- HTTP/1.1>.
June 1999.
=back
=head1 AUTHOR
Damian Conway (damian@conway.org)
=head1 MAINTENANCE
This package is maintained by Abigail S<(I<regexp-common@abigail.be>)>.
=head1 BUGS AND IRRITATIONS
Bound to be plenty.
=head1 LICENSE and COPYRIGHT
This software is Copyright (c) 2001 - 2016, Damian Conway and Abigail.
This module is free software, and maybe used under any of the following
licenses:
1) The Perl Artistic License. See the file COPYRIGHT.AL.
2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
3) The BSD License. See the file COPYRIGHT.BSD.
4) The MIT License. See the file COPYRIGHT.MIT.
=cut
|