|
8.140.14 xdiff_string_patch()Patche une chaîne avec un diff unifié[ Exemples avec xdiff_string_patch ] PECL
string
xdiff_string_patch (
string
str
,
string
patch
,
int
flags
,
string
error
)
xdiff_string_patch
patche la chaîne
str
avec le patch unifié contenu dans la chaîne
patch
.
flags
peut être soit
XDIFF_PATCH_NORMAL
(mode par défaut, patch normal),
soit
XDIFF_PATCH_REVERSE
(patch inversé).
Si
error
est fourni, les parties rejetées y sont
stockées.
Retourne une chaîne patchée.
Voir aussi
xdiff_file_patch
.
|