xdiff_string_patch

(no version information, might be only in CVS)

xdiff_string_patch --  Patche une chaîne avec un diff unifié.

Description

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().