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 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
|
# $Id: API.pod,v 1.11 2002/02/28 02:21:00 m-kasahr Exp $
#
# Copyright (c) 2001 Japan Network Information Center. All rights reserved.
#
# By using this file, you agree to the terms and conditions set forth bellow.
#
# LICENSE TERMS AND CONDITIONS
#
# The following License Terms and Conditions apply, unless a different
# license is obtained from Japan Network Information Center ("JPNIC"),
# a Japanese association, Fuundo Bldg., 1-2 Kanda Ogawamachi, Chiyoda-ku,
# Tokyo, Japan.
#
# 1. Use, Modification and Redistribution (including distribution of any
# modified or derived work) in source and/or binary forms is permitted
# under this License Terms and Conditions.
#
# 2. Redistribution of source code must retain the copyright notices as they
# appear in each source code file, this License Terms and Conditions.
#
# 3. Redistribution in binary form must reproduce the Copyright Notice,
# this License Terms and Conditions, in the documentation and/or other
# materials provided with the distribution. For the purposes of binary
# distribution the "Copyright Notice" refers to the following language:
# "Copyright (c) Japan Network Information Center. All rights reserved."
#
# 4. Neither the name of JPNIC may be used to endorse or promote products
# derived from this Software without specific prior written approval of
# JPNIC.
#
# 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JPNIC BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#
# 6. Indemnification by Licensee
# Any person or entities using and/or redistributing this Software under
# this License Terms and Conditions shall defend indemnify and hold
# harmless JPNIC from and against any and all judgements damages,
# expenses, settlement liabilities, cost and other liabilities of any
# kind as a result of use and redistribution of this Software or any
# claim, suite, action, litigation or proceeding by any third party
# arising out of or relates to this License Terms and Conditions.
#
# 7. Governing Law, Jurisdiction and Venue
# This License Terms and Conditions shall be governed by and and
# construed in accordance with the law of Japan. Any person or entities
# using and/or redistributing this Software under this License Terms and
# Conditions hereby agrees and consent to the personal and exclusive
# jurisdiction and venue of Tokyo District Court of Japan.
#
__END__
=head1 NAME
MDN::API - libmdn Υɥᥤ̾Ѵåɤ Perl ؤΥե
=head1 SYNOPSIS
use MDN::API;
$idn_domain_name = MDN::API->encode($local_domain_name);
$local_domain_name = MDN::API->decode($idn_domain_name);
=head1 DESCRIPTION
C<MDN::ResConf> ϡmDNkit °Ƥ libmdn Ȥ¿ɥᥤ
̾饤֥Υɥᥤ̾ѴåɤФơPerl Υ֥
եޤ
Υ⥸塼 libmdn Ф롢٥Ѵե
ޤlibmdn (: C</usr/local/etc/mdn.conf>) ˽äɥᥤ
̾Υɤ䥨ɤԤȤǤޤ
=head1 饹å
Υ⥸塼ϥ֥ȥե櫓Ǥޤ
C<MDN::> ¾Υ⥸塼ȤΰθơؿϤ٤ƥ饹
åɤȤƸƤӽФ褦ˤʤäƤޤ
MDN::API->encode($domain_name); #
MDN::API::encode($domain_name); #
=over 4
=item encode_name($from [, @actions...])
C<@actions> ˽äƥɥᥤ̾ C<$from> ɤ̤֤ޤ
C<@actions> γǤϡʸǤ
'localconv' 륨ǥʸ UTF-8 Ѵ
'delimmap' ʶڤʸԥꥪ ('.') Ѵ
'localmap' ʥޥåԥ
'nameprep' NAMEPREP μ¹ (ޥåԥػʸ
̤ƥɥݥȤθ)
'idnconv' UTF-8 ʸ ACE Ѵ
'encode_app' 'localconv', 'delimmap', 'localmap', 'nameprep',
'idnconv' ¹ԡ@actions άϤꤷ
Ȥˤʤ
C<@actions> Ǥνˤ餺 C<'localconv'>
C<'delimmap'>C<'localmap'>C<'nameprep'>C<'idnconv'> ν֤
¹Ԥޤ
顼ȯȤϡC<undef> ֤ޤ
=item decode_name($from [, @actions...])
C<@actions> ˽äƥɥᥤ̾ C<$from> ǥɤ̤֤ޤ
C<encode_name> ȿФưޤ
C<@actions> γǤϡʸǤ
'idnconv' ACE ʸ UTF-8 Ѵ
'nameprep' NAMEPREP νѤޤʸɤθ
ѤޤʸǤʤСACE Ѵ롣
'localconv' UTF-8 ʸ륨ǥѴ
'decode_app' 'idnconv', 'nameprep', 'localconv' ¹
@actions άϤꤷȤˤʤޤ
C<@actions> Ǥνˤ餺 C<'idnconv'>
C<'nameprep'>C<'localconv'> ν֤Ǽ¹Ԥޤ
顼ȯȤϡC<undef> ֤ޤ
=item enable($on_off)
libmdn ˤäƤ¿ɥᥤ̾бͭޤ
̵ޤ
C<$on_off> ʤб̵ˤʤꡢʳʤͭˤʤޤ
ΥåɤƤӽФʤС¿ɥᥤ̾бͭˤ뤫
ɤȽˡĶѿ C<MDN_DISABLE> Ѥޤ
ѿƤС̵ˤʤޤ
̵줿֤ǤϡѴå (C<encode_name()>
C<decode_name()>) ñϤ줿ʸΥԡѴ̤Ȥ
֤Ƥޤ
=item lasterror()
Υ⥸塼ǰֺǸȯ顼Υ顼åʸ
֤ޤ
=item local_to_utf8($from)
C<encode_name($from, 'localconv')> Ǥ
=item utf8_to_local($from)
C<decode_name($from, 'localconv')> Ǥ
=item delimiter_map($from)
C<encode_name($from, 'delimmap')> Ǥ
=item local_map($from)
C<encode_name($from, 'localmap')> Ǥ
=item nameprep($from)
C<encode_name($from, 'nameprep')> Ǥ
=item nameprep_check($from)
C<decode_name($from, 'nameprep')> Ǥ
=item utf8_to_idn($from)
C<encode_name($from, 'idnconv')> Ǥ
=item idn_to_utf8($from)
C<decode_name($from, 'idnconv')> Ǥ
=item local_to_idn($from)
C<encode_name($from)> Ǥ
=item idn_to_local($from)
C<decode_name($from)> Ǥ
=back
=head1 ߴ
С 2.4 顢C<encode_name()> C<decode_name()> å
ˤơʸ C<'nameprep'> ̤ƥɥݥȤθԤ
褦ˤʤޤ
ʸ C<'unascheck'> C<unassigned_check()> åɤϡ
ޤ
=head1 Unicode ʸμ갷˴ؤ
L<MDN::UTF8> ΡUnicode ʸμ갷˴ؤơפιɤߤ
=head1 SEE ALSO
L<mdn.conf(5)>, L<MDN::ResConf>, L<MDN::UTF8>
MDN 饤֥ͽ
=cut
|