mirror of
https://github.com/php/doc-uk.git
synced 2026-03-23 22:52:14 +01:00
Sync some string functions with EN
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 33bb5e19aef8b15b0f8b3170cecc3a8f455020bc Maintainer: iSensetivity Status: ready -->
|
||||
<!-- EN-Revision: e095023e408c8cb6378ae16bb6870343a3946919 Maintainer: iSensetivity Status: ready -->
|
||||
<!-- Reviewed: no -->
|
||||
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.crc32">
|
||||
@@ -13,11 +12,11 @@
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>crc32</methodname>
|
||||
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Функція обчислює циклічний надлишковий код 32-бітних поліномів
|
||||
для рядка <parameter>str</parameter>. Зазвичай використовується
|
||||
для рядка <parameter>string</parameter>. Зазвичай використовується
|
||||
для перевірки цілісності передачі даних.
|
||||
</para>
|
||||
<warning>
|
||||
@@ -65,7 +64,7 @@
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>str</parameter></term>
|
||||
<term><parameter>string</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Дані.
|
||||
@@ -79,7 +78,7 @@
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Повертає контрольну суму CRC32-рядка <parameter>str</parameter> у вигляді цілого числа.
|
||||
Повертає контрольну суму CRC32-рядка <parameter>string</parameter> у вигляді цілого числа.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@@ -118,7 +117,6 @@ printf("%u\n", $checksum);
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: iSensetivity Status: ready -->
|
||||
<!-- EN-Revision: 71e12e2df7b0bcf0dc2743681b73790ac0d45ccc Maintainer: iSensetivity Status: ready -->
|
||||
<!-- Reviewed: no -->
|
||||
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
@@ -12,9 +11,9 @@
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>md5_file</methodname>
|
||||
<type class="union"><type>string</type><type>false</type></type><methodname>md5_file</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Обчислює MD5-хеш файлу <parameter>filename</parameter> використовуючи
|
||||
@@ -36,7 +35,7 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>raw_output</parameter></term>
|
||||
<term><parameter>binary</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Якщо необов'язковий параметр <parameter>raw_output</parameter> встановлений у &true;,
|
||||
@@ -55,33 +54,7 @@
|
||||
інакше &false;.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.1.0</entry>
|
||||
<entry>
|
||||
Функцію змінено для роботи з потоковим API. Це означає,
|
||||
що її можна використовувати з обгортками, наприклад,
|
||||
так: <literal>md5_file('http://example.com/..')</literal>
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
@@ -104,14 +77,13 @@ echo 'MD5-хеш файлу ' . $file . ': ' . md5_file($file);
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>hash_file</function></member>
|
||||
<member><function>hash_init</function></member>
|
||||
<member><function>md5</function></member>
|
||||
<member><function>sha1_file</function></member>
|
||||
<member><function>crc32</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: iSensetivity Status: ready -->
|
||||
<!-- EN-Revision: 71e12e2df7b0bcf0dc2743681b73790ac0d45ccc Maintainer: iSensetivity Status: ready -->
|
||||
<!-- Reviewed: no -->
|
||||
|
||||
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.md5">
|
||||
@@ -17,11 +16,11 @@
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>md5</methodname>
|
||||
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
|
||||
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Обчислює MD5-хеш рядка <parameter>str</parameter> використовуючи
|
||||
Обчислює MD5-хеш рядка <parameter>string</parameter> використовуючи
|
||||
<link xlink:href="&url.rfc;1321">RSA Data Security, Inc.
|
||||
MD5 Message-Digest Algorithm</link>, та повертає цей хеш.
|
||||
</para>
|
||||
@@ -32,7 +31,7 @@
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>str</parameter></term>
|
||||
<term><parameter>string</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Рядок.
|
||||
@@ -40,10 +39,10 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>raw_output</parameter></term>
|
||||
<term><parameter>binary</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Якщо необов'язковий параметр <parameter>raw_output</parameter> встановлений у &true;,
|
||||
Якщо необов'язковий параметр <parameter>binary</parameter> встановлений у &true;,
|
||||
то повертається бінарний рядок з 16 символів.
|
||||
</para>
|
||||
</listitem>
|
||||
@@ -83,19 +82,13 @@ if (md5($str) === '58bb8ca76e4a13037e7cd0232f387643') {
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>md5_file</function></member>
|
||||
<member><function>sha1_file</function></member>
|
||||
<member><function>crc32</function></member>
|
||||
<member><function>sha1</function></member>
|
||||
<member><function>hash</function></member>
|
||||
<member><function>crypt</function></member>
|
||||
<member><function>password_hash</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: iSensetivity Status: ready -->
|
||||
<!-- EN-Revision: 71e12e2df7b0bcf0dc2743681b73790ac0d45ccc Maintainer: iSensetivity Status: ready -->
|
||||
<!-- Reviewed: no -->
|
||||
|
||||
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.sha1-file">
|
||||
@@ -11,9 +10,9 @@
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>sha1_file</methodname>
|
||||
<type class="union"><type>string</type><type>false</type></type><methodname>sha1_file</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<simpara>
|
||||
Обчислює SHA1-хеш файла <parameter>filename</parameter> використовуючи
|
||||
@@ -35,10 +34,10 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>raw_output</parameter></term>
|
||||
<term><parameter>binary</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Якщо необов'язковий параметр <parameter>raw_output</parameter>
|
||||
Якщо необов'язковий параметр <parameter>binary</parameter>
|
||||
встановлений у &true;,
|
||||
хеш повернеться у вигляді бінарного рядка з 20 символів,
|
||||
інакше повернеться 40-символьне шістнадцяткове число.
|
||||
@@ -79,44 +78,18 @@ foreach(glob('/home/Kalle/myproject/*.php') as $ent)
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.1.0</entry>
|
||||
<entry>
|
||||
Функцію змінено для роботи з потоковим API. Це означає,
|
||||
що її можна використовувати з обгортками, наприклад, так:
|
||||
<literal>sha1_file('http://example.com/..')</literal>
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>hash_file</function></member>
|
||||
<member><function>hash_init</function></member>
|
||||
<member><function>sha1</function></member>
|
||||
<member><function>md5_file</function></member>
|
||||
<member><function>crc32</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: iSensetivity Status: ready -->
|
||||
<!-- EN-Revision: 71e12e2df7b0bcf0dc2743681b73790ac0d45ccc Maintainer: iSensetivity Status: ready -->
|
||||
<!-- Reviewed: no -->
|
||||
|
||||
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.sha1">
|
||||
@@ -17,11 +16,11 @@
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>sha1</methodname>
|
||||
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
|
||||
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<simpara>
|
||||
Обчислює SHA1-хеш рядка <parameter>str</parameter> використовуючи алгоритм
|
||||
Обчислює SHA1-хеш рядка <parameter>string</parameter> використовуючи алгоритм
|
||||
<link xlink:href="&url.rfc;3174">US Secure Hash Algorithm 1</link>,
|
||||
та повертає цей хеш.
|
||||
</simpara>
|
||||
@@ -32,7 +31,7 @@
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>str</parameter></term>
|
||||
<term><parameter>string</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Рядок.
|
||||
@@ -40,10 +39,10 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>raw_output</parameter></term>
|
||||
<term><parameter>binary</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Якщо необов'язковий параметр <parameter>raw_output</parameter>
|
||||
Якщо необов'язковий параметр <parameter>binary</parameter>
|
||||
встановлений у &true;,
|
||||
хеш повернеться у вигляді бінарного рядка з 20 символів,
|
||||
інакше повернеться 40-символьне шістнадцяткове число.
|
||||
@@ -85,18 +84,13 @@ if (sha1($str) === '78742c4f7790d580dca68606a7efad0dcc446709') {
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>sha1_file</function></member>
|
||||
<member><function>crc32</function></member>
|
||||
<member><function>md5</function></member>
|
||||
<member><function>hash</function></member>
|
||||
<member><function>crypt</function></member>
|
||||
<member><function>password_hash</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
Reference in New Issue
Block a user