svn: /phpdoc/ru/trunk/reference/mbstring/functions/ mb-encoding-aliases.xml

From: Date: Fri, 27 Jan 2012 19:29:23 +0000
Subject: svn: /phpdoc/ru/trunk/reference/mbstring/functions/ mb-encoding-aliases.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-3581@lists.php.net to get a copy of this message
northcat Fri, 27 Jan 2012 19:29:23 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=322859 Log: Added unreviewed translation. Changed paths: A phpdoc/ru/trunk/reference/mbstring/functions/mb-encoding-aliases.xml Added: phpdoc/ru/trunk/reference/mbstring/functions/mb-encoding-aliases.xml =================================================================== --- phpdoc/ru/trunk/reference/mbstring/functions/mb-encoding-aliases.xml (rev 0) +++ phpdoc/ru/trunk/reference/mbstring/functions/mb-encoding-aliases.xml 2012-01-27 19:29:23 UTC (rev 322859) @@ -0,0 +1,127 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 299460 Maintainer: northcat Status: ready --> +<!-- Reviewed: no --> + +<refentry xml:id="function.mb-encoding-aliases" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>mb_encoding_aliases</refname> + <refpurpose>Получает псевдонимы известного типа кодировки</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>mb_encoding_aliases</methodname> + <methodparam><type>string</type><parameter>encoding</parameter></methodparam> + </methodsynopsis> + <para> + Возвращает массив псевдонимов для известного типа кодировки <parameter>encoding</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <variablelist> + <varlistentry> + <term><parameter>encoding</parameter></term> + <listitem> + <para> + Кодировка, для которой ищутся псевдонимы. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + В случае успеха возвращает индексный массив с псевдонимами кодировки, + &return.falseforfailure; + </para> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + <para> + Вызывает ошибку уровня <constant>E_WARNING</constant>, если + кодировка <parameter>encoding</parameter> не известна. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title>Пример использования <function>mb_encoding_aliases</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$encoding = 'ASCII'; +$known_encodings = mb_list_encodings(); + +if (in_array($encoding, $known_encodings)) { + + $aliases = mb_encoding_aliases($encoding); + print_r($aliases); + +} else { + + echo "Неизвестная кодировка ($encoding).\n"; + +} +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +Array +( + [0] => ANSI_X3.4-1968 + [1] => iso-ir-6 + [2] => ANSI_X3.4-1986 + [3] => ISO_646.irv:1991 + [4] => US-ASCII + [5] => ISO646-US + [6] => us + [7] => IBM367 + [8] => cp367 + [9] => csASCII +) +]]> + </screen> + </example> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mb_list_encodings</function></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + Property changes on: phpdoc/ru/trunk/reference/mbstring/functions/mb-encoding-aliases.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native

« previous php.doc.ru (#3581) next »