mirror of
https://github.com/php/doc-fr.git
synced 2026-03-23 22:52:18 +01:00
i.e. → c.-à-d., e.g. → p. ex., accents sur majuscules (À, É, Ç), ligatures (cœur, sœur, nœud, œuvre, manœuvres), accords genre/nombre, conjugaisons, typos (verrouillage, milliseconde, aléatoire), etc.
275 lines
8.5 KiB
XML
275 lines
8.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: e62b1e3989a5049c052bc547bb6bf175ada8e48d Maintainer: jpauli 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>À partir de</entry>
|
||
</row>
|
||
</thead>
|
||
<tbody>
|
||
<row xml:id="constant.preg-pattern-order">
|
||
<entry>
|
||
<constant>PREG_PATTERN_ORDER</constant>
|
||
(<type>int</type>)
|
||
</entry>
|
||
<entry>
|
||
Ordonne les résultats de façon à ce que <varname>$matches[0]</varname> contienne les
|
||
résultats qui correspondent au masque entier, <varname>$matches[1]</varname> ceux
|
||
qui correspondent à la première parenthèse capturante et ainsi de suite. Cette
|
||
constante est utilisée avec <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>
|
||
Les résultats sont classés de telle
|
||
façon que <varname>$matches[0]</varname> contient la première
|
||
série de résultat, <varname>$matches[1]</varname> la
|
||
deuxième, etc.
|
||
Cette constante est utilisée avec <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 cette option est activée, pour chaque correspondance trouvée,
|
||
l’offset de l'octet correspondant sera également retourné.
|
||
Il est à noter que cela modifie les valeurs de retour : chaque élément du tableau
|
||
devient un tableau contenant la chaîne correspondante à l’offset 0
|
||
et son offset dans la chaîne analysée à l’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 cette option est activée, seules les sous-chaînes non vides
|
||
seront retournées par <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>
|
||
Si cette option est activée, les expressions entre parenthèses du
|
||
masque délimiteur seront aussi capturées et retournées.
|
||
Ce drapeau est uniquement utilisé avec <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 cette constante est utilisée avec <function>preg_split</function>,
|
||
l'offset de début de résultat sera retourné, en plus de la chaîne
|
||
résultat. Il est à noter que cela change la nature du résultat retourné en
|
||
un tableau contenant une chaîne à l'offset &zero; et une chaîne
|
||
contenant un offset à l'offset &one;
|
||
</entry>
|
||
<entry/>
|
||
</row>
|
||
<row xml:id="constant.preg-unmatched-as-null">
|
||
<entry>
|
||
<constant>PREG_UNMATCHED_AS_NULL</constant>
|
||
(<type>int</type>)
|
||
</entry>
|
||
<entry>
|
||
Cette constante demande à <function>preg_match</function> et
|
||
<function>preg_match_all</function>
|
||
d'inclure les sous-masques sans correspondance dans <varname>$matches</varname> avec une valeur à &null;.
|
||
Sans cette constante, les sous-masques sans correspondance sont retournés avec une chaîne vide, comme si la correspondance était vide.
|
||
Définir cette constante permet de distinguer ces deux cas.
|
||
</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>
|
||
Retourné par la fonction <function>preg_last_error</function>
|
||
s'il n'y a pas d'erreur.
|
||
</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>
|
||
Retourné par la fonction <function>preg_last_error</function>
|
||
s'il y a une erreur interne 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>
|
||
Retourné par la fonction <function>preg_last_error</function> si
|
||
<link linkend="ini.pcre.backtrack-limit">backtrack limit</link>
|
||
a été atteint.
|
||
</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>
|
||
Retourné par la fonction <function>preg_last_error</function> si
|
||
<link linkend="ini.pcre.recursion-limit">la limite de récurrence</link>
|
||
a été atteinte.
|
||
</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>
|
||
Retourné par la fonction <function>preg_last_error</function>
|
||
si la dernière erreur est due à une malformation des données
|
||
UTF-8 (uniquement lors de l'exécution d'une expression en
|
||
<link linkend="reference.pcre.pattern.modifiers">mode 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>
|
||
Retourné par la fonction <function>preg_last_error</function> si l'offset
|
||
ne correspond pas au début d'un point valide UTF-8 (uniquement lorsque l'on
|
||
exécute une expression en <link linkend="reference.pcre.pattern.modifiers">mode
|
||
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>
|
||
Retourné par <function>preg_last_error</function> si la dernière fonction
|
||
PCRE a échoué en raison de la limite de la pile JIT.
|
||
</entry>
|
||
<entry>7.0.0</entry>
|
||
</row>
|
||
<row xml:id="constant.pcre-version">
|
||
<entry>
|
||
<constant>PCRE_VERSION</constant>
|
||
(<type>string</type>)
|
||
</entry>
|
||
<entry>
|
||
Version PCRE ainsi que la date de publication
|
||
(c.-à-d. <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>
|
||
Numéro de version majeure de PCRE.
|
||
</entry>
|
||
<entry></entry>
|
||
</row>
|
||
<row xml:id="constant.pcre-version-minor">
|
||
<entry>
|
||
<constant>PCRE_VERSION_MINOR</constant>
|
||
(<type>int</type>)
|
||
</entry>
|
||
<entry>
|
||
Numéro de version mineure de PCRE.
|
||
</entry>
|
||
<entry></entry>
|
||
</row>
|
||
<row xml:id="constant.pcre-jit-support">
|
||
<entry>
|
||
<constant>PCRE_JIT_SUPPORT</constant>
|
||
(<type>bool</type>)
|
||
</entry>
|
||
<entry>
|
||
Indique si le support 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>
|
||
Retourne les éléments qui ne correspondent pas à un modèle donné.
|
||
</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
|
||
-->
|