-
Notifications
You must be signed in to change notification settings - Fork 49
/
constants.xml
174 lines (173 loc) · 6.57 KB
/
constants.xml
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
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 84a87a7fa91e844c792ba31f12d226bb5b1a57a2 Maintainer: seros Status: ready -->
<!-- Reviewed: yes Maintainer: seros -->
<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>Constante</entry>
<entry>Descripción</entry>
<entry>Desde</entry>
</row>
</thead>
<tbody>
<row xml:id="constant.preg-pattern-order">
<entry><constant>PREG_PATTERN_ORDER</constant></entry>
<entry>
Ordena los resultados de forma que <varname>$coincidencias[0]</varname> es un array de coincidencias del patrón
completo, <varname>$coincidencias[1]</varname> es un array de cadenas que coinciden con el primer
subpatrón entre paréntesis, y así sucesivamente. Esta bandera sólo se usa con
<function>preg_match_all</function>.
</entry>
<entry></entry>
</row>
<row xml:id="constant.preg-set-order">
<entry><constant>PREG_SET_ORDER</constant></entry>
<entry>
Ordena los resultados de forma que <varname>$coincidencias[0]</varname> es un array del primer conjunto de
coincidencias, <varname>$coincidencias[1]</varname> es un array del segundo conjunto de coincidencias, y así
sucesivamente. Esta bandera sólo se usa con <function>preg_match_all</function>.
</entry>
<entry></entry>
</row>
<row xml:id="constant.preg-offset-capture">
<entry><constant>PREG_OFFSET_CAPTURE</constant></entry>
<entry>
Véase la descripción de
<constant>PREG_SPLIT_OFFSET_CAPTURE</constant>.
</entry>
<entry>4.3.0</entry>
</row>
<row xml:id="constant.preg-split-no-empty">
<entry><constant>PREG_SPLIT_NO_EMPTY</constant></entry>
<entry>
Esta bandera le indica a <function>preg_split</function> que devuelva sólo
elementos que no estén vacíos.
</entry>
<entry></entry>
</row>
<row xml:id="constant.preg-split-delim-capture">
<entry><constant>PREG_SPLIT_DELIM_CAPTURE</constant></entry>
<entry>
Esta bandera le indica a <function>preg_split</function> que capture también
la expresión entre paréntesis en el patrón delimitador.
</entry>
<entry>4.0.5</entry>
</row>
<row xml:id="constant.preg-split-offset-capture">
<entry><constant>PREG_SPLIT_OFFSET_CAPTURE</constant></entry>
<entry>
Si se establece esta bandera, por cada coincidencia producida, el índice
de la cadena añadida también será devuelto. Observe que esto cambia los
valores devueltos en un array, donde cada elemento es un array consistente
en la cadena coincidente en el índice 0, y su índice dentro de la cadena
objetivo en el índice 1. Esta bandera sólo es usada por <function>preg_split</function>.
</entry>
<entry>4.3.0</entry>
</row>
<row xml:id="constant.preg-unmatched-as-null">
<entry><constant>PREG_UNMATCHED_AS_NULL</constant></entry>
<entry>
<!--This flag tells <function>preg_match</function> and
<function>preg_match_all</function> to include unmatched subpatterns in
<varname>$matches</varname> as &null; values. Without this flag, unmatched
subpatterns are reported as empty strings, as if they were empty matches.
Setting this flag allows to distinguish between these two cases.-->
</entry>
<entry>7.2.0</entry>
</row>
<row xml:id="constant.preg-no-error">
<entry><constant>PREG_NO_ERROR</constant></entry>
<entry>
Devuelto por <function>preg_last_error</function> si no se produjeron
errores.
</entry>
<entry>5.2.0</entry>
</row>
<row xml:id="constant.preg-internal-error">
<entry><constant>PREG_INTERNAL_ERROR</constant></entry>
<entry>
Devuelto por <function>preg_last_error</function> si se produjo 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></entry>
<entry>
Devuelto por <function>preg_last_error</function> si el <link
linkend="ini.pcre.backtrack-limit">límite de marcha atrás</link> fue agotado.
</entry>
<entry>5.2.0</entry>
</row>
<row xml:id="constant.preg-recursion-limit-error">
<entry><constant>PREG_RECURSION_LIMIT_ERROR</constant></entry>
<entry>
Devuelto por <function>preg_last_error</function> si el <link
linkend="ini.pcre.recursion-limit">límite de recursividad</link> fue agotado.
</entry>
<entry>5.2.0</entry>
</row>
<row xml:id="constant.preg-bad-utf8-error">
<entry><constant>PREG_BAD_UTF8_ERROR</constant></entry>
<entry>
Devuelto por <function>preg_last_error</function> si el último error fue
causado por datos UTF-8 malformados (sólo cuando se ejecuta una expresión regular 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></entry>
<entry>
Devuelto por <function>preg_last_error</function> si el índice no se
correspondió con el inicio de un punto de código UTF-8 válido (sólo cuando
se ejecuta una expresión regular 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></entry>
<entry>
Devuelto por <function>preg_last_error</function> si la última función de PCRE
falló debido al espacio limitado de la pila JIT.
</entry>
<entry>7.0.0</entry>
</row>
<row xml:id="constant.pcre-version">
<entry><constant>PCRE_VERSION</constant></entry>
<entry>
Versión y fecha de distribución de PCRE (p.ej. "<literal>7.0 18-Dec-2006</literal>").
</entry>
<entry>5.2.4</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
-->