mirror of
https://github.com/php/doc-es.git
synced 2026-03-23 23:12:09 +01:00
273 lines
8.4 KiB
XML
273 lines
8.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: e62b1e3989a5049c052bc547bb6bf175ada8e48d Maintainer: PhilDaiguille Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<appendix xml:id="pcre.constants" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.constants;
|
|
&extension.constants;
|
|
<table>
|
|
<title>Constantes PREG</title>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Constants;</entry>
|
|
<entry>&Description;</entry>
|
|
<entry>Disponible a partir de</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.preg-pattern-order">
|
|
<entry>
|
|
<constant>PREG_PATTERN_ORDER</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Ordena los resultados de forma que <varname>$matches[0]</varname> contenga los
|
|
resultados que corresponden al patrón completo, <varname>$matches[1]</varname> los
|
|
que corresponden a la primera paréntesis capturante y así sucesivamente. Esta
|
|
constante se utiliza con <function>preg_match_all</function>.
|
|
</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row xml:id="constant.preg-set-order">
|
|
<entry>
|
|
<constant>PREG_SET_ORDER</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Los resultados se clasifican de tal
|
|
forma que <varname>$matches[0]</varname> contiene la primera
|
|
serie de resultados, <varname>$matches[1]</varname> la
|
|
segunda, etc.
|
|
Esta constante se utiliza con <function>preg_match_all</function>.
|
|
</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row xml:id="constant.preg-offset-capture">
|
|
<entry>
|
|
<constant>PREG_OFFSET_CAPTURE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
<para>
|
|
Si esta opción está activada, para cada coincidencia encontrada,
|
|
el desplazamiento del byte correspondiente también será devuelto.
|
|
Tenga en cuenta que esto modifica los valores de retorno: cada elemento del array
|
|
se convierte en un array que contiene la cadena correspondiente en el offset 0
|
|
y su desplazamiento en la cadena analizada en el offset 1.
|
|
</para>
|
|
</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.preg-split-no-empty">
|
|
<entry>
|
|
<constant>PREG_SPLIT_NO_EMPTY</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Si esta opción está activada, solo las sub-cadenas no vacías
|
|
serán devueltas por <function>preg_split</function>.
|
|
</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.preg-split-delim-capture">
|
|
<entry>
|
|
<constant>PREG_SPLIT_DELIM_CAPTURE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
<para>
|
|
Ver la descripción de <constant>PREG_OFFSET_CAPTURE</constant>.
|
|
Esta bandera solo se utiliza con <function>preg_split</function>.
|
|
</para>
|
|
</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row xml:id="constant.preg-split-offset-capture">
|
|
<entry>
|
|
<constant>PREG_SPLIT_OFFSET_CAPTURE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Si esta constante se utiliza con <function>preg_split</function>,
|
|
el desplazamiento de inicio del resultado será devuelto, además de la cadena
|
|
resultado. Tenga en cuenta que esto cambia la naturaleza del resultado devuelto a
|
|
un array que contiene una cadena en el offset 0 y una cadena que contiene un desplazamiento en el offset 1.
|
|
</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.preg-unmatched-as-null">
|
|
<entry>
|
|
<constant>PREG_UNMATCHED_AS_NULL</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Esta constante solicita a <function>preg_match</function> y
|
|
<function>preg_match_all</function>
|
|
incluir los subpatrones sin coincidencia en <varname>$matches</varname> con un valor a &null;.
|
|
Sin esta constante, los subpatrones sin coincidencia son devueltos con una cadena vacía, como si la coincidencia estuviera vacía.
|
|
Definir esta constante permite distinguir estos dos casos.
|
|
</entry>
|
|
<entry>7.2.0</entry>
|
|
</row>
|
|
<row xml:id="constant.preg-no-error">
|
|
<entry>
|
|
<constant>PREG_NO_ERROR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelto por la función <function>preg_last_error</function>
|
|
si no hay error.
|
|
</entry>
|
|
<entry>5.2.0</entry>
|
|
</row>
|
|
<row xml:id="constant.preg-internal-error">
|
|
<entry>
|
|
<constant>PREG_INTERNAL_ERROR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelto por la función <function>preg_last_error</function>
|
|
si hay un error interno de PCRE.
|
|
</entry>
|
|
<entry>5.2.0</entry>
|
|
</row>
|
|
<row xml:id="constant.preg-backtrack-limit-error">
|
|
<entry>
|
|
<constant>PREG_BACKTRACK_LIMIT_ERROR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelto por la función <function>preg_last_error</function> si
|
|
<link linkend="ini.pcre.backtrack-limit">el límite de retroceso</link>
|
|
ha sido alcanzado.
|
|
</entry>
|
|
<entry>5.2.0</entry>
|
|
</row>
|
|
<row xml:id="constant.preg-recursion-limit-error">
|
|
<entry>
|
|
<constant>PREG_RECURSION_LIMIT_ERROR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelto por la función <function>preg_last_error</function> si
|
|
<link linkend="ini.pcre.recursion-limit">el límite de recursión</link>
|
|
ha sido alcanzado.
|
|
</entry>
|
|
<entry>5.2.0</entry>
|
|
</row>
|
|
<row xml:id="constant.preg-bad-utf8-error">
|
|
<entry>
|
|
<constant>PREG_BAD_UTF8_ERROR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelto por la función <function>preg_last_error</function>
|
|
si el último error se debe a una malformación de los datos
|
|
UTF-8 (solo durante la ejecución de una expresión en
|
|
<link linkend="reference.pcre.pattern.modifiers">modo UTF-8</link>).
|
|
</entry>
|
|
<entry>5.2.0</entry>
|
|
</row>
|
|
<row xml:id="constant.preg-bad-utf8-offset-error">
|
|
<entry>
|
|
<constant>PREG_BAD_UTF8_OFFSET_ERROR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelto por la función <function>preg_last_error</function> si el desplazamiento
|
|
no corresponde al inicio de un punto válido UTF-8 (solo cuando se
|
|
ejecuta una expresión en <link linkend="reference.pcre.pattern.modifiers">modo
|
|
UTF-8</link>).
|
|
</entry>
|
|
<entry>5.3.0</entry>
|
|
</row>
|
|
<row xml:id="constant.preg-jit-stacklimit-error">
|
|
<entry>
|
|
<constant>PREG_JIT_STACKLIMIT_ERROR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelto por <function>preg_last_error</function> si la última función
|
|
PCRE falló debido al límite de la pila JIT.
|
|
</entry>
|
|
<entry>7.0.0</entry>
|
|
</row>
|
|
<row xml:id="constant.pcre-version">
|
|
<entry>
|
|
<constant>PCRE_VERSION</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Versión PCRE junto con la fecha de publicación
|
|
(es decir, <literal>"7.0 18-Dec-2006"</literal>).
|
|
</entry>
|
|
<entry>5.2.4</entry>
|
|
</row>
|
|
<row xml:id="constant.pcre-version-major">
|
|
<entry>
|
|
<constant>PCRE_VERSION_MAJOR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Número de versión mayor de PCRE.
|
|
</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row xml:id="constant.pcre-version-minor">
|
|
<entry>
|
|
<constant>PCRE_VERSION_MINOR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Número de versión menor de PCRE.
|
|
</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row xml:id="constant.pcre-jit-support">
|
|
<entry>
|
|
<constant>PCRE_JIT_SUPPORT</constant>
|
|
(<type>bool</type>)
|
|
</entry>
|
|
<entry>
|
|
Indica si el soporte JIT de PCRE está disponible.
|
|
</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row xml:id="constant.preg-grep-invert">
|
|
<entry>
|
|
<constant>PREG_GREP_INVERT</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
Devuelve los elementos que no coinciden con un patrón dado.
|
|
</entry>
|
|
<entry></entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</appendix>
|
|
|
|
<!-- 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
|
|
-->
|