Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions reference/mbstring/functions/mb-check-encoding.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: d2ff0abe1650703e8974acaa7674c678e587a696 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.mb-check-encoding" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mb_check_encoding</refname>
<refpurpose>Verifica si las cadenas son válidas para el encodage especificado</refpurpose>
<refpurpose>Verifica si las cadenas son válidas para el codificación especificada</refpurpose>
</refnamediv>

<refsect1 role="description">
Expand All @@ -16,9 +16,9 @@
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
Verifica si el flujo de octetos es válido para el encodage específico.
Verifica si el flujo de octetos es válido para la codificación especificada.
Si <parameter>value</parameter> es de tipo &array;, todas las claves y los valores son validados de manera recursiva.
Es útil para prever lo que se conoce como « ataque por encodage inválido ».
Es útil para prever lo que se conoce como « ataque por codificación inválida ».
</para>
<para>
</para>
Expand Down Expand Up @@ -46,7 +46,7 @@
<term><parameter>encoding</parameter></term>
<listitem>
<para>
Encodage esperado.
Codificación esperada.
</para>
</listitem>
</varlistentry>
Expand All @@ -61,6 +61,11 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -84,6 +89,7 @@
<parameter>value</parameter> y <parameter>encoding</parameter> ahora son nullable.
</entry>
</row>
&mbstring.changelog.encoding-invalid;
<row>
<entry>7.2.0</entry>
<entry>
Expand Down
8 changes: 7 additions & 1 deletion reference/mbstring/functions/mb-chr.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 30c25e7d490278bb31b9d5df6107a3b300d7e10a Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mb-chr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -53,6 +53,11 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -65,6 +70,7 @@
</thead>
<tbody>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand Down
8 changes: 7 additions & 1 deletion reference/mbstring/functions/mb-convert-case.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: d6f54016d62904cfd8200604aadd5e3f0d9bad97 Maintainer: Marqitos Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: Marqitos Status: ready -->
<!-- Reviewed: no Maintainer: seros -->
<refentry xml:id="function.mb-convert-case" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -68,6 +68,11 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
Expand All @@ -90,6 +95,7 @@
<constant>MB_CASE_TITLE_SIMPLE</constant>.
</entry>
</row>
&mbstring.changelog.encoding-invalid;
<row>
<entry>7.3.0</entry>
<entry>
Expand Down
10 changes: 6 additions & 4 deletions reference/mbstring/functions/mb-convert-kana.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 34f90a65914c900173f9a42331acc45bc53d8eee Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.mb-convert-kana" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -85,21 +85,21 @@
<row>
<entry><literal>A</literal></entry>
<entry>
Convierte los números y alfabeto "zen-kaku" en "han-kaku".
Convierte los números y alfabeto "han-kaku" en "zen-kaku".
(Los caracteres incluidos en las opciones "a", "A" son
U+0021 - U+007E excluyendo U+0022, U+0027, U+005C, U+007E)
</entry>
</row>
<row>
<entry><literal>s</literal></entry>
<entry>
Convierte "zen-kaku" en "han-kaku" (U+3000 -> U+0020)
Convierte el espacio "zen-kaku" en "han-kaku" (U+3000 -> U+0020)
</entry>
</row>
<row>
<entry><literal>S</literal></entry>
<entry>
Convierte "han-kaku" en "zen-kaku" (U+0020 -> U+3000)
Convierte el espacio "han-kaku" en "zen-kaku" (U+0020 -> U+3000)
</entry>
</row>
<row>
Expand Down Expand Up @@ -174,6 +174,7 @@
diferentes <parameter>mode</parameter> no es válida.
Por ejemplo <literal>"sS"</literal>.
</para>
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
Expand All @@ -195,6 +196,7 @@
</entry>
</row>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand Down
4 changes: 3 additions & 1 deletion reference/mbstring/functions/mb-decode-numericentity.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 0bb8d1a0dda028c1086f07dbae25d320850d7a90 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mb-decode-numericentity" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -66,6 +66,7 @@
<parameter>map</parameter> contiene algún valor que no sea un
&integer;, un &float;, un &boolean;, &null; o una <link linkend="language.types.numeric-strings">cadena numérica</link>.
</simpara>
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
Expand All @@ -88,6 +89,7 @@
</entry>
</row>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand Down
4 changes: 3 additions & 1 deletion reference/mbstring/functions/mb-encode-numericentity.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 0bb8d1a0dda028c1086f07dbae25d320850d7a90 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mb-encode-numericentity" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -77,6 +77,7 @@
<parameter>map</parameter> contiene algún valor que no sea un
&integer;, un &float;, un &boolean;, &null; o una <link linkend="language.types.numeric-strings">cadena numérica</link>.
</simpara>
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
Expand All @@ -99,6 +100,7 @@
</entry>
</row>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand Down
4 changes: 3 additions & 1 deletion reference/mbstring/functions/mb-http-output.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: d553fa36940639b0889ec4358fa3bbb92f123b69 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->

<refentry xml:id="function.mb-http-output" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -60,6 +60,7 @@
Levanta una excepción <exceptionname>ValueError</exceptionname> si
<parameter>encoding</parameter> contiene octetos nulos.
</simpara>
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
Expand All @@ -82,6 +83,7 @@
</entry>
</row>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand Down
16 changes: 11 additions & 5 deletions reference/mbstring/functions/mb-ord.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 62126c55f1c6ed444043e7272c4f9e233818a44b Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mb-ord" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -49,6 +49,11 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -61,6 +66,7 @@
</thead>
<tbody>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand All @@ -83,10 +89,10 @@ var_dump(mb_ord("\x80", "Windows-1252"));
</programlisting>
&example.outputs;
<screen>
int(65)
int(128024)
int(128)
int(8364)
int(65)
int(128024)
int(128)
int(8364)
</screen>
</example>
</para>
Expand Down
28 changes: 25 additions & 3 deletions reference/mbstring/functions/mb-preferred-mime-name.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 92f1b8b177eb5730382abf9f27bae868f1bb636f Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.mb-preferred-mime-name" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mb_preferred_mime_name</refname>
<refpurpose>Detecta la codificación MIME</refpurpose>
<refpurpose>Obtiene la cadena del juego de caracteres MIME</refpurpose>
</refnamediv>

<refsect1 role="description">
Expand All @@ -15,7 +15,7 @@
<methodparam><type>string</type><parameter>encoding</parameter></methodparam>
</methodsynopsis>
<para>
Obtiene el nombre de la codificación MIME de una cadena.
Obtiene la cadena del juego de caracteres MIME para una codificación específica.
</para>
</refsect1>

Expand Down Expand Up @@ -43,6 +43,28 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
8 changes: 7 additions & 1 deletion reference/mbstring/functions/mb-regex-encoding.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 8cdc6621f9826d04abc3e50438c010804d7e8683 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->

<refentry xml:id="function.mb-regex-encoding" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -47,6 +47,11 @@
</simpara>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
Expand All @@ -60,6 +65,7 @@
</thead>
<tbody>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand Down
8 changes: 7 additions & 1 deletion reference/mbstring/functions/mb-scrub.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: eb10503592351cf78c25be21c60a9049784d57bb Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 60bb5c739561b4f09e7274bce6f8504520519980 Maintainer: PhilDaiguille Status: ready -->
<refentry xml:id="function.mb-scrub" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mb_scrub</refname>
Expand Down Expand Up @@ -54,6 +54,11 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
&mbstring.errors.encoding-invalid;
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -66,6 +71,7 @@
</thead>
<tbody>
&mbstring.changelog.encoding-nullable;
&mbstring.changelog.encoding-invalid;
</tbody>
</tgroup>
</informaltable>
Expand Down
Loading
Loading